From owner-freebsd-ports@FreeBSD.ORG Wed Dec 10 10:23:45 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 F26491065675 for ; Wed, 10 Dec 2008 10:23:45 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DB988FC19 for ; Wed, 10 Dec 2008 10:23:45 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id DB288198DDE; Wed, 10 Dec 2008 11:23:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id CEAE9198DCE; Wed, 10 Dec 2008 11:23:43 +0100 (CET) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id B5CC2198DCC; Wed, 10 Dec 2008 11:23:43 +0100 (CET) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2HF443) with ESMTP id 2008121011234310-35411 ; Wed, 10 Dec 2008 11:23:43 +0100 Received: by wep4035 (sSMTP sendmail emulation); Wed, 10 Dec 2008 11:23:42 +0100 From: "Alexey Shuvaev" Date: Wed, 10 Dec 2008 11:23:42 +0100 To: Silver Salonen Message-ID: <20081210102342.GA11556@wep4035.physik.uni-wuerzburg.de> References: <20930607.post@talk.nabble.com> MIME-Version: 1.0 In-Reply-To: <20930607.post@talk.nabble.com> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 12/10/2008 11:23:43 AM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 12/10/2008 11:23:43 AM, Serialize complete at 12/10/2008 11:23:43 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-ports@freebsd.org Subject: Re: 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 10:23:46 -0000 Hello! On Wed, Dec 10, 2008 at 12:57:52AM -0800, Silver Salonen wrote: > > 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 > This is wrong. They should be relative to ${LOCALBASE}, lib/python2.5/site-packages/bla-bla-bla in this case. Can't say why %) Examine the behavior of PYTHON_SITELIBDIR variable in the Makefile. > 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)? > 0.02$, Alexey.