# $NetBSD: Makefile,v 1.31 2016/06/08 17:43:40 wiz Exp $ DISTNAME= Sphinx-1.4.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_PYPI:=S/Sphinx/} MAINTAINER= markd@NetBSD.org HOMEPAGE= http://sphinx.pocoo.org/ COMMENT= Python documentation generator LICENSE= modified-bsd DEPENDS+= ${PYPKGPREFIX}-alabaster>=0.7:../../textproc/py-alabaster DEPENDS+= ${PYPKGPREFIX}-babel-[0-9]*:../../devel/py-babel DEPENDS+= ${PYPKGPREFIX}-docutils>=0.8.1:../../textproc/py-docutils DEPENDS+= ${PYPKGPREFIX}-imagesize-[0-9]*:../../graphics/py-imagesize DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.2:../../textproc/py-jinja2 DEPENDS+= ${PYPKGPREFIX}-pygments>=0.8:../../textproc/py-pygments DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz DEPENDS+= ${PYPKGPREFIX}-snowballstemmer-[0-9]*:../../textproc/py-snowballstemmer DEPENDS+= ${PYPKGPREFIX}-sphinx-rtd-theme-[0-9]*:../../textproc/py-sphinx-rtd-theme DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six # test dependency BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose USE_LANGUAGES= #none PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} REPLACE_PYTHON+= sphinx/pycode/pgen2/token.py USE_TOOLS+= makeinfo 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"