svn commit: r377267 - in head/devel/py-experimental.cssselect: . files
Ruslan Makhmatkhanov
rm at FreeBSD.org
Sat Jan 17 22:16:51 UTC 2015
Author: rm
Date: Sat Jan 17 22:16:49 2015
New Revision: 377267
URL: https://svnweb.freebsd.org/changeset/ports/377267
QAT: https://qat.redports.org/buildarchive/r377267/
Log:
devel/py-experimental.cssselect: fix packaging on python3
Added:
head/devel/py-experimental.cssselect/files/
head/devel/py-experimental.cssselect/files/patch-setup.py (contents, props changed)
Modified:
head/devel/py-experimental.cssselect/Makefile
Modified: head/devel/py-experimental.cssselect/Makefile
==============================================================================
--- head/devel/py-experimental.cssselect/Makefile Sat Jan 17 21:51:43 2015 (r377266)
+++ head/devel/py-experimental.cssselect/Makefile Sat Jan 17 22:16:49 2015 (r377267)
@@ -13,6 +13,13 @@ COMMENT= Experimental version of lxml.cs
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml
USES= python zip
-USE_PYTHON= distutils autoplist
+USE_PYTHON= autoplist distutils
+
+post-patch:
+ # fix pkg-plist problem with python3. This file is not installing.
+ @${REINPLACE_CMD} -e 's|src/experimental/__init__.py||' \
+ ${WRKSRC}/src/experimental.cssselect.egg-info/SOURCES.txt
+ @${RM} ${WRKSRC}/src/experimental/__init__.py \
+ ${WRKSRC}/src/experimental.cssselect.egg-info/SOURCES.txt.bak
.include <bsd.port.mk>
Added: head/devel/py-experimental.cssselect/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-experimental.cssselect/files/patch-setup.py Sat Jan 17 22:16:49 2015 (r377267)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2012-04-04 20:27:16 UTC
++++ setup.py
+@@ -16,7 +16,7 @@ setup(
+ open("CHANGES.txt").read(),
+ author='Laurence Rowe',
+ url='https://github.com/lrowe/experimental.cssselect',
+- packages=find_packages('src'),
++ packages=['experimental'],
+ package_dir={'':'src'},
+ namespace_packages=[
+ '.'.join(name.split('.')[:n+1]) for n in range(name.count('.'))],
More information about the svn-ports-all
mailing list