Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 00:57:52 -0800 (PST)
From:      Silver Salonen <silver.salonen@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   PYTHON_SITELIBDIR gets parsed incorrectly
Message-ID:  <20930607.post@talk.nabble.com>

next in thread | raw e-mail | index | archive | help

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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20930607.post>