mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 06:00:30 -04:00
is enabled. For example, if py27 is default and try to build the py36 flavor, it was using the py27 flavor of sphinx for the docs build and leaving behind python 2.7 bytecode in STAGEDIR: ====> Running Q/A tests (stage-qa) Error: 'lib/python3.6/site-packages/cssselect/parser.pyc' is referring to /wrkdirs/usr/ports/www/py-cssselect/work-py36/stage Error: 'lib/python3.6/site-packages/cssselect/xpath.pyc' is referring to /wrkdirs/usr/ports/www/py-cssselect/work-py36/stage Error: 'lib/python3.6/site-packages/cssselect/__init__.pyc' is referring to /wrkdirs/usr/ports/www/py-cssselect/work-py36/stage *** Error code 1 While here: Add LICENSE_FILE Add NO_ARCH Pet portlint Approved by: portmgr (blanket)
39 lines
1,010 B
Makefile
39 lines
1,010 B
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cssselect
|
|
PORTVERSION= 0.9.1
|
|
PORTREVISION= 2
|
|
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 <bsd.port.options.mk>
|
|
|
|
.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 <bsd.port.mk>
|