pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python add Python 2.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/971f43d551ee
branches: trunk
changeset: 485320:971f43d551ee
user: recht <recht%pkgsrc.org@localhost>
date: Sun Dec 05 23:39:03 2004 +0000
description:
add Python 2.4
diffstat:
lang/python/pyversion.mk | 33 ++++++++++++++++++++++++++++++---
lang/python/srcdist.mk | 14 ++++++++++++--
2 files changed, 42 insertions(+), 5 deletions(-)
diffs (92 lines):
diff -r 7296e40c59d3 -r 971f43d551ee lang/python/pyversion.mk
--- a/lang/python/pyversion.mk Sun Dec 05 23:30:25 2004 +0000
+++ b/lang/python/pyversion.mk Sun Dec 05 23:39:03 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.29 2004/07/23 15:35:50 recht Exp $
+# $NetBSD: pyversion.mk,v 1.30 2004/12/05 23:39:03 recht Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -11,7 +11,7 @@
BUILDLINK_DEPENDS.python22-pth?= python22-pth>=2.2.3nb2
BUILDLINK_DEPENDS.python23-pth?= python23-pth>=2.3.3nb3
.endif
-PYTHON_VERSIONS_ACCEPTED?= 23 23pth 22 22pth 21 21pth 20
+PYTHON_VERSIONS_ACCEPTED?= 24 24pth 23 23pth 22 22pth 21 21pth 20
PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default
BUILDLINK_DEPENDS.python15?= python15>=1.5
@@ -22,6 +22,8 @@
BUILDLINK_DEPENDS.python22-pth?= python22-pth>=2.2
BUILDLINK_DEPENDS.python23?= python23>=2.3
BUILDLINK_DEPENDS.python23-pth?= python23-pth>=2.3
+BUILDLINK_DEPENDS.python24?= python24>=2.4
+BUILDLINK_DEPENDS.python24-pth?= python24-pth>=2.4
# transform the list into individual variables
.for pv in ${PYTHON_VERSIONS_ACCEPTED}
@@ -31,6 +33,12 @@
.endfor
# check what is installed
+.if exists(${LOCALBASE}/bin/python2.4)
+_PYTHON_VERSION_24_INSTALLED= yes
+.endif
+.if exists(${LOCALBASE}/bin/python2p4)
+_PYTHON_VERSION_24pth_INSTALLED=yes
+.endif
.if exists(${LOCALBASE}/bin/python2.3)
_PYTHON_VERSION_23_INSTALLED= yes
.endif
@@ -103,7 +111,26 @@
# PYPKGPREFIX: prefix to use in PKGNAME for extensions which can install
# to multiple Python versions
#
-.if ${_PYTHON_VERSION} == "23"
+.if ${_PYTHON_VERSION} == "24"
+PYPKGSRCDIR= ../../lang/python24
+PYDEPENDENCY= ${BUILDLINK_DEPENDS.python24}:${PYPKGSRCDIR}
+PYPACKAGE= python24
+PYVERSSUFFIX= 2.4
+PYPKGPREFIX= py24
+.elif ${_PYTHON_VERSION} == "24pth"
+PYPKGSRCDIR= ../../lang/python24-pth
+PYDEPENDENCY= ${BUILDLINK_DEPENDS.python24-pth}:${PYPKGSRCDIR}
+PYPACKAGE= python24-pth
+PYVERSSUFFIX= 2p4
+PYPKGPREFIX= py24pth
+. if defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO])
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink3.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink3.mk"
+. endif
+. endif
+.elif ${_PYTHON_VERSION} == "23"
PYPKGSRCDIR= ../../lang/python23
PYDEPENDENCY= ${BUILDLINK_DEPENDS.python23}:${PYPKGSRCDIR}
PYPACKAGE= python23
diff -r 7296e40c59d3 -r 971f43d551ee lang/python/srcdist.mk
--- a/lang/python/srcdist.mk Sun Dec 05 23:30:25 2004 +0000
+++ b/lang/python/srcdist.mk Sun Dec 05 23:39:03 2004 +0000
@@ -1,8 +1,18 @@
-# $NetBSD: srcdist.mk,v 1.11 2004/06/02 12:30:55 recht Exp $
+# $NetBSD: srcdist.mk,v 1.12 2004/12/05 23:39:03 recht Exp $
.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == "23" || ${_PYTHON_VERSION} == "23pth"
+.if ${_PYTHON_VERSION} == "24" || ${_PYTHON_VERSION} == "24pth"
+
+DISTNAME= Python-2.4
+EXTRACT_SUFX= .tar.bz2
+DISTINFO_FILE= ${.CURDIR}/../../lang/python24/distinfo
+PATCHDIR= ${.CURDIR}/../../lang/python24/patches
+PYSUBDIR= Python-2.4
+WRKSRC= ${WRKDIR}/${PYSUBDIR}
+MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/
+
+.elif ${_PYTHON_VERSION} == "23" || ${_PYTHON_VERSION} == "23pth"
DISTNAME= Python-2.3.4
EXTRACT_SUFX= .tgz
Home |
Main Index |
Thread Index |
Old Index