aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2013-11-11 02:40:48 +0800
committerrm <rm@FreeBSD.org>2013-11-11 02:40:48 +0800
commit3ca00775cb5022a0033fcfc33b54e11394f46777 (patch)
tree2fc4d212bfec0418f05bd6895be4598d6f87672b /www
parent074b61f24c109250fafeca6fbdc8a63f205ca019 (diff)
downloadfreebsd-ports-gnome-3ca00775cb5022a0033fcfc33b54e11394f46777.tar.gz
freebsd-ports-gnome-3ca00775cb5022a0033fcfc33b54e11394f46777.tar.zst
freebsd-ports-gnome-3ca00775cb5022a0033fcfc33b54e11394f46777.zip
- update to 1.5
- convert to setuptools (following upstream change) - update python version (works with 3.x via py-six) - add staging - use PYDISTUTILS_AUTOPLIST
Diffstat (limited to 'www')
-rw-r--r--www/py-w3lib/Makefile10
-rw-r--r--www/py-w3lib/distinfo4
-rw-r--r--www/py-w3lib/files/patch-setup.py8
-rw-r--r--www/py-w3lib/pkg-descr2
-rw-r--r--www/py-w3lib/pkg-plist22
5 files changed, 17 insertions, 29 deletions
diff --git a/www/py-w3lib/Makefile b/www/py-w3lib/Makefile
index edc949a6f1ef..27f99cc9f6b2 100644
--- a/www/py-w3lib/Makefile
+++ b/www/py-w3lib/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= w3lib
-PORTVERSION= 1.3
+PORTVERSION= 1.5
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +11,10 @@ COMMENT= Library of web-related functions
LICENSE= BSD
-USE_PYTHON= -2.7
-USE_PYDISTUTILS=yes
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=easy_install
+PYDISTUTILS_AUTOPLIST= yes
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/www/py-w3lib/distinfo b/www/py-w3lib/distinfo
index 3faa28b34d2b..5a0fcd23cedb 100644
--- a/www/py-w3lib/distinfo
+++ b/www/py-w3lib/distinfo
@@ -1,2 +1,2 @@
-SHA256 (w3lib-1.3.tar.gz) = d3a02099256646971dd52fbd0cb9c705e945373c69d5b5722b2d840db83aeeec
-SIZE (w3lib-1.3.tar.gz) = 8535
+SHA256 (w3lib-1.5.tar.gz) = f611f0a21327aa93af09ef45c04fa87849b697e60157c1fc24bbb90796d290a6
+SIZE (w3lib-1.5.tar.gz) = 9416
diff --git a/www/py-w3lib/files/patch-setup.py b/www/py-w3lib/files/patch-setup.py
new file mode 100644
index 000000000000..2c8be010d48e
--- /dev/null
+++ b/www/py-w3lib/files/patch-setup.py
@@ -0,0 +1,8 @@
+--- ./setup.py.orig 2013-11-09 12:00:10.000000000 +0400
++++ ./setup.py 2013-11-10 22:16:19.000000000 +0400
+@@ -24,4 +24,5 @@
+ 'Topic :: Internet :: WWW/HTTP',
+ ],
+ install_requires=['six >= 1.4.1'],
++ zip_safe = False,
+ )
diff --git a/www/py-w3lib/pkg-descr b/www/py-w3lib/pkg-descr
index 7deeb4b4eb65..2f1ef3912c2a 100644
--- a/www/py-w3lib/pkg-descr
+++ b/www/py-w3lib/pkg-descr
@@ -11,4 +11,4 @@ This is a Python library of web-related functions, such as:
- sanitize urls (like browsers do)
- extract arguments from urls
-WWW: http://github.com/scrapy/w3lib
+WWW: http://github.com/scrapy/w3lib/
diff --git a/www/py-w3lib/pkg-plist b/www/py-w3lib/pkg-plist
deleted file mode 100644
index 7c02adcf7c25..000000000000
--- a/www/py-w3lib/pkg-plist
+++ /dev/null
@@ -1,22 +0,0 @@
-%%PYTHON_SITELIBDIR%%/w3lib/__init__.py
-%%PYTHON_SITELIBDIR%%/w3lib/__init__.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/__init__.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/encoding.py
-%%PYTHON_SITELIBDIR%%/w3lib/encoding.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/encoding.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/form.py
-%%PYTHON_SITELIBDIR%%/w3lib/form.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/form.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/html.py
-%%PYTHON_SITELIBDIR%%/w3lib/html.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/html.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/http.py
-%%PYTHON_SITELIBDIR%%/w3lib/http.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/http.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/url.py
-%%PYTHON_SITELIBDIR%%/w3lib/url.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/url.pyo
-%%PYTHON_SITELIBDIR%%/w3lib/util.py
-%%PYTHON_SITELIBDIR%%/w3lib/util.pyc
-%%PYTHON_SITELIBDIR%%/w3lib/util.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/w3lib