Bug 186328 - [UPDATE] www/py-cssselect to 0.9.1
Summary: [UPDATE] www/py-cssselect to 0.9.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 05:00 UTC by Olivier Duchateau
Modified: 2014-04-01 23:10 UTC (History)
0 users

See Also:


Attachments
file.diff (2.92 KB, patch)
2014-02-01 05:00 UTC, Olivier Duchateau
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Duchateau freebsd_committer freebsd_triage 2014-02-01 05:00:00 UTC
- Update to 0.9.1
- Support STAGEDIR
- Clean little bit documentation part (install only necessary files)

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-01 05:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nivit

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-04-01 23:08:24 UTC
Author: nivit
Date: Tue Apr  1 22:08:18 2014
New Revision: 349894
URL: http://svnweb.freebsd.org/changeset/ports/349894
QAT: https://qat.redports.org/buildarchive/r349894/

Log:
  - 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

Modified:
  head/www/py-cssselect/Makefile
  head/www/py-cssselect/distinfo
  head/www/py-cssselect/files/patch-docs__conf.py
  head/www/py-cssselect/pkg-descr
  head/www/py-cssselect/pkg-plist

Modified: head/www/py-cssselect/Makefile
==============================================================================
--- head/www/py-cssselect/Makefile	Tue Apr  1 21:53:13 2014	(r349893)
+++ head/www/py-cssselect/Makefile	Tue Apr  1 22:08:18 2014	(r349894)
@@ -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
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+USE_PYTHON=	yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-# Python3 ready
-USE_PYTHON=	2
-USE_PYDISTUTILS=	easy_install
+.include <bsd.port.options.mk>
 
+.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>

Modified: head/www/py-cssselect/distinfo
==============================================================================
--- head/www/py-cssselect/distinfo	Tue Apr  1 21:53:13 2014	(r349893)
+++ head/www/py-cssselect/distinfo	Tue Apr  1 22:08:18 2014	(r349894)
@@ -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

Modified: head/www/py-cssselect/files/patch-docs__conf.py
==============================================================================
--- head/www/py-cssselect/files/patch-docs__conf.py	Tue Apr  1 21:53:13 2014	(r349893)
+++ head/www/py-cssselect/files/patch-docs__conf.py	Tue Apr  1 22:08:18 2014	(r349894)
@@ -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'}

Modified: head/www/py-cssselect/pkg-descr
==============================================================================
--- head/www/py-cssselect/pkg-descr	Tue Apr  1 21:53:13 2014	(r349893)
+++ head/www/py-cssselect/pkg-descr	Tue Apr  1 22:08:18 2014	(r349894)
@@ -5,4 +5,4 @@ to find the matching elements in an XML 
 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/

Modified: head/www/py-cssselect/pkg-plist
==============================================================================
--- head/www/py-cssselect/pkg-plist	Tue Apr  1 21:53:13 2014	(r349893)
+++ head/www/py-cssselect/pkg-plist	Tue Apr  1 22:08:18 2014	(r349894)
@@ -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%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2014-04-01 23:08:45 UTC
State Changed
From-To: open->closed

Committed (with minor changes), thanks!