summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorgls <gls@pkgsrc.org>2011-10-26 19:01:18 +0000
committergls <gls@pkgsrc.org>2011-10-26 19:01:18 +0000
commitdebb860879541c77c89e4435f1b45908e0ac6842 (patch)
tree0cb386eeeb55ed29019f036860fb7932667f1269 /textproc
parent476a8c4bed33c340b2e420c208f41b3a354c6555 (diff)
downloadpkgsrc-debb860879541c77c89e4435f1b45908e0ac6842.tar.gz
Replace /usr/bin/env python with ${PYTHONBIN}
PKGREVISION++
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-docutils/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile
index 2faa6b6755b..00ecb10d0b2 100644
--- a/textproc/py-docutils/Makefile
+++ b/textproc/py-docutils/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2011/10/05 07:47:28 obache Exp $
+# $NetBSD: Makefile,v 1.33 2011/10/26 19:01:18 gls Exp $
DISTNAME= docutils-0.8.1
+PKGREVISION= 1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docutils/}
@@ -14,5 +15,15 @@ PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= ${PYPKGPREFIX}-roman>=1.4:../../math/py-roman
+SUBST_CLASSES+= env
+SUBST_SED.env= -e "s,\#! */usr/bin/env *python[0-9.]*,\#!${PYTHONBIN},"
+SUBST_MESSAGE.env= Fixing path to python.
+SUBST_STAGE.env= post-patch
+SUBST_FILES.env= docutils/_string_template_compat.py
+SUBST_FILES.env+= docutils/error_reporting.py
+SUBST_FILES.env+= docutils/math/latex2mathml.py
+SUBST_FILES.env+= docutils/math/math2html.py
+SUBST_FILES.env+= docutils/writers/xetex/__init__.py
+
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"