summaryrefslogtreecommitdiff
path: root/textproc/py-docutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-docutils/Makefile')
-rw-r--r--textproc/py-docutils/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile
index 5dfcd0bc24c..0cf8111aa3a 100644
--- a/textproc/py-docutils/Makefile
+++ b/textproc/py-docutils/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.42 2014/01/25 10:30:24 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2015/02/24 11:03:05 markd Exp $
-DISTNAME= docutils-0.11
+DISTNAME= docutils-0.12
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docutils/}
@@ -14,6 +14,8 @@ DEPENDS+= ${PYPKGPREFIX}-roman>=1.4:../../math/py-roman
DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
USE_LANGUAGES= #none
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
REPLACE_PYTHON+= docutils/utils/code_analyzer.py
REPLACE_PYTHON+= docutils/utils/error_reporting.py
@@ -23,6 +25,14 @@ REPLACE_PYTHON+= docutils/utils/punctuation_chars.py
REPLACE_PYTHON+= docutils/utils/smartquotes.py
REPLACE_PYTHON+= docutils/writers/xetex/__init__.py
+CMDS= rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5
+CMDS+= rst2xetex rst2xml rstpep2html
+
+post-install:
+ for f in ${CMDS}; do \
+ ${MV} ${DESTDIR}${PREFIX}/bin/$$f.py ${DESTDIR}${PREFIX}/bin/$$f-${PYVERSSUFFIX}.py; \
+ done
+
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"