aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexbl <alexbl@FreeBSD.org>2006-12-22 13:21:23 +0800
committeralexbl <alexbl@FreeBSD.org>2006-12-22 13:21:23 +0800
commit443a43c929d6fa493d171ea405cbbd76fa0105a2 (patch)
tree4522b0c2a92947901e2c6b0650e2ea033881423f
parent5157d823c59a28b92b60af03a7186205ba110636 (diff)
downloadfreebsd-ports-graphics-443a43c929d6fa493d171ea405cbbd76fa0105a2.tar.gz
freebsd-ports-graphics-443a43c929d6fa493d171ea405cbbd76fa0105a2.tar.zst
freebsd-ports-graphics-443a43c929d6fa493d171ea405cbbd76fa0105a2.zip
- add wsgiref 0.1.2
wsgiref is a reference implementation of the WSGI standard. This is a backport of wsgiref which is included in Python 2.5. WWW: http://cheeseshop.python.org/pypi/wsgiref
-rw-r--r--www/Makefile1
-rw-r--r--www/py-wsgiref/Makefile26
-rw-r--r--www/py-wsgiref/distinfo3
-rw-r--r--www/py-wsgiref/files/patch-setup.py14
-rw-r--r--www/py-wsgiref/pkg-descr4
-rw-r--r--www/py-wsgiref/pkg-plist19
6 files changed, 67 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index ed5539a60fb..2b7cd8eb79a 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -937,6 +937,7 @@
SUBDIR += py-urljr
SUBDIR += py-webware
SUBDIR += py-webware-component
+ SUBDIR += py-wsgiref
SUBDIR += pyblosxom
SUBDIR += pyweblib
SUBDIR += qdecoder
diff --git a/www/py-wsgiref/Makefile b/www/py-wsgiref/Makefile
new file mode 100644
index 00000000000..bd7b38e9648
--- /dev/null
+++ b/www/py-wsgiref/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: py-wsgiref
+# Date created: 21 Dec 2006
+# Whom: Alexander Botero-Lowry <alexbl@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= wsgiref
+PORTVERSION= 0.1.2
+CATEGORIES= www devel python
+MASTER_SITES= http://cheeseshop.python.org/packages/source/w/wsgiref/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= alexbl@FreeBSD.org
+COMMENT= Backport of Python 2.5's wsgiref module
+
+USE_ZIP= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 250
+IGNORE= hashlib ships with Python 2.5.x
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/py-wsgiref/distinfo b/www/py-wsgiref/distinfo
new file mode 100644
index 00000000000..002cbdb84d4
--- /dev/null
+++ b/www/py-wsgiref/distinfo
@@ -0,0 +1,3 @@
+MD5 (wsgiref-0.1.2.zip) = 29b146e6ebd0f9fb119fe321f7bcf6cb
+SHA256 (wsgiref-0.1.2.zip) = c7e610c800957046c04c8014aab8cce8f0b9f0495c8cd349e57c1f7cabf40e79
+SIZE (wsgiref-0.1.2.zip) = 37351
diff --git a/www/py-wsgiref/files/patch-setup.py b/www/py-wsgiref/files/patch-setup.py
new file mode 100644
index 00000000000..f737b9bdda4
--- /dev/null
+++ b/www/py-wsgiref/files/patch-setup.py
@@ -0,0 +1,14 @@
+--- setup.py.orig Thu Dec 21 21:11:56 2006
++++ setup.py Thu Dec 21 21:15:05 2006
+@@ -2,10 +2,7 @@
+
+ """Distutils setup file"""
+
+-import ez_setup
+-ez_setup.use_setuptools()
+-
+-from setuptools import setup, find_packages
++from distutils.core import setup
+
+ # Metadata
+ PACKAGE_NAME = "wsgiref"
diff --git a/www/py-wsgiref/pkg-descr b/www/py-wsgiref/pkg-descr
new file mode 100644
index 00000000000..5f0018e1ea5
--- /dev/null
+++ b/www/py-wsgiref/pkg-descr
@@ -0,0 +1,4 @@
+wsgiref is a reference implementation of the WSGI standard. This is a
+backport of wsgiref which is included in Python 2.5
+
+WWW: http://cheeseshop.python.org/pypi/wsgiref
diff --git a/www/py-wsgiref/pkg-plist b/www/py-wsgiref/pkg-plist
new file mode 100644
index 00000000000..84ed4474f70
--- /dev/null
+++ b/www/py-wsgiref/pkg-plist
@@ -0,0 +1,19 @@
+%%PYTHON_SITELIBDIR%%/wsgiref/__init__.py
+%%PYTHON_SITELIBDIR%%/wsgiref/__init__.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/__init__.pyo
+%%PYTHON_SITELIBDIR%%/wsgiref/handlers.py
+%%PYTHON_SITELIBDIR%%/wsgiref/handlers.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/handlers.pyo
+%%PYTHON_SITELIBDIR%%/wsgiref/headers.py
+%%PYTHON_SITELIBDIR%%/wsgiref/headers.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/headers.pyo
+%%PYTHON_SITELIBDIR%%/wsgiref/simple_server.py
+%%PYTHON_SITELIBDIR%%/wsgiref/simple_server.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/simple_server.pyo
+%%PYTHON_SITELIBDIR%%/wsgiref/util.py
+%%PYTHON_SITELIBDIR%%/wsgiref/util.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/util.pyo
+%%PYTHON_SITELIBDIR%%/wsgiref/validate.py
+%%PYTHON_SITELIBDIR%%/wsgiref/validate.pyc
+%%PYTHON_SITELIBDIR%%/wsgiref/validate.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/wsgiref