summaryrefslogtreecommitdiff
path: root/Mk/bsd.python.mk
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2002-01-07 13:26:47 +0000
committerThomas Gellekum <tg@FreeBSD.org>2002-01-07 13:26:47 +0000
commit555f286ca1951e71463732dff86ed6ffc46087d5 (patch)
tree441cd21b52ca90156cb9dd4258247e99df3c2072 /Mk/bsd.python.mk
parentCatch up with interface change in XML::LibXML 1.31, using a patch (diff)
Upgrade lang/python to 2.2. Adjust bsd.python.mk accordingly.
PR: 33444 Submitted by: Hye-Shik Chang <perky@fallin.lv> Add new MD5 to dependent ports.
Notes
Notes: svn path=/head/; revision=52711
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r--Mk/bsd.python.mk19
1 files changed, 15 insertions, 4 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 29c0450f6ce3..b15b446a1806 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -77,22 +77,33 @@ Python_Include_MAINTAINER= tg@FreeBSD.org
# version number is substituted and the corresponding Python distribution
# will be built through the dependency processing.
_PYTHON_VERSION!= (python -c 'import sys; print sys.version[:3]') 2> /dev/null \
- || echo 2.1
+ || echo 2.2
PYTHON_VERSION?= python${_PYTHON_VERSION}
-_PYTHON_PORTVERSION= 2.1.1
+_PYTHON_PORTVERSION= 2.2
PYTHON_PORTVERSION!= (${PYTHON_VERSION} -c 'import string, sys; \
print string.split(sys.version)[0]') 2> /dev/null \
|| echo ${_PYTHON_PORTVERSION}
+# Python-2.2
+.if ${PYTHON_VERSION} == "python2.2"
+PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
+PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
+
+PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
+PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
+PYTHON_REL= 220
+PYTHON_SUFFIX= 22
+PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
+
# Python-2.1
-.if ${PYTHON_VERSION} == "python2.1"
+.elif ${PYTHON_VERSION} == "python2.1"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
PYTHON_REL= 211
-PYTHON_SUFFIX= # empty, default version
+PYTHON_SUFFIX= 21
PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
# Python-2.0