# Created by: Nicola Vitale # $FreeBSD$ PORTNAME= cssselect PORTVERSION= 1.0.3 PORTREVISION= 0 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Cssselect parses CSS3 Selectors and translates them to XPath 1.0 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= python USE_PYTHON= distutils autoplist NO_ARCH= yes OPTIONS_DEFINE= DOCS .include .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} SPHINX_BUILD= sphinx-build-${PYTHON_VER} post-install:: ${SETENV} PYTHONPATH="${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}" \ ${SPHINX_BUILD} -N -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs.html && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -path *doctrees*") .endif .include