From owner-freebsd-ports@FreeBSD.ORG Wed Dec 10 08:57:54 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4705106564A for ; Wed, 10 Dec 2008 08:57:54 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 48BCE8FC17 for ; Wed, 10 Dec 2008 08:57:54 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LAKtE-0000im-Tx for freebsd-ports@freebsd.org; Wed, 10 Dec 2008 00:57:52 -0800 Message-ID: <20930607.post@talk.nabble.com> Date: Wed, 10 Dec 2008 00:57:52 -0800 (PST) From: Silver Salonen To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: silver.salonen@gmail.com Subject: PYTHON_SITELIBDIR gets parsed incorrectly X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 08:57:54 -0000 Hello. I'm creating a port that uses python. I've set in Makefile: USE_PYTHON= yes PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${PREFIX}/||g} PLIST_SUB+= PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR}" And pkg-plist has entries a'la: %%BINDINGS%%%%PYTHON_SITELIBDIR%%/ This %%BINDINGS%% gets replaced with "", so that should not be an issue. Anyway, when I install port, +CONTENTS contains lines a'la: /usr/local/lib/python2.5/site-packages/museek/__init__.py And when I try deinstalling it, I get errors a'la: pkg_delete: file '/usr/local//usr/local/lib/python2.5/site-packages/museek/__init__.py' doesn't exist Why do these files get prefixed with $LOCALBASE (or $PREFIX)? -- View this message in context: http://www.nabble.com/PYTHON_SITELIBDIR-gets-parsed-incorrectly-tp20930607p20930607.html Sent from the freebsd-ports mailing list archive at Nabble.com.