aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.python.mk
diff options
context:
space:
mode:
authoralexbl <alexbl@FreeBSD.org>2006-12-22 13:26:01 +0800
committeralexbl <alexbl@FreeBSD.org>2006-12-22 13:26:01 +0800
commite763d446f1739a069883b53e208d826ce663cea4 (patch)
tree5654b19031a88991d0a76547756b8ba0a3091007 /Mk/bsd.python.mk
parent0d62f24b68671dc239db5ca98537f91f83217bab (diff)
downloadfreebsd-ports-graphics-e763d446f1739a069883b53e208d826ce663cea4.tar.gz
freebsd-ports-graphics-e763d446f1739a069883b53e208d826ce663cea4.tar.zst
freebsd-ports-graphics-e763d446f1739a069883b53e208d826ce663cea4.zip
- add a PYWSGIREF dependency line since wsgiref is included with 2.5
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r--Mk/bsd.python.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index d584cb789b8..69d19c5fd85 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -99,7 +99,8 @@ Python_Include_MAINTAINER= python@FreeBSD.org
# PYNUMERIC - Dependency line for the numeric extension. Py-Numeric-17
# is the last release that works with Python versions older
# than 1.6.
-# PYNUMPY - Dependency line for the new numeric extension.# py-numpy, Py-Numeric is deprecated.
+# PYNUMPY - Dependency line for the new numeric extension.
+# py-numpy, Py-Numeric is deprecated.
#
# PYXML - Dependency line for the XML extension. As of Python-2.0,
# this extension is in the base distribution.
@@ -113,6 +114,9 @@ Python_Include_MAINTAINER= python@FreeBSD.org
# PYHASHLIB - Dependency line for the hashlib package. As of Python-2.5,
# this module is in the base distribution.
#
+# PYWSGIREF - Dependency line for the wsgiref package. As of Python-2.5,
+# this module is in the base distribution.
+#
# USE_PYTHON_PREFIX - Says that the port installs in ${PYTHONBASE}.
#
# USE_PYDISTUTILS - Use distutils as do-configure, do-build and do-install
@@ -450,6 +454,12 @@ PYHASHLIB= ${PYTHON_SITELIBDIR}/hashlib.py:${PORTSDIR}/security/py-hashlib
PYHASHLIB= ${PYTHON_LIBDIR}/hashlib.py:${PYTHON_PORTSDIR}
.endif
+.if defined(PYTHON_REL) && ${PYTHON_REL} < 250
+PYWSGIREF= ${PYTHON_SITELIBDIR}/wsgiref/__init__.py:${PORTSDIR}/www/py-wsgiref
+.else
+PYWSGIREF= ${PYTHON_LIBDIR}/wsgiref/__init__.py:${PYTHON_PORTSIDR}
+.endif
+
# dependencies
PYTHON_NO_DEPENDS?= NO