1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

devel/py-experimental.cssselect: fix packaging on python3

This commit is contained in:
Ruslan Makhmatkhanov 2015-01-17 22:16:49 +00:00
parent e65f58a3eb
commit 7ae014ad49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377267
2 changed files with 19 additions and 1 deletions

View File

@ -13,6 +13,13 @@ COMMENT= Experimental version of lxml.cssselect
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>

View File

@ -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('.'))],