summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrecht <recht>2003-09-11 13:13:47 +0000
committerrecht <recht>2003-09-11 13:13:47 +0000
commit3e22cb3d7abdaae33328750ea9e7d8a24d294e23 (patch)
tree4914b5d40298ec08ce1e887ff96f80848d027c75 /lang
parent7762c74a8ff8e68685e925982b10be4d78b0f040 (diff)
downloadpkgsrc-3e22cb3d7abdaae33328750ea9e7d8a24d294e23.tar.gz
Adapt a change from FreeBSD's ports Mk/bsd.python.mk.
Change the order of PYSETUP*AGS and the corresponding target. Eg.: s/${PYSETUPINSTALLARGS} install/install ${PYSETUPINSTALLARGS}/ This allows us to automatically install .pyo files with a PYSETUPINSTALLARGS=-O1 -c and thus drop the compileall.py stuff in the post-install target. ok'ed by drochner@
Diffstat (limited to 'lang')
-rw-r--r--lang/python/extension.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index 86d225db4c9..8d4131548da 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.3 2003/05/09 09:24:17 jdolecek Exp $
+# $NetBSD: extension.mk,v 1.4 2003/09/11 13:13:47 recht Exp $
# derive a python version from the package name if possible
.if defined(PKGNAME_REQD)
@@ -22,11 +22,11 @@ PYSETUPSUBDIR?= #empty
do-build:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
- ${PYSETUP} ${PYSETUPBUILDARGS} build)
+ ${PYSETUP} build ${PYSETUPBUILDARGS})
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
- ${PYSETUP} ${PYSETUPINSTALLARGS} install)
+ ${PYSETUP} install ${PYSETUPINSTALLARGS})
.endif
.if defined(PY_PATCHPLIST)