diff options
author | nivit <nivit@FreeBSD.org> | 2012-07-17 13:49:47 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2012-07-17 13:49:47 +0800 |
commit | c6698723bef900ef44195cd948c8df62cb83d7a9 (patch) | |
tree | da8cc3038076e1a828939397e3fdd54671d4c55c /www | |
parent | 1be4d0e372eee412153cd02269894956234d5b9b (diff) | |
download | freebsd-ports-gnome-c6698723bef900ef44195cd948c8df62cb83d7a9.tar.gz freebsd-ports-gnome-c6698723bef900ef44195cd948c8df62cb83d7a9.tar.zst freebsd-ports-gnome-c6698723bef900ef44195cd948c8df62cb83d7a9.zip |
- Add code and patch files/patch-docs__conf.py to avoid
download of intersphinx inventory during the install
stage (on pointyhat)
- Remove OPTIONS_DEFAULT=DOCS
- Add switch -N to the sphinx-build command (don't do
colored output)
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'} |