svn commit: r300991 - in head/www/py-cssselect: . files
Nicola Vitale
nivit at FreeBSD.org
Tue Jul 17 05:49:48 UTC 2012
Author: nivit
Date: Tue Jul 17 05:49:47 2012
New Revision: 300991
URL: http://svn.freebsd.org/changeset/ports/300991
Log:
- 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)
Added:
head/www/py-cssselect/files/
head/www/py-cssselect/files/patch-docs__conf.py (contents, props changed)
Modified:
head/www/py-cssselect/Makefile (contents, props changed)
head/www/py-cssselect/distinfo (contents, props changed)
Modified: head/www/py-cssselect/Makefile
==============================================================================
--- head/www/py-cssselect/Makefile Tue Jul 17 04:59:29 2012 (r300990)
+++ head/www/py-cssselect/Makefile Tue Jul 17 05:49:47 2012 (r300991)
@@ -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 at 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
Modified: head/www/py-cssselect/distinfo
==============================================================================
--- head/www/py-cssselect/distinfo Tue Jul 17 04:59:29 2012 (r300990)
+++ head/www/py-cssselect/distinfo Tue Jul 17 05:49:47 2012 (r300991)
@@ -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
Added: head/www/py-cssselect/files/patch-docs__conf.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-cssselect/files/patch-docs__conf.py Tue Jul 17 05:49:47 2012 (r300991)
@@ -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'}
More information about the svn-ports-head
mailing list