summaryrefslogtreecommitdiff
path: root/Mk/bsd.python.mk
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-07-03 14:41:09 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-07-03 14:41:09 +0000
commitc84dbd47277fafe4ecb3ef0ca7560f4aaea07ac1 (patch)
treea80938722b5dfc3067cb3e8830f24f6f980852db /Mk/bsd.python.mk
parentRegister conflicts among linux_base ports. (diff)
Update new python-devel port to 2.3.b2.
This update introduces two new knobs to _disable_ somewhat experimental options: BUILD_STATIC=yes Unless this option is specified, the port will build python as shared binary. WITH_UCS2=yes Unless this option is specified, Py_UNICODE type will charge 4 bytes per character (as we do for wchar_t) Repo-copied by: joe (thanks!)
Notes
Notes: svn path=/head/; revision=84141
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r--Mk/bsd.python.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 38d1f4a9f484..6701e1cb951b 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -107,7 +107,7 @@ _PYTHON_VERSION!= ${PYTHON_CMD} -c 'import sys; print sys.version[:3]'
.elif defined(USE_ZOPE)
_PYTHON_VERSION= 2.1
.else
-_PYTHON_VERSION!= (python -c 'import sys; print sys.version[:3]') 2> /dev/null \
+_PYTHON_VERSION!= (${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]') 2> /dev/null \
|| echo 2.2
.endif
PYTHON_VERSION?= python${_PYTHON_VERSION}
@@ -119,8 +119,20 @@ PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import string, sys; \
PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print sys.prefix') \
2> /dev/null || echo ${LOCALBASE}
+# Python-2.3
+.if ${PYTHON_VERSION} == "python2.3"
+PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
+PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
+PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
+
+PYTHON_DISTFILE= Python-2.3b2.tgz
+PYTHON_PORTSDIR= ${PORTSDIR}/lang/python-devel
+PYTHON_REL= 230
+PYTHON_SUFFIX= 23
+PYTHON_WRKSRC= ${WRKDIR}/Python-2.3b2
+
# Python-2.2
-.if ${PYTHON_VERSION} == "python2.2"
+.elif ${PYTHON_VERSION} == "python2.2"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
@@ -206,7 +218,8 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
@${ECHO} " python1.6"
@${ECHO} " python2.0"
@${ECHO} " python2.1"
- @${ECHO} " python2.2 (default)."
+ @${ECHO} " python2.2 (default)"
+ @${ECHO} " python2.3"
@${FALSE}
.endif