mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Update to 0.9.1 [1]
- Add python to CATEGORIES [1] - Don't use/fetch objects.inv from Python site, because there is no reference to the standard library in the port docs, and so remove also the post-patch target - Specify the clause of BSD license - Allow to build port with Python 3 [1] - Add support for stage dir [1] - Use PYDISTUTILS_AUTOPLIST [1] - Clean a bit the documentation part (install only necessary files) [1] - Fix format of WWW field in pkg-descr [1] PR: ports/186328 Submitted by: olivierd
This commit is contained in:
parent
2172586fa7
commit
090a44e94d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349894
@ -2,50 +2,38 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= cssselect
|
||||
PORTVERSION= 0.7.1
|
||||
PORTVERSION= 0.9.1
|
||||
#PORTREVISION= 0
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= CHEESESHOP http://docs.python.org/:sphinx
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
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
|
||||
|
||||
LICENSE= BSD
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PYDISTUTILS_AUTOPLIST= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
# Python3 ready
|
||||
USE_PYTHON= 2
|
||||
USE_PYDISTUTILS= easy_install
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||
SPHINX_BUILD= sphinx-build
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
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} -N -a -b html ${WRKSRC}/docs ${WRKSRC}/docs.html && \
|
||||
cd ${WRKSRC}/docs.html && ${MKDIR} ${DOCSDIR} && \
|
||||
${COPYTREE_SHARE} . ${DOCSDIR}
|
||||
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:S,\$2,& \! -name .buildinfo -and \! -path *doctrees*,g} \
|
||||
. ${STAGEDIR}${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,2 @@
|
||||
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
|
||||
SHA256 (cssselect-0.9.1.tar.gz) = 0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682
|
||||
SIZE (cssselect-0.9.1.tar.gz) = 32952
|
||||
|
@ -1,8 +1,10 @@
|
||||
--- ./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 @@
|
||||
--- ./docs/conf.py.orig 2014-04-01 22:42:52.000000000 +0200
|
||||
+++ ./docs/conf.py 2014-04-01 22:43:15.000000000 +0200
|
||||
@@ -244,7 +244,3 @@
|
||||
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#texinfo_show_urls = 'footnote'
|
||||
-
|
||||
-
|
||||
-# 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'}
|
||||
|
@ -5,4 +5,4 @@ to find the matching elements in an XML or HTML document.
|
||||
This module used to live inside of lxml as ``lxml.cssselect`` before it was
|
||||
extracted as a stand-alone project.
|
||||
|
||||
WWW: http://packages.python.org/cssselect/
|
||||
WWW: http://packages.python.org/cssselect/
|
||||
|
@ -1,7 +1,3 @@
|
||||
%%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
|
||||
@ -31,5 +27,4 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/searchindex.js
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/.doctrees
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user