aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2007-12-18 22:54:59 +0800
committernivit <nivit@FreeBSD.org>2007-12-18 22:54:59 +0800
commit0062017a896a825d60e6436f741289e08fd874f4 (patch)
treef78469f74813d194fbb7bee8de6eadbd17b0c5e5
parent7747ac6a2476cdab97c0543701c998adaa34bcec (diff)
downloadfreebsd-ports-gnome-0062017a896a825d60e6436f741289e08fd874f4.tar.gz
freebsd-ports-gnome-0062017a896a825d60e6436f741289e08fd874f4.tar.zst
freebsd-ports-gnome-0062017a896a825d60e6436f741289e08fd874f4.zip
urlgrabber is a pure python package that drastically simplifies
the fetching of files. It is designed to be used in programs that need common (but not necessarily simple) url-fetching features. It is extremely simple to drop into an existing program and provides a clean interface to protocol-independant file-access. Best of all, urlgrabber takes care of all those pesky file-fetching details, and lets you focus on whatever it is that your program is written to do! Author: Michael D. Stenner, Ryan Tomayko WWW: http://linux.duke.edu/projects/urlgrabber/
-rw-r--r--www/Makefile1
-rw-r--r--www/py-urlgrabber/Makefile29
-rw-r--r--www/py-urlgrabber/distinfo3
-rw-r--r--www/py-urlgrabber/files/patch-setup.py18
-rw-r--r--www/py-urlgrabber/pkg-descr10
-rw-r--r--www/py-urlgrabber/pkg-plist29
6 files changed, 90 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f1ac1af4d9fe..38ff52223788 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1065,6 +1065,7 @@
SUBDIR += py-turbosetup
SUBDIR += py-twistedWeb
SUBDIR += py-twistedWeb2
+ SUBDIR += py-urlgrabber
SUBDIR += py-urljr
SUBDIR += py-utidy
SUBDIR += py-webhelpers
diff --git a/www/py-urlgrabber/Makefile b/www/py-urlgrabber/Makefile
new file mode 100644
index 000000000000..54cbac65b880
--- /dev/null
+++ b/www/py-urlgrabber/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: py-urlgrabber
+# Date created: 2007-09-22
+# Whom: Nicola Vitale <nivit@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= urlgrabber
+PORTVERSION= 3.1.0
+#PORTREVISION= 0
+CATEGORIES= www python
+MASTER_SITES= http://linux.duke.edu/projects/urlgrabber/download/ \
+ http://nivi.interfree.it/distfiles/${PORTNAME}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= A high-level cross-protocol url-grabber
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+.if !defined(NOPORTDOCS)
+REINPLACE_ARGS= -i.bak -e 's,%%DOCSDIR%%,${DOCSDIR},'
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} ${WRKSRC}/${PYSETUP}
+
+.include <bsd.port.mk>
diff --git a/www/py-urlgrabber/distinfo b/www/py-urlgrabber/distinfo
new file mode 100644
index 000000000000..2c9859f567b6
--- /dev/null
+++ b/www/py-urlgrabber/distinfo
@@ -0,0 +1,3 @@
+MD5 (urlgrabber-3.1.0.tar.gz) = 2a92d8ce0d89c5e772a98e9b8dcd5b73
+SHA256 (urlgrabber-3.1.0.tar.gz) = 34d48f4f4390ed06c0fc8fac580f6fe4cd2bfb3557ff0f11254a7bea25d353ca
+SIZE (urlgrabber-3.1.0.tar.gz) = 78848
diff --git a/www/py-urlgrabber/files/patch-setup.py b/www/py-urlgrabber/files/patch-setup.py
new file mode 100644
index 000000000000..b3b65503a3bb
--- /dev/null
+++ b/www/py-urlgrabber/files/patch-setup.py
@@ -0,0 +1,18 @@
+--- setup.py 2005-03-08 23:53:20.000000000 +0100
++++ setup.py.port 2007-09-22 17:12:58.000000000 +0200
+@@ -1,4 +1,5 @@
+ # urlgrabber distutils setup
++import os
+ import re as _re
+ import urlgrabber as _urlgrabber
+
+@@ -15,7 +16,8 @@
+ packages = ['urlgrabber']
+ package_dir = {'urlgrabber':'urlgrabber'}
+ scripts = ['scripts/urlgrabber']
+-data_files = [('share/doc/' + name + '-' + version,
++if not os.getenv('NOPORTDOCS'):
++ data_files = [('%%DOCSDIR%%',
+ ['README','LICENSE', 'TODO', 'ChangeLog'])]
+ options = { 'clean' : { 'all' : 1 } }
+ classifiers = [
diff --git a/www/py-urlgrabber/pkg-descr b/www/py-urlgrabber/pkg-descr
new file mode 100644
index 000000000000..080fcbfb5e4a
--- /dev/null
+++ b/www/py-urlgrabber/pkg-descr
@@ -0,0 +1,10 @@
+urlgrabber is a pure python package that drastically simplifies
+the fetching of files. It is designed to be used in programs that
+need common (but not necessarily simple) url-fetching features.
+It is extremely simple to drop into an existing program and provides
+a clean interface to protocol-independant file-access. Best of all,
+urlgrabber takes care of all those pesky file-fetching details, and
+lets you focus on whatever it is that your program is written to do!
+
+Author: Michael D. Stenner, Ryan Tomayko
+WWW: http://linux.duke.edu/projects/urlgrabber/
diff --git a/www/py-urlgrabber/pkg-plist b/www/py-urlgrabber/pkg-plist
new file mode 100644
index 000000000000..95a2b3c2f7b0
--- /dev/null
+++ b/www/py-urlgrabber/pkg-plist
@@ -0,0 +1,29 @@
+@comment $FreeBSD$
+bin/urlgrabber
+%%PYTHON_SITELIBDIR%%/urlgrabber/__init__.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/__init__.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/__init__.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/byterange.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/byterange.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/byterange.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/grabber.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/grabber.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/grabber.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/keepalive.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/keepalive.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/keepalive.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/mirror.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/mirror.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/mirror.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/progress.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/progress.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/progress.pyo
+%%PYTHON_SITELIBDIR%%/urlgrabber/sslfactory.py
+%%PYTHON_SITELIBDIR%%/urlgrabber/sslfactory.pyc
+%%PYTHON_SITELIBDIR%%/urlgrabber/sslfactory.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/urlgrabber
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%