# Created by: Li-Wen Hsu # $FreeBSD$ PORTNAME= sphinx PORTVERSION= 1.4.8 PORTEPOCH= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Sphinx-${PORTVERSION} DIST_SUBDIR= python MAINTAINER= kmoore@FreeBSD.org COMMENT= Python documentation generator LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils \ ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel\ ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments \ ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>=0.1:textproc/py-sphinx_rtd_theme \ ${PYTHON_PKGNAMEPREFIX}alabaster>=0.7:textproc/py-alabaster \ ${PYTHON_PKGNAMEPREFIX}snowballstemmer>=1.1:textproc/py-snowballstemmer \ ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six \ ${PYTHON_PKGNAMEPREFIX}imagesize>=0.7.1:graphics/py-imagesize \ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss USES= python USE_PYTHON= autoplist distutils NO_ARCH= yes post-build: cd ${WRKSRC}/build/lib && \ ${SETENV} PYTHONPATH=${WRKSRC}/build/lib:${PYTHONPREFIX_SITELIBDIR} \ ${PYTHON_CMD} -m sphinx.pycode.pgen2.driver -c 'import load_grammar' .include