- Update to 0.7.1

- Add LICENSE (BSD)
- Build and install documentation if DOCS option
  is enabled
This commit is contained in:
Nicola Vitale 2012-07-07 13:22:31 +00:00
parent f40a1aaf36
commit 6f65d0fc19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300596
3 changed files with 61 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= cssselect
PORTVERSION= 0.6.1
PORTVERSION= 0.7.1
#PORTREVISION= 0
CATEGORIES= www
MASTER_SITES= CHEESESHOP
@ -15,8 +15,31 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Cssselect parses CSS3 Selectors and translates them to XPath 1.0
LICENSE= BSD
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= DOCS
.include <bsd.port.options.mk>
# Python3 ready
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
.include <bsd.port.mk>
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
SPHINX_BUILD= sphinx-build
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
post-install:
${SETENV} PYTHONPATH="${PYTHONPREFIX_SITELIBDIR}" \
${SPHINX_BUILD} -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \
cd ${WRKSRC}/docs.html && ${MKDIR} ${DOCSDIR} && \
${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (cssselect-0.6.1.tar.gz) = b35683a6526e24240606b46caf6f7c154a3c0f4ac4137fd2b073ddcfcb25445f
SIZE (cssselect-0.6.1.tar.gz) = 29679
SHA256 (cssselect-0.7.1.tar.gz) = 74f411a349fcfb676b68336fcae8799ba9fbb0a0446562f544dee019fb0e2ae7
SIZE (cssselect-0.7.1.tar.gz) = 30480

View File

@ -1,2 +1,36 @@
@comment $FreeBSD$
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
%%PORTDOCS%%%%DOCSDIR%%/.buildinfo
%%PORTDOCS%%%%DOCSDIR%%/.doctrees/environment.pickle
%%PORTDOCS%%%%DOCSDIR%%/.doctrees/index.doctree
%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt
%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif
%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css
%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png
%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png
%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png
%%PORTDOCS%%%%DOCSDIR%%/_static/default.css
%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js
%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png
%%PORTDOCS%%%%DOCSDIR%%/_static/down.png
%%PORTDOCS%%%%DOCSDIR%%/_static/file.png
%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js
%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png
%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png
%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css
%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js
%%PORTDOCS%%%%DOCSDIR%%/_static/sidebar.js
%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js
%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png
%%PORTDOCS%%%%DOCSDIR%%/_static/up.png
%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js
%%PORTDOCS%%%%DOCSDIR%%/genindex.html
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/objects.inv
%%PORTDOCS%%%%DOCSDIR%%/py-modindex.html
%%PORTDOCS%%%%DOCSDIR%%/search.html
%%PORTDOCS%%%%DOCSDIR%%/searchindex.js
%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
%%PORTDOCS%%@dirrm %%DOCSDIR%%/.doctrees
%%PORTDOCS%%@dirrm %%DOCSDIR%%