PYTHON_SITELIBDIR gets parsed incorrectly

Silver Salonen silver.salonen at gmail.com
Wed Dec 10 00:57:54 PST 2008


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.



More information about the freebsd-ports mailing list