summaryrefslogtreecommitdiff
path: root/textproc/py-sphinx/Makefile
diff options
context:
space:
mode:
authormarkd <markd>2015-02-24 11:07:55 +0000
committermarkd <markd>2015-02-24 11:07:55 +0000
commitb2f4f6e17445a640924e16b2393ebbbc8e26d462 (patch)
treea56d42727e11812793dbcf72429866bc0226f40a /textproc/py-sphinx/Makefile
parente0f47bc5162a4be809f271566e628205d3005f01 (diff)
downloadpkgsrc-b2f4f6e17445a640924e16b2393ebbbc8e26d462.tar.gz
Use ALTERNATIVES framework to allow concurrent installation under
multiple pythons. Bump PKGREVISION.
Diffstat (limited to 'textproc/py-sphinx/Makefile')
-rw-r--r--textproc/py-sphinx/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/textproc/py-sphinx/Makefile b/textproc/py-sphinx/Makefile
index d4f75c5bb3e..253e1f7f477 100644
--- a/textproc/py-sphinx/Makefile
+++ b/textproc/py-sphinx/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2014/09/14 17:55:38 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2015/02/24 11:07:55 markd Exp $
DISTNAME= Sphinx-1.2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
+PKGREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= http://pypi.python.org/packages/source/S/Sphinx/
@@ -15,6 +16,8 @@ DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.2:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-pygments>=0.8:../../textproc/py-pygments
USE_LANGUAGES= #none
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
REPLACE_PYTHON+= sphinx/pycode/pgen2/token.py
@@ -23,6 +26,12 @@ REPLACE_PYTHON+= sphinx/pycode/pgen2/token.py
#do-test:
# cd ${WRKSRC}/tests && ${PYTHONBIN} run.py
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/sphinx-apidoc ${DESTDIR}${PREFIX}/bin/sphinx-apidoc${PYVERSSUFFIX}
+ ${MV} ${DESTDIR}${PREFIX}/bin/sphinx-autogen ${DESTDIR}${PREFIX}/bin/sphinx-autogen${PYVERSSUFFIX}
+ ${MV} ${DESTDIR}${PREFIX}/bin/sphinx-build ${DESTDIR}${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
+ ${MV} ${DESTDIR}${PREFIX}/bin/sphinx-quickstart ${DESTDIR}${PREFIX}/bin/sphinx-quickstart${PYVERSSUFFIX}
+
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"