aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-11-13 17:06:31 +0800
committerrm <rm@FreeBSD.org>2012-11-13 17:06:31 +0800
commit07d48a3b8a2b279b2b45f425d988413102df55af (patch)
treeb21eaa99326fdac34127a116afeba4312ce969b6 /www
parent9e8a91e70275ebf3a7cc8f6b726e42d18d0ff64c (diff)
downloadfreebsd-ports-gnome-07d48a3b8a2b279b2b45f425d988413102df55af.tar.gz
freebsd-ports-gnome-07d48a3b8a2b279b2b45f425d988413102df55af.tar.zst
freebsd-ports-gnome-07d48a3b8a2b279b2b45f425d988413102df55af.zip
This is a Python library of web-related functions, such as:
- remove comments, or tags from HTML snippets - extract base url from HTML snippets - translate entites on HTML strings - encoding mulitpart/form-data - convert raw HTTP headers to dicts and vice-versa - construct HTTP auth header - converting HTML pages to unicode - RFC-compliant url joining - sanitize urls (like browsers do) - extract arguments from urls WWW: http://github.com/scrapy/w3lib Feature safe: yes
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-w3lib/Makefile17
-rw-r--r--www/py-w3lib/distinfo2
-rw-r--r--www/py-w3lib/pkg-descr14
-rw-r--r--www/py-w3lib/pkg-plist22
5 files changed, 56 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index b8d8e19e82bc..5b3d4048b621 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1629,6 +1629,7 @@
SUBDIR += py-urlgrabber
SUBDIR += py-urljr
SUBDIR += py-utidy
+ SUBDIR += py-w3lib
SUBDIR += py-waitress
SUBDIR += py-webhelpers
SUBDIR += py-webkitgtk
diff --git a/www/py-w3lib/Makefile b/www/py-w3lib/Makefile
new file mode 100644
index 000000000000..1a862a6b7242
--- /dev/null
+++ b/www/py-w3lib/Makefile
@@ -0,0 +1,17 @@
+# $FreeBSD$
+
+PORTNAME= w3lib
+PORTVERSION= 1.2
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rm@FreeBSD.org
+COMMENT= Library of web-related functions
+
+LICENSE= BSD
+
+USE_PYTHON= -2.7
+USE_PYDISTUTILS=yes
+
+.include <bsd.port.mk>
diff --git a/www/py-w3lib/distinfo b/www/py-w3lib/distinfo
new file mode 100644
index 000000000000..d04d1a2d12d2
--- /dev/null
+++ b/www/py-w3lib/distinfo
@@ -0,0 +1,2 @@
+SHA256 (w3lib-1.2.tar.gz) = 61f27e225635da7f4d005409e4874748cd63a1e1ffef3495edb7254c4d5ac339
+SIZE (w3lib-1.2.tar.gz) = 8584
diff --git a/www/py-w3lib/pkg-descr b/www/py-w3lib/pkg-descr
new file mode 100644
index 000000000000..7deeb4b4eb65
--- /dev/null
+++ b/www/py-w3lib/pkg-descr
@@ -0,0 +1,14 @@
+This is a Python library of web-related functions, such as:
+
+ - remove comments, or tags from HTML snippets
+ - extract base url from HTML snippets
+ - translate entites on HTML strings
+ - encoding mulitpart/form-data
+ - convert raw HTTP headers to dicts and vice-versa
+ - construct HTTP auth header
+ - converting HTML pages to unicode
+ - RFC-compliant url joining
+ - sanitize urls (like browsers do)
+ - extract arguments from urls
+
+WWW: http://github.com/scrapy/w3lib
diff --git a/www/py-w3lib/pkg-plist b/www/py-w3lib/pkg-plist
new file mode 100644
index 000000000000..7c02adcf7c25
--- /dev/null
+++ b/www/py-w3lib/pkg-plist
@@ -0,0 +1,22 @@
+%%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