diff options
author | markd <markd@pkgsrc.org> | 2015-02-24 11:07:55 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2015-02-24 11:07:55 +0000 |
commit | ea527bd830af27fef69fb21ae4474cd0f7464ea3 (patch) | |
tree | a56d42727e11812793dbcf72429866bc0226f40a /textproc/py-sphinx | |
parent | b2a89480b438a28d05ea343852bbdcdfa5a30a93 (diff) | |
download | pkgsrc-ea527bd830af27fef69fb21ae4474cd0f7464ea3.tar.gz |
Use ALTERNATIVES framework to allow concurrent installation under
multiple pythons.
Bump PKGREVISION.
Diffstat (limited to 'textproc/py-sphinx')
-rw-r--r-- | textproc/py-sphinx/ALTERNATIVES | 4 | ||||
-rw-r--r-- | textproc/py-sphinx/Makefile | 11 | ||||
-rw-r--r-- | textproc/py-sphinx/PLIST | 10 |
3 files changed, 19 insertions, 6 deletions
diff --git a/textproc/py-sphinx/ALTERNATIVES b/textproc/py-sphinx/ALTERNATIVES new file mode 100644 index 00000000000..0cfe9faad14 --- /dev/null +++ b/textproc/py-sphinx/ALTERNATIVES @@ -0,0 +1,4 @@ +bin/sphinx-apidoc @PREFIX@/bin/sphinx-apidoc@PYVERSSUFFIX@ +bin/sphinx-autogen @PREFIX@/bin/sphinx-autogen@PYVERSSUFFIX@ +bin/sphinx-build @PREFIX@/bin/sphinx-build@PYVERSSUFFIX@ +bin/sphinx-quickstart @PREFIX@/bin/sphinx-quickstart@PYVERSSUFFIX@ 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" diff --git a/textproc/py-sphinx/PLIST b/textproc/py-sphinx/PLIST index 3f68fc498dd..17a8475dd35 100644 --- a/textproc/py-sphinx/PLIST +++ b/textproc/py-sphinx/PLIST @@ -1,8 +1,8 @@ -@comment $NetBSD: PLIST,v 1.10 2014/09/14 17:55:38 wiz Exp $ -bin/sphinx-apidoc -bin/sphinx-autogen -bin/sphinx-build -bin/sphinx-quickstart +@comment $NetBSD: PLIST,v 1.11 2015/02/24 11:07:55 markd Exp $ +bin/sphinx-apidoc${PYVERSSUFFIX} +bin/sphinx-autogen${PYVERSSUFFIX} +bin/sphinx-build${PYVERSSUFFIX} +bin/sphinx-quickstart${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt |