diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2012-07-17 05:49:47 +0000 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2012-07-17 05:49:47 +0000 |
commit | 8ffe5e9e772c9eb17b21099052249df03668f201 (patch) | |
tree | da8cc3038076e1a828939397e3fdd54671d4c55c /www | |
parent | 03e6d0c5742a2071a43d5d4ea4379f012d3e16eb (diff) | |
download | ports-8ffe5e9e772c9eb17b21099052249df03668f201.tar.gz ports-8ffe5e9e772c9eb17b21099052249df03668f201.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/py-cssselect/Makefile | 17 | ||||
-rw-r--r-- | www/py-cssselect/distinfo | 6 | ||||
-rw-r--r-- | www/py-cssselect/files/patch-docs__conf.py | 8 |
3 files changed, 25 insertions, 6 deletions
diff --git a/www/py-cssselect/Makefile b/www/py-cssselect/Makefile index 2117fc90472a..282e8bc517eb 100644 --- a/www/py-cssselect/Makefile +++ b/www/py-cssselect/Makefile @@ -9,8 +9,11 @@ PORTNAME= cssselect PORTVERSION= 0.7.1 #PORTREVISION= 0 CATEGORIES= www -MASTER_SITES= CHEESESHOP +MASTER_SITES= CHEESESHOP http://docs.python.org/:sphinx PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz MAINTAINER= nivit@FreeBSD.org COMMENT= Cssselect parses CSS3 Selectors and translates them to XPath 1.0 @@ -19,7 +22,6 @@ LICENSE= BSD OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options OPTIONS_DEFINE= DOCS -OPTIONS_DEFAULT= DOCS .include <bsd.port.options.mk> @@ -33,11 +35,18 @@ SPHINX_BUILD= sphinx-build .include <bsd.port.pre.mk> .if ${PORT_OPTIONS:MDOCS} -BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx +DISTFILES+= objects.inv:sphinx +BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx + +REINPLACE_ARGS= -i.bak -e 's,%%DISTDIR%%,${DISTDIR},g' \ + -e 's,%%PORTNAME%%,${PORTNAME},g' + +post-patch: + ${REINPLACE_CMD} ${WRKSRC}/docs/conf.py post-install: ${SETENV} PYTHONPATH="${PYTHONPREFIX_SITELIBDIR}" \ - ${SPHINX_BUILD} -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \ + ${SPHINX_BUILD} -N -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \ cd ${WRKSRC}/docs.html && ${MKDIR} ${DOCSDIR} && \ ${COPYTREE_SHARE} . ${DOCSDIR} .endif diff --git a/www/py-cssselect/distinfo b/www/py-cssselect/distinfo index a769e599bcef..05e6cc51a09b 100644 --- a/www/py-cssselect/distinfo +++ b/www/py-cssselect/distinfo @@ -1,2 +1,4 @@ -SHA256 (cssselect-0.7.1.tar.gz) = 74f411a349fcfb676b68336fcae8799ba9fbb0a0446562f544dee019fb0e2ae7 -SIZE (cssselect-0.7.1.tar.gz) = 30480 +SHA256 (cssselect/cssselect-0.7.1.tar.gz) = 74f411a349fcfb676b68336fcae8799ba9fbb0a0446562f544dee019fb0e2ae7 +SIZE (cssselect/cssselect-0.7.1.tar.gz) = 30480 +SHA256 (cssselect/objects.inv) = ed23f7aa1326b6f9b9dce41f452a9a0dff6da38f6e66c8a4cf4f164553947943 +SIZE (cssselect/objects.inv) = 114160 diff --git a/www/py-cssselect/files/patch-docs__conf.py b/www/py-cssselect/files/patch-docs__conf.py new file mode 100644 index 000000000000..6943f70620ac --- /dev/null +++ b/www/py-cssselect/files/patch-docs__conf.py @@ -0,0 +1,8 @@ +--- ./docs/conf.py.orig 2012-07-16 23:28:27.000000000 +0200 ++++ ./docs/conf.py 2012-07-16 23:28:52.000000000 +0200 +@@ -247,4 +247,4 @@ + + + # Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/': None} ++intersphinx_mapping = {'http://docs.python.org/': '%%DISTDIR%%/%%PORTNAME%%/objects.inv'} |