pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Add optional user-setable PYSETUPARGS vari...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/19b64faafce1
branches:  trunk
changeset: 577817:19b64faafce1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jul 21 11:29:10 2010 +0000

description:
Add optional user-setable PYSETUPARGS variable that is added to the build
and install command lines _before_ the target name.

Needed for non-target specific options, used e.g. by gaupol.

diffstat:

 lang/python/extension.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 7a1877ef08d9 -r 19b64faafce1 lang/python/extension.mk
--- a/lang/python/extension.mk  Wed Jul 21 11:27:36 2010 +0000
+++ b/lang/python/extension.mk  Wed Jul 21 11:29:10 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.25 2009/05/26 21:59:58 wiz Exp $
+# $NetBSD: extension.mk,v 1.26 2010/07/21 11:29:10 wiz Exp $
 
 .include "../../lang/python/pyversion.mk"
 
@@ -8,6 +8,7 @@
 PYSETUP?=              setup.py
 PYSETUPBUILDTARGET?=   build
 PYSETUPBUILDARGS?=     #empty
+PYSETUPARGS?=          #empty
 PYSETUPINSTALLARGS?=   #empty
 PYSETUPOPTARGS?=       -c -O1
 _PYSETUPINSTALLARGS=   ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS}
@@ -19,11 +20,11 @@
 
 do-build:
        (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
-        ${PYSETUP} ${PYSETUPBUILDTARGET} ${PYSETUPBUILDARGS})
+        ${PYSETUP} ${PYSETUPARGS} ${PYSETUPBUILDTARGET} ${PYSETUPBUILDARGS})
 
 do-install:
        (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
-        ${PYTHONBIN} ${PYSETUP} "install" ${_PYSETUPINSTALLARGS})
+        ${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS})
 .endif
 
 PY_NO_EGG?=            yes



Home | Main Index | Thread Index | Old Index