summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-11-21 11:40:37 +0000
committerleot <leot@pkgsrc.org>2019-11-21 11:40:37 +0000
commitd8072d53bc53351d3f85d0fc7d5fefdcb93d29ab (patch)
tree08ae10b76cad545041c263816b5127674bd21b85
parentc0876e0babe208457b0868a279043eb86ca0e686 (diff)
downloadpkgsrc-d8072d53bc53351d3f85d0fc7d5fefdcb93d29ab.tar.gz
ap2-python: Adjust optimization to be consistent with other Python packages
setup.py is invoked internally hardcoding `--optimize 2' that leads to PLIST mismatches when Python 3 is used. Substitute it to `--optimize 1' to be consistent with other Python packages. Thanks to <martin> for spotting this problem and testing this patch!
-rw-r--r--www/ap2-python/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/ap2-python/Makefile b/www/ap2-python/Makefile
index 44347681c14..278f5451d3e 100644
--- a/www/ap2-python/Makefile
+++ b/www/ap2-python/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2018/01/01 10:23:07 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2019/11/21 11:40:37 leot Exp $
DISTNAME= mod_python-3.5.0
PKGNAME= ${APACHE_PKG_PREFIX}-${PYPKGPREFIX}-${DISTNAME:S/mod_//}
@@ -20,6 +20,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-apxs=${APXS:Q}
CONFIGURE_ARGS+= --with-python=${PYTHONBIN:Q}
+SUBST_CLASSES+= optimization
+SUBST_STAGE.optimization= pre-configure
+SUBST_MESSAGE.optimization= Adjust optimization
+SUBST_FILES.optimization= dist/Makefile.in
+SUBST_SED.optimization= -e 's,--optimize 2,--optimize 1,g'
+
INSTALLATION_DIRS+= bin
PY_PATCHPLIST= yes