STAGE support and PYTHON_SITELIBDIR at pkg-plist
Boris Samorodov
bsam at passap.ru
Tue Sep 24 13:33:45 UTC 2013
Hi Baptiste and All,
I try to convert comms/gammu to using STAGE and while "make makeplist"
get those changes:
-----
+lib/python2.7/site-packages/gammu/Data.py
...
-%%PYTHON_SITELIBDIR%%/gammu/Data.py
-----
If I apply the attached patch that part of pkg-plist does not change
(modulo sorting).
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
-------------- next part --------------
Index: /usr/ports/Mk/bsd.stage.mk
===================================================================
--- /usr/ports/Mk/bsd.stage.mk (revision 328111)
+++ /usr/ports/Mk/bsd.stage.mk (working copy)
@@ -86,6 +86,7 @@
-e "s,${DOCSDIR},%%PORTDOCS%%%%DOCSDIR%%,g" \
-e "s,${EXAMPLESDIR},%%PORTEXAMPLES%%%%EXAMPLESDIR%%,g" \
-e "s,${DATADIR},%%DATADIR%%,g" \
+ -e "s,${PYTHON_SITELIBDIR},%%PYTHON_SITELIBDIR%%,g" \
-e "s,${PREFIX}/,,g" | ${GREP} -v "^share/licenses" || ${TRUE}
@${FIND} ${STAGEDIR} -type d | ${SED} -e "s,${STAGEDIR},,g" \
| while read line; do \
@@ -96,6 +97,7 @@
-e "s,\(.*\)${DOCSDIR},%%PORTDOCS%%\1%%DOCSDIR%%,g" \
-e "s,\(.*\)${EXAMPLESDIR},%%PORTEXAMPLES%%\1%%EXAMPLESDIR%%,g" \
-e "s,${DATADIR},%%DATADIR%%,g" \
+ -e "s,${PYTHON_SITELIBDIR},%%PYTHON_SITELIBDIR%%,g" \
-e "s,${PREFIX}/,,g" | ${GREP} -v "^@dirrmtry share/licenses" || ${TRUE}
.endif
More information about the freebsd-ports
mailing list