summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/moss/Makefile4
-rw-r--r--cad/py-MyHDL/Makefile4
-rw-r--r--databases/py-ZODB/Makefile4
-rw-r--r--databases/py-bsddb3/Makefile4
-rw-r--r--databases/py-ldap/Makefile8
-rw-r--r--databases/py-psycopg/Makefile6
-rw-r--r--databases/py-sybase/Makefile4
-rw-r--r--devel/ExmanIDE/Makefile4
-rw-r--r--devel/boaconstructor/Makefile4
-rw-r--r--devel/codeville/Makefile6
-rw-r--r--devel/eric3/Makefile4
-rw-r--r--devel/py-InlineEgg/Makefile4
-rw-r--r--devel/py-TPG/Makefile4
-rw-r--r--devel/py-cursespanel/Makefile4
-rw-r--r--devel/py-idle/Makefile10
-rw-r--r--devel/roundup/Makefile4
-rw-r--r--fonts/mftrace/Makefile4
-rw-r--r--graphics/mayavi/Makefile6
-rw-r--r--graphics/vtk-python/Makefile4
-rw-r--r--lang/py-funge/Makefile4
-rw-r--r--lang/py-psyco/Makefile4
-rw-r--r--lang/py-pyrex/Makefile4
-rw-r--r--lang/python/pyversion.mk81
-rw-r--r--lang/python/srcdist.mk10
-rw-r--r--lang/python21-pth/Makefile27
-rw-r--r--lang/python21-pth/PLIST2
-rw-r--r--lang/python21-pth/buildlink3.mk27
-rw-r--r--lang/python21-pth/distinfo17
-rw-r--r--lang/python21-pth/patches/patch-aa17
-rw-r--r--lang/python21-pth/patches/patch-ab10
-rw-r--r--lang/python21-pth/patches/patch-ac108
-rw-r--r--lang/python21-pth/patches/patch-ad23
-rw-r--r--lang/python21-pth/patches/patch-ae13
-rw-r--r--lang/python21-pth/patches/patch-af31
-rw-r--r--lang/python21-pth/patches/patch-ag13
-rw-r--r--lang/python21-pth/patches/patch-ah75
-rw-r--r--lang/python21-pth/patches/patch-ai20
-rw-r--r--lang/python21-pth/patches/patch-aj13
-rw-r--r--lang/python21-pth/patches/patch-ba32
-rw-r--r--lang/python21-pth/patches/patch-bb18
-rw-r--r--lang/python21-pth/patches/patch-bc33
-rw-r--r--lang/python21/Makefile66
-rw-r--r--lang/python21/Makefile.common59
-rw-r--r--lang/python22-pth/Makefile27
-rw-r--r--lang/python22-pth/PLIST2
-rw-r--r--lang/python22-pth/buildlink3.mk27
-rw-r--r--lang/python22-pth/distinfo15
-rw-r--r--lang/python22-pth/patches/patch-aa172
-rw-r--r--lang/python22-pth/patches/patch-ab10
-rw-r--r--lang/python22-pth/patches/patch-ae23
-rw-r--r--lang/python22-pth/patches/patch-af88
-rw-r--r--lang/python22-pth/patches/patch-ag13
-rw-r--r--lang/python22-pth/patches/patch-ah12
-rw-r--r--lang/python22-pth/patches/patch-ai31
-rw-r--r--lang/python22-pth/patches/patch-aj12
-rw-r--r--lang/python22-pth/patches/patch-ba32
-rw-r--r--lang/python22-pth/patches/patch-bb18
-rw-r--r--lang/python22-pth/patches/patch-bc33
-rw-r--r--lang/python22/Makefile58
-rw-r--r--lang/python22/Makefile.common51
-rw-r--r--lang/python23-pth/Makefile28
-rw-r--r--lang/python23-pth/PLIST2
-rw-r--r--lang/python23-pth/buildlink3.mk28
-rw-r--r--lang/python23-pth/distinfo19
-rw-r--r--lang/python23-pth/patches/patch-aa13
-rw-r--r--lang/python23-pth/patches/patch-ab26
-rw-r--r--lang/python23-pth/patches/patch-ad23
-rw-r--r--lang/python23-pth/patches/patch-ae13
-rw-r--r--lang/python23-pth/patches/patch-af19
-rw-r--r--lang/python23-pth/patches/patch-ah55
-rw-r--r--lang/python23-pth/patches/patch-al91
-rw-r--r--lang/python23-pth/patches/patch-am350
-rw-r--r--lang/python23-pth/patches/patch-ba86
-rw-r--r--lang/python23-pth/patches/patch-bb34
-rw-r--r--lang/python23-pth/patches/patch-ca54
-rw-r--r--lang/python23-pth/patches/patch-cb24
-rw-r--r--lang/python23-pth/patches/patch-da17
-rw-r--r--lang/python23-pth/patches/patch-db35
-rw-r--r--lang/python23-pth/patches/patch-dc20
-rw-r--r--lang/python23/Makefile3
-rw-r--r--lang/python23/Makefile.common3
-rw-r--r--lang/python24-pth/Makefile27
-rw-r--r--lang/python24-pth/PLIST2
-rw-r--r--lang/python24-pth/buildlink3.mk27
-rw-r--r--lang/python24-pth/distinfo18
-rw-r--r--lang/python24-pth/patches/patch-aa26
-rw-r--r--lang/python24-pth/patches/patch-ab22
-rw-r--r--lang/python24-pth/patches/patch-ac13
-rw-r--r--lang/python24-pth/patches/patch-ad31
-rw-r--r--lang/python24-pth/patches/patch-ae18
-rw-r--r--lang/python24-pth/patches/patch-af46
-rw-r--r--lang/python24-pth/patches/patch-ag17
-rw-r--r--lang/python24-pth/patches/patch-ah86
-rw-r--r--lang/python24-pth/patches/patch-ai15
-rw-r--r--lang/python24-pth/patches/patch-aj15
-rw-r--r--lang/python24-pth/patches/patch-ak22
-rw-r--r--lang/python24-pth/patches/patch-al95
-rw-r--r--lang/python24-pth/patches/patch-am268
-rw-r--r--lang/python24-pth/patches/patch-ba11
-rw-r--r--lang/python24/Makefile118
-rw-r--r--lang/python24/Makefile.common110
-rw-r--r--lang/python24/PLIST.Darwin1
-rw-r--r--lang/python24/PLIST.common_end1
-rw-r--r--mail/getmail/Makefile4
-rw-r--r--mail/mailman/Makefile4
-rw-r--r--mail/offlineimap/Makefile4
-rw-r--r--mail/tmda/Makefile4
-rw-r--r--math/py-numarray/Makefile4
-rw-r--r--math/py-pytables/Makefile4
-rw-r--r--misc/koffice/Makefile4
-rw-r--r--multimedia/gstreamer/Makefile4
-rw-r--r--net/bittornado/Makefile.common4
-rw-r--r--net/bittorrent/Makefile.common4
-rw-r--r--net/nicotine/Makefile4
-rw-r--r--net/py-ORBit/Makefile6
-rw-r--r--net/py-google/Makefile4
-rw-r--r--net/py-kenosis/Makefile4
-rw-r--r--net/py-mimelib/Makefile6
-rw-r--r--net/py-soappy/Makefile4
-rw-r--r--net/py-spreadmodule/Makefile4
-rw-r--r--net/py-twisted/Makefile4
-rw-r--r--net/pygopherd/Makefile4
-rw-r--r--security/mixminion/Makefile4
-rw-r--r--security/py-gnutls/Makefile4
-rw-r--r--security/py-m2crypto/Makefile4
-rw-r--r--sysutils/duplicity/Makefile4
-rw-r--r--sysutils/rdiff-backup/Makefile4
-rw-r--r--sysutils/xentools12/Makefile4
-rw-r--r--textproc/doclifter/Makefile4
-rw-r--r--textproc/py-Lupy/Makefile4
-rw-r--r--textproc/py-Reverend/Makefile4
-rw-r--r--textproc/py-SimpleParse/Makefile4
-rw-r--r--textproc/py-csv/Makefile4
-rw-r--r--textproc/py-docutils/Makefile4
-rw-r--r--textproc/py-feedparser/Makefile4
-rw-r--r--textproc/rubber/Makefile4
-rw-r--r--time/gdeskcal/Makefile4
-rw-r--r--www/ap2-python/Makefile4
-rw-r--r--www/py-clearsilver/Makefile4
-rw-r--r--www/py-curl/Makefile4
-rw-r--r--www/zope25/Makefile4
-rw-r--r--www/zopeedit/Makefile4
-rw-r--r--x11/py-Tk/Makefile4
-rw-r--r--x11/py-gnome2/Makefile4
-rw-r--r--x11/py-gtk2/Makefile4
-rw-r--r--x11/py-qt3-base/Makefile4
-rw-r--r--x11/py-qt3-modules/Makefile4
-rw-r--r--x11/py-qt3-qscintilla/Makefile4
-rw-r--r--x11/py-qt3-sip/Makefile4
-rw-r--r--x11/py-wxWidgets/Makefile8
150 files changed, 482 insertions, 3069 deletions
diff --git a/audio/moss/Makefile b/audio/moss/Makefile
index 2ebce777d65..191e6a614ad 100644
--- a/audio/moss/Makefile
+++ b/audio/moss/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2004/12/28 02:47:41 reed Exp $
+# $NetBSD: Makefile,v 1.8 2005/01/23 20:41:45 recht Exp $
DISTNAME= moss-0.1.13
PKGREVISION= 1
@@ -15,7 +15,7 @@ DEPENDS+= ${PYPKGPREFIX}-vorbis>=1.3:../../audio/py-vorbis
USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
PYTHON_PATCH_SCRIPTS= ${WRKSRC}/*.py
RCD_SCRIPTS= moss
diff --git a/cad/py-MyHDL/Makefile b/cad/py-MyHDL/Makefile
index 8829273af8d..da903403f65 100644
--- a/cad/py-MyHDL/Makefile
+++ b/cad/py-MyHDL/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/01/05 15:20:10 drochner Exp $
+# $NetBSD: Makefile,v 1.8 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= myhdl-0.4.1
@@ -12,7 +12,7 @@ COMMENT= Hardware description in Python
USE_BUILDLINK3= YES
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 24 24pth
+PYTHON_VERSIONS_ACCEPTED= 23 24
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-ZODB/Makefile b/databases/py-ZODB/Makefile
index 9564b189441..0541fb638ea 100644
--- a/databases/py-ZODB/Makefile
+++ b/databases/py-ZODB/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/07/22 09:16:00 recht Exp $
+# $NetBSD: Makefile,v 1.9 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= ZODB3-3.2.1
@@ -15,7 +15,7 @@ USE_BUILDLINK3= yes
PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 23 22pth 22
+PYTHON_VERSIONS_ACCEPTED= 23 22
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index 6ed36e94b6d..566726f1710 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/01/16 19:52:29 markd Exp $
+# $NetBSD: Makefile,v 1.13 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= bsddb3-4.3.0
@@ -21,7 +21,7 @@ BUILDLINK_DEPENDS.db4+= db4>=4.2.52
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
.endif
do-test:
diff --git a/databases/py-ldap/Makefile b/databases/py-ldap/Makefile
index 37972ec3424..deff89dd4af 100644
--- a/databases/py-ldap/Makefile
+++ b/databases/py-ldap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/12/03 13:55:48 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2005/01/23 20:41:45 recht Exp $
DISTNAME= python-ldap-2.0.2
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/}
@@ -10,7 +10,7 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/python-ldap/
COMMENT= LDAP client API for Python
-PYTHON_VERSIONS_ACCEPTED= 21pth 22pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 21 22 23
PYDISTUTILSPKG= yes
USE_BUILDLINK3= yes
@@ -24,8 +24,8 @@ SUBST_SED.setup= -e "s|/usr/local/openldap-REL_ENG_2_1|${BUILDLINK_PREFIX.cyrus
.include "../../security/cyrus-sasl2/buildlink3.mk"
.include "../../lang/python/extension.mk"
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
-SUBST_SED.setup+= -e "s|crypto|& pthread|"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == ""
+SUBST_SED.setup+= -e "s|crypto|& read|"
.endif
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-psycopg/Makefile b/databases/py-psycopg/Makefile
index d14161f89bb..51f7dd6dcc8 100644
--- a/databases/py-psycopg/Makefile
+++ b/databases/py-psycopg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2004/12/03 15:14:53 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= psycopg-1.1.14
@@ -18,11 +18,11 @@ CONFIGURE_ARGS+= \
BUILD_TARGET= default
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
PY_PATCHPLIST= yes
.include "../../lang/python/extension.mk"
.include "../../time/py-mxDateTime/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/read.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-sybase/Makefile b/databases/py-sybase/Makefile
index bc6a281da86..fd8441b51ff 100644
--- a/databases/py-sybase/Makefile
+++ b/databases/py-sybase/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2004/10/05 19:49:28 tsarna Exp $
+# $NetBSD: Makefile,v 1.8 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= sybase-0.36
@@ -11,7 +11,7 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.object-craft.com.au/projects/sybase/
COMMENT= Sybase interface for Python using FreeTDS
-PYTHON_VERSIONS_ACCEPTED= 21pth 22pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 21 22 23
BUILDLINK_DEPENDS.freetds= freetds-0.61*
PYSETUPBUILDARGS= build_ext -D HAVE_FREETDS=61 -U WANT_BULKCOPY
diff --git a/devel/ExmanIDE/Makefile b/devel/ExmanIDE/Makefile
index 85594b94284..e7de8679cc5 100644
--- a/devel/ExmanIDE/Makefile
+++ b/devel/ExmanIDE/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/12/25 20:03:52 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:45 recht Exp $
DISTNAME= ExmanIDE-0.9.4
PKGREVISION= 1
@@ -16,7 +16,7 @@ USE_BUILDLINK3= yes
NO_CONFIGURE= yes
NO_BUILD= yes
-PYTHON_VERSIONS_ACCEPTED?= 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED?= 23 22
SUBST_CLASSES+= mod
SUBST_MESSAGE.mod= "Fixing deprecated module names."
diff --git a/devel/boaconstructor/Makefile b/devel/boaconstructor/Makefile
index de0fdaad139..a1cd5601c61 100644
--- a/devel/boaconstructor/Makefile
+++ b/devel/boaconstructor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/12/25 20:03:52 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= boa-constructor-0.2.3.src
@@ -15,7 +15,7 @@ COMMENT= Python IDE
WRKSRC= ${WRKDIR}/boa-constructor-0.2.3
EXTRACT_CMD_OPTS.zip= -aqo
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
BOADIR= ${PREFIX}/share/boa-constructor-0.2.3
SEDSUBST= -e "s|@PYTHONBIN@|${PYTHONBIN}|"
diff --git a/devel/codeville/Makefile b/devel/codeville/Makefile
index 21a5a54b28b..f5952c4f8e6 100644
--- a/devel/codeville/Makefile
+++ b/devel/codeville/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/10/03 00:13:25 tv Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= Codeville-0.1.8
@@ -14,8 +14,8 @@ COMMENT= Distributed revision control system
USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
-# XXX we don't need threads, but db3 is linked against libpthread
-PYTHON_VERSIONS_ACCEPTED= 23pth
+# XXX we don't need threads, but db3 is linked against libread
+PYTHON_VERSIONS_ACCEPTED= 23
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
diff --git a/devel/eric3/Makefile b/devel/eric3/Makefile
index e31e28b61f5..95e45c13ca4 100644
--- a/devel/eric3/Makefile
+++ b/devel/eric3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/01/05 20:50:07 darcy Exp $
+# $NetBSD: Makefile,v 1.6 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= eric-3.4.2
@@ -17,7 +17,7 @@ NO_BUILD= yes
USE_LANGUAGES=
PY_PATCHPLIST= yes
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
CONFIGURE_ARGS= -b ${PREFIX}/bin -d ${PREFIX}/${PYSITELIB}
diff --git a/devel/py-InlineEgg/Makefile b/devel/py-InlineEgg/Makefile
index 735fb74efc5..6d97336a389 100644
--- a/devel/py-InlineEgg/Makefile
+++ b/devel/py-InlineEgg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/12/28 23:04:15 adrianp Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= InlineEgg-1.08
@@ -16,7 +16,7 @@ USE_BUILDLINK3= YES
PY_PATCHPLIST= YES
PYDISTUTILSPKG= YES
-PYTHON_VERSIONS_ACCEPTED= 24 23 22 21 24pth 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PYTHON_PATCH_SCRIPTS= examples/example1.py examples/example2.py \
examples/example3.py examples/example4.py \
examples/example5.py examples/example6.py \
diff --git a/devel/py-TPG/Makefile b/devel/py-TPG/Makefile
index ec56ce6f8af..b992d4b98e2 100644
--- a/devel/py-TPG/Makefile
+++ b/devel/py-TPG/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:01 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:45 recht Exp $
#
DISTNAME= TPG-2.1.6
@@ -9,7 +9,7 @@ MAINTAINER= dotz@irc.pl
HOMEPAGE= http://christophe.delord.free.fr/soft/tpg/
COMMENT= ToyParserGenerator for Python
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
PYDISTUTILSPKG= yes
USE_BUILDLINK3= yes
diff --git a/devel/py-cursespanel/Makefile b/devel/py-cursespanel/Makefile
index 46b8cf14d23..75f22f6cb11 100644
--- a/devel/py-cursespanel/Makefile
+++ b/devel/py-cursespanel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2004/10/03 00:13:32 tv Exp $
+# $NetBSD: Makefile,v 1.10 2005/01/23 20:41:45 recht Exp $
#
PKGNAME= ${PYPKGPREFIX}-cursespanel-0
@@ -18,7 +18,7 @@ EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_curses_panel.c
PYDISTUTILSPKG= yes
PYBINMODULE= yes
PY_PATCHPLIST= yes
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PY_SETUP_SUBST= NCURSESPREFIX=${BUILDLINK_PREFIX.ncurses}
diff --git a/devel/py-idle/Makefile b/devel/py-idle/Makefile
index 4280c2a9081..0fb1cf9c543 100644
--- a/devel/py-idle/Makefile
+++ b/devel/py-idle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/01/13 21:51:42 darcy Exp $
+# $NetBSD: Makefile,v 1.18 2005/01/23 20:41:46 recht Exp $
#
PKGNAME= ${PYPKGPREFIX}-idle-0
@@ -28,9 +28,9 @@ do-patch:
# We just install a wrapper script. Also, threads are required now.
# NOTE: if you add a new version of Python here, add to the following test
#
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 22 21pth 21 20pth 20
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21 20
.include "../../lang/python/extension.mk"
-.if (${PYPKGPREFIX} != "py23pth") && (${PYPKGPREFIX} != "py24pth")
+.if (${PYPKGPREFIX} != "py23") && (${PYPKGPREFIX} != "py24")
EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/*
PYTHON_PATCH_SCRIPTS= Tools/idle/idle.py
@@ -49,7 +49,7 @@ do-install:
(cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/idle -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
-.else # py23pth and up
+.else # py23 and up
EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/idle
PYTHON_PATCH_SCRIPTS= Tools/scripts/idle
@@ -60,7 +60,7 @@ do-install:
${PREFIX}/bin/idle${PYVERSSUFFIX}
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
-.endif # py23pth and up
+.endif # py23 and up
.include "../../lang/python/srcdist.mk"
.include "../../lang/python/application.mk"
diff --git a/devel/roundup/Makefile b/devel/roundup/Makefile
index 56f0e1785f7..cd5a4dff923 100644
--- a/devel/roundup/Makefile
+++ b/devel/roundup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/11/28 16:26:50 recht Exp $
+# $NetBSD: Makefile,v 1.21 2005/01/23 20:41:46 recht Exp $
DISTNAME= roundup-0.7.9
CATEGORIES= devel
@@ -13,7 +13,7 @@ PY_PATCHPLIST= yes
USE_BUILDLINK3= yes
USE_LANGUAGES=
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PYTHON_PATCH_SCRIPTS= cgi-bin/roundup.cgi demo.py roundup/admin.py
PYTHON_PATCH_SCRIPTS+= roundup/backends/locking.py roundup/version_check.py
diff --git a/fonts/mftrace/Makefile b/fonts/mftrace/Makefile
index 8003ba85572..85ef8b2dc76 100644
--- a/fonts/mftrace/Makefile
+++ b/fonts/mftrace/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2005/01/05 12:49:19 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:46 recht Exp $
DISTNAME= mftrace-1.1.1
PKGREVISION= 1
@@ -21,7 +21,7 @@ CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
MAKEFILE= GNUmakefile
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
-PYTHON_VERSIONS_ACCEPTED= 20 21 21pth 22 22pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 20 21 22 23
post-build:
cd ${WRKSRC} && ${PYTHONBIN} ${PREFIX}/${PYLIB}/py_compile.py afm.py
diff --git a/graphics/mayavi/Makefile b/graphics/mayavi/Makefile
index 49ba7e9b99f..e5eab738e50 100644
--- a/graphics/mayavi/Makefile
+++ b/graphics/mayavi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/10/03 00:14:56 tv Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:46 recht Exp $
#
DISTNAME= MayaVi-1.3
@@ -16,8 +16,8 @@ USE_BUILDLINK3= yes
PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
-# vtk-python is for 23-pth only
-PYTHON_VERSIONS_ACCEPTED= 23pth
+# vtk-python is for 23 only
+PYTHON_VERSIONS_ACCEPTED= 23
.include "../../lang/python/extension.mk"
.include "../../x11/py-Tk/buildlink3.mk"
diff --git a/graphics/vtk-python/Makefile b/graphics/vtk-python/Makefile
index 5448ae8595a..6b1626bcaec 100644
--- a/graphics/vtk-python/Makefile
+++ b/graphics/vtk-python/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/12/03 15:14:59 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:46 recht Exp $
#
PKGNAME= vtk-python-${VTKDIST_VERSION}
@@ -11,7 +11,7 @@ VTK_CMAKE_OPT= -DPYTHON_INCLUDE_PATH:STRING=${PREFIX}/${PYINC} \
-DVTK_WRAP_PYTHON:BOOL=ON
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
PYSETUPSUBDIR= Wrapping/Python
VTK_PY_LIBS= bin/libvtkCommonPython.so \
diff --git a/lang/py-funge/Makefile b/lang/py-funge/Makefile
index b58b466d319..8b4a63e19b4 100644
--- a/lang/py-funge/Makefile
+++ b/lang/py-funge/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/08/16 17:11:00 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:46 recht Exp $
DISTNAME= pyfunge-0.2-beta1
PKGNAME= ${PYPKGPREFIX}-funge-0.2beta1
@@ -13,7 +13,7 @@ NO_BUILD= yes
NO_CONFIGURE= yes
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED?= 23 23pth
+PYTHON_VERSIONS_ACCEPTED?= 23
WRKSRC?= ${WRKDIR}/PyFunge
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
diff --git a/lang/py-psyco/Makefile b/lang/py-psyco/Makefile
index e9d00bcbb62..010a2593a60 100644
--- a/lang/py-psyco/Makefile
+++ b/lang/py-psyco/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:02 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:46 recht Exp $
DISTNAME= psyco-1.2-src
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/-src//}
@@ -16,7 +16,7 @@ PYBINMODULE= YES
PY_PATCHPLIST= YES
ONLY_FOR_PLATFORM= *-*-i386
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/py-pyrex/Makefile b/lang/py-pyrex/Makefile
index 11763baacee..4e234eed39e 100644
--- a/lang/py-pyrex/Makefile
+++ b/lang/py-pyrex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/08/19 20:44:31 recht Exp $
+# $NetBSD: Makefile,v 1.9 2005/01/23 20:41:46 recht Exp $
DISTNAME= Pyrex-0.9.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/P/p/}
@@ -9,7 +9,7 @@ MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
COMMENT= A Language for Writing Python Extension Modules
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
PYDISTUTILSPKG= yes
USE_BUILDLINK3= yes
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index c0b50eb9cbd..d24736f9642 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.30 2004/12/05 23:39:03 recht Exp $
+# $NetBSD: pyversion.mk,v 1.31 2005/01/23 20:41:46 recht Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -7,23 +7,17 @@ PYTHON_PYVERSION_MK= defined
PYTHON_VERSION_DEFAULT?= 23
.if ${OPSYS} == "Darwin"
-PYTHON_VERSIONS_INCOMPATIBLE+= 23 22 21 21pth 20 15
-BUILDLINK_DEPENDS.python22-pth?= python22-pth>=2.2.3nb2
-BUILDLINK_DEPENDS.python23-pth?= python23-pth>=2.3.3nb3
+PYTHON_VERSIONS_INCOMPATIBLE+= 23 22 21 20 15
.endif
-PYTHON_VERSIONS_ACCEPTED?= 24 24pth 23 23pth 22 22pth 21 21pth 20
+PYTHON_VERSIONS_ACCEPTED?= 24 23 22 21 20
PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default
BUILDLINK_DEPENDS.python15?= python15>=1.5
BUILDLINK_DEPENDS.python20?= python20>=2.0
BUILDLINK_DEPENDS.python21?= python21>=2.1
-BUILDLINK_DEPENDS.python21-pth?= python21-pth>=2.1
BUILDLINK_DEPENDS.python22?= python22>=2.2
-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}
@@ -36,27 +30,15 @@ _PYTHON_VERSION_${pv}_OK= yes
.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
-.if exists(${LOCALBASE}/bin/python2p3)
-_PYTHON_VERSION_23pth_INSTALLED=yes
-.endif
.if exists(${LOCALBASE}/bin/python2.2)
_PYTHON_VERSION_22_INSTALLED= yes
.endif
-.if exists(${LOCALBASE}/bin/python2p2)
-_PYTHON_VERSION_22pth_INSTALLED=yes
-.endif
.if exists(${LOCALBASE}/bin/python2.1)
_PYTHON_VERSION_21_INSTALLED= yes
.endif
-.if exists(${LOCALBASE}/bin/python2p1)
-_PYTHON_VERSION_21pth_INSTALLED=yes
-.endif
.if exists(${LOCALBASE}/bin/python2.0)
_PYTHON_VERSION_20_INSTALLED= yes
.endif
@@ -117,76 +99,24 @@ 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
PYVERSSUFFIX= 2.3
PYPKGPREFIX= py23
-.elif ${_PYTHON_VERSION} == "23pth"
-PYPKGSRCDIR= ../../lang/python23-pth
-PYDEPENDENCY= ${BUILDLINK_DEPENDS.python23-pth}:${PYPKGSRCDIR}
-PYPACKAGE= python23-pth
-PYVERSSUFFIX= 2p3
-PYPKGPREFIX= py23pth
-. 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} == "22"
PYPKGSRCDIR= ../../lang/python22
PYDEPENDENCY= ${BUILDLINK_DEPENDS.python22}:${PYPKGSRCDIR}
PYPACKAGE= python22
PYVERSSUFFIX= 2.2
PYPKGPREFIX= py22
-.elif ${_PYTHON_VERSION} == "22pth"
-PYPKGSRCDIR= ../../lang/python22-pth
-PYDEPENDENCY= ${BUILDLINK_DEPENDS.python22-pth}:${PYPKGSRCDIR}
-PYPACKAGE= python22-pth
-PYVERSSUFFIX= 2p2
-PYPKGPREFIX= py22pth
-. 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} == "21"
PYPKGSRCDIR= ../../lang/python21
PYPACKAGE= python21
PYDEPENDENCY= ${BUILDLINK_DEPENDS.python21}:${PYPKGSRCDIR}
PYVERSSUFFIX= 2.1
PYPKGPREFIX= py21
-.elif ${_PYTHON_VERSION} == "21pth"
-PYPKGSRCDIR= ../../lang/python21-pth
-PYPACKAGE= python21-pth
-PYDEPENDENCY= ${BUILDLINK_DEPENDS.python21-pth}:${PYPKGSRCDIR}
-PYVERSSUFFIX= 2p1
-PYPKGPREFIX= py21pth
-. 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} == "20"
PYPKGSRCDIR= ../../lang/python20
PYPACKAGE= python20
@@ -208,6 +138,11 @@ BUILD_DEPENDS+= py15-distutils-*:../../devel/py-distutils
.endif
.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
. if defined(PYTHON_FOR_BUILD_ONLY)
BUILD_DEPMETHOD.python?= build
. endif
diff --git a/lang/python/srcdist.mk b/lang/python/srcdist.mk
index 2947ea3272a..1b611230e50 100644
--- a/lang/python/srcdist.mk
+++ b/lang/python/srcdist.mk
@@ -1,8 +1,8 @@
-# $NetBSD: srcdist.mk,v 1.12 2004/12/05 23:39:03 recht Exp $
+# $NetBSD: srcdist.mk,v 1.13 2005/01/23 20:41:46 recht Exp $
.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == "24" || ${_PYTHON_VERSION} == "24pth"
+.if ${_PYTHON_VERSION} == "24"
DISTNAME= Python-2.4
EXTRACT_SUFX= .tar.bz2
@@ -12,7 +12,7 @@ PYSUBDIR= Python-2.4
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/
-.elif ${_PYTHON_VERSION} == "23" || ${_PYTHON_VERSION} == "23pth"
+.elif ${_PYTHON_VERSION} == "23"
DISTNAME= Python-2.3.4
EXTRACT_SUFX= .tgz
@@ -22,7 +22,7 @@ PYSUBDIR= Python-2.3.4
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.3.4/
-.elif ${_PYTHON_VERSION} == "22" || ${_PYTHON_VERSION} == "22pth"
+.elif ${_PYTHON_VERSION} == "22"
DISTNAME= Python-2.2.3
EXTRACT_SUFX= .tgz
@@ -32,7 +32,7 @@ PYSUBDIR= Python-2.2.3
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.3/
-.elif ${_PYTHON_VERSION} == "21" || ${_PYTHON_VERSION} == "21pth"
+.elif ${_PYTHON_VERSION} == "21"
DISTNAME= Python-2.1.3
EXTRACT_SUFX= .tgz
diff --git a/lang/python21-pth/Makefile b/lang/python21-pth/Makefile
index 70ec9dcfb51..27531a5cb4f 100644
--- a/lang/python21-pth/Makefile
+++ b/lang/python21-pth/Makefile
@@ -1,15 +1,26 @@
-# $NetBSD: Makefile,v 1.14 2004/08/29 10:44:19 recht Exp $
+# $NetBSD: Makefile,v 1.15 2005/01/23 20:41:46 recht Exp $
#
+DISTNAME= Python-2.1.3
PKGNAME= python21-pth-2.1.3
PKGREVISION= 6
+CATEGORIES= lang python
+MASTER_SITES= # empty
+DISTFILES= # empty
-PTHREAD_OPTS= require
-.include "../../mk/pthread.buildlink3.mk"
-.if ${PTHREAD_TYPE} == "pth"
-CONFIGURE_ARGS+= --with-pth
-.endif
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
-PY_VER_SUFFIX= 2p1
+DEPENDS+= python21>=2.1.3:../../lang/python21
-.include "../../lang/python21/Makefile.common"
+EXTRACT_ONLY= # empty
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+NO_BUILDLINK= yes
+NO_MTREE= yes
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python21-pth/PLIST b/lang/python21-pth/PLIST
new file mode 100644
index 00000000000..db0b189f5e1
--- /dev/null
+++ b/lang/python21-pth/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.4 2005/01/23 20:41:46 recht Exp $
+@comment this plist intentionally left empty
diff --git a/lang/python21-pth/buildlink3.mk b/lang/python21-pth/buildlink3.mk
deleted file mode 100644
index 0daeadc96e9..00000000000
--- a/lang/python21-pth/buildlink3.mk
+++ /dev/null
@@ -1,27 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.4 2004/03/05 19:25:36 jlam Exp $
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-PYTHON21_PTH_BUILDLINK3_MK:= ${PYTHON21_PTH_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= python21-pth
-.endif
-
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython21-pth}
-BUILDLINK_PACKAGES+= python21-pth
-
-.if !empty(PYTHON21_PTH_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.python21-pth+= python21-pth>=2.1.3nb2
-BUILDLINK_PKGSRCDIR.python21-pth?= ../../lang/python21-pth
-
-.if defined(BUILDLINK_DEPMETHOD.python)
-BUILDLINK_DEPMETHOD.python21pth?= ${BUILDLINK_DEPMETHOD.python}
-.endif
-
-BUILDLINK_INCDIRS.python21-pth+= include/python2p1
-BUILDLINK_LIBDIRS.python21-pth+= lib/python2p1/config
-BUILDLINK_TRANSFORM+= l:python:python2p1
-
-.endif # PYTHON21_PTH_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/lang/python21-pth/distinfo b/lang/python21-pth/distinfo
deleted file mode 100644
index f2e810aaa11..00000000000
--- a/lang/python21-pth/distinfo
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: distinfo,v 1.9 2004/08/29 10:44:19 recht Exp $
-
-SHA1 (Python-2.1.3.tgz) = 7042a5c5fd60d334c0ac227885d68a4c305713b4
-Size (Python-2.1.3.tgz) = 6194432 bytes
-SHA1 (patch-aa) = d87aebf7b89a559e83c13a039fbdb98b39835211
-SHA1 (patch-ab) = e39bbe1e46bfc535dc887eeb9059e0c500c393db
-SHA1 (patch-ac) = 4da78f997fb45365eee6d266c73bc129fe865d12
-SHA1 (patch-ad) = 769bcd7803723c8d538a74173792ffcc491fa414
-SHA1 (patch-ae) = 079cd208ba57755a7e0f3ac03b6ba59d622be5db
-SHA1 (patch-af) = 4e446bd88334dbee441f6a8dc41e7eaeb771e773
-SHA1 (patch-ag) = fa9a5f13072d9137182675394f04cd9b163d3a5c
-SHA1 (patch-ah) = 637dfe0cb4d031760f1085fb7921c0ae77158221
-SHA1 (patch-ai) = 6420f2994109b8cce55674ea14d7a974f9e039c6
-SHA1 (patch-aj) = ca232f769b57f617496f5c8701a0a32fe55f1fd9
-SHA1 (patch-ba) = 5e47b2e75ea40682216e42fbf8b971432836afdc
-SHA1 (patch-bb) = dea4f69c7b5152c02b903b08e1cf505e5f0fdc6b
-SHA1 (patch-bc) = d1a9b636c736a625c920fb013b07a1a41e824720
diff --git a/lang/python21-pth/patches/patch-aa b/lang/python21-pth/patches/patch-aa
deleted file mode 100644
index eb3c0208577..00000000000
--- a/lang/python21-pth/patches/patch-aa
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2002/09/04 14:25:18 drochner Exp $
-
---- Misc/Makefile.pre.in.orig Thu Aug 22 15:36:50 2002
-+++ Misc/Makefile.pre.in Thu Aug 22 15:36:55 2002
-@@ -92,10 +92,10 @@
- TARGET= python
-
- # Installed python binary (used only by boot target)
--PYTHON= python
-+PYTHON= python2p1
-
- # Add more -I and -D options here
--CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
-+CFLAGS+= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
-
- # These two variables can be set in Setup to merge extensions.
- # See example[23].
diff --git a/lang/python21-pth/patches/patch-ab b/lang/python21-pth/patches/patch-ab
deleted file mode 100644
index f9d81388f5b..00000000000
--- a/lang/python21-pth/patches/patch-ab
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/08/20 19:58:58 drochner Exp $
-
---- Tools/scripts/pydoc2p1.orig Tue Aug 20 20:49:53 2002
-+++ Tools/scripts/pydoc2p1 Tue Aug 20 20:50:25 2002
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/env python2p1
-
- import pydoc
- pydoc.cli()
diff --git a/lang/python21-pth/patches/patch-ac b/lang/python21-pth/patches/patch-ac
deleted file mode 100644
index 6f252fb856e..00000000000
--- a/lang/python21-pth/patches/patch-ac
+++ /dev/null
@@ -1,108 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2004/05/16 20:01:59 minskim Exp $
-
---- setup.py.orig 2001-12-27 15:51:02.000000000 -0600
-+++ setup.py
-@@ -145,12 +145,6 @@ class PyBuildExt(build_ext):
- return platform
-
- def detect_modules(self):
-- # Ensure that /usr/local is always used
-- if '/usr/local/lib' not in self.compiler.library_dirs:
-- self.compiler.library_dirs.insert(0, '/usr/local/lib')
-- if '/usr/local/include' not in self.compiler.include_dirs:
-- self.compiler.include_dirs.insert(0, '/usr/local/include' )
--
- # lib_dirs and inc_dirs are used to search for files;
- # if a file is found in one of those directories, it can
- # be assumed that no additional -I,-L directives are needed.
-@@ -265,13 +259,13 @@ class PyBuildExt(build_ext):
- # These represent audio samples or images as strings:
-
- # Disabled on 64-bit platforms
-- if sys.maxint != 9223372036854775807L:
-+# if sys.maxint != 9223372036854775807L:
- # Operations on audio samples
-- exts.append( Extension('audioop', ['audioop.c']) )
-+# exts.append( Extension('audioop', ['audioop.c']) )
- # Operations on images
-- exts.append( Extension('imageop', ['imageop.c']) )
-+# exts.append( Extension('imageop', ['imageop.c']) )
- # Read SGI RGB image files (but coded portably)
-- exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
-+# exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
-
- # readline
- if self.compiler.find_library_file(lib_dirs, 'readline'):
-@@ -296,14 +290,10 @@ class PyBuildExt(build_ext):
- # socket(2)
- # Detect SSL support for the socket module
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
-- ['/usr/local/ssl/include',
-- '/usr/contrib/ssl/include/'
-- ]
-+ []
- )
- ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-- ['/usr/local/ssl/lib',
-- '/usr/contrib/ssl/lib/'
-- ] )
-+ [] )
-
- if (ssl_incs is not None and
- ssl_libs is not None):
-@@ -408,8 +398,8 @@ class PyBuildExt(build_ext):
-
- if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
- curses_libs = ['ncurses']
-- exts.append( Extension('_curses', ['_cursesmodule.c'],
-- libraries = curses_libs) )
-+# exts.append( Extension('_curses', ['_cursesmodule.c'],
-+# libraries = curses_libs) )
- elif (self.compiler.find_library_file(lib_dirs, 'curses')) and platform[:6] != 'darwin':
- # OSX has an old Berkeley curses, not good enough for the _curses module.
- if (self.compiler.find_library_file(lib_dirs, 'terminfo')):
-@@ -417,8 +407,8 @@ class PyBuildExt(build_ext):
- else:
- curses_libs = ['curses', 'termcap']
-
-- exts.append( Extension('_curses', ['_cursesmodule.c'],
-- libraries = curses_libs) )
-+# exts.append( Extension('_curses', ['_cursesmodule.c'],
-+# libraries = curses_libs) )
-
- # If the curses module is enabled, check for the panel module
- if (os.path.exists('Modules/_curses_panel.c') and
-@@ -451,23 +441,7 @@ class PyBuildExt(build_ext):
- # Andrew Kuchling's zlib module.
- # This require zlib 1.1.3 (or later).
- # See http://www.cdrom.com/pub/infozip/zlib/
-- zlib_inc = find_file('zlib.h', [], inc_dirs)
-- if zlib_inc is not None:
-- zlib_h = zlib_inc[0] + '/zlib.h'
-- version = '"0.0.0"'
-- version_req = '"1.1.3"'
-- fp = open(zlib_h)
-- while 1:
-- line = fp.readline()
-- if not line:
-- break
-- if line.find('#define ZLIB_VERSION', 0) == 0:
-- version = line.split()[2]
-- break
-- if version >= version_req:
-- if (self.compiler.find_library_file(lib_dirs, 'z')):
-- exts.append( Extension('zlib', ['zlibmodule.c'],
-- libraries = ['z']) )
-+ exts.append(Extension('zlib', ['zlibmodule.c'], libraries = ['z']))
-
- # Interface to the Expat XML parser
- #
-@@ -609,7 +583,7 @@ def main():
- ext_modules=[Extension('struct', ['structmodule.c'])],
-
- # Scripts to install
-- scripts = ['Tools/scripts/pydoc']
-+ scripts = ['Tools/scripts/pydoc2p1']
- )
-
- # --install-platlib
diff --git a/lang/python21-pth/patches/patch-ad b/lang/python21-pth/patches/patch-ad
deleted file mode 100644
index 1cb554c8981..00000000000
--- a/lang/python21-pth/patches/patch-ad
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2002/08/20 19:58:58 drochner Exp $
-
---- Lib/distutils/command/build_ext.py.orig Sat Mar 17 15:15:41 2001
-+++ Lib/distutils/command/build_ext.py
-@@ -461,8 +461,18 @@
- # that go into the mix.
- if ext.extra_objects:
- objects.extend(ext.extra_objects)
-+
-+ # Two possible sources for extra linker arguments:
-+ # - 'extra_link_args' in Extension object
-+ # - LDFLAGS environment variable
-+ # The environment variable should take precedence, and
-+ # any sensible compiler will give precedence to later
-+ # command line args. Hence we combine them in order:
- extra_args = ext.extra_link_args or []
-
-+
-+ if os.environ.has_key('LDFLAGS'):
-+ extra_args.extend(string.split(os.environ['LDFLAGS']))
-
- self.compiler.link_shared_object(
- objects, ext_filename,
diff --git a/lang/python21-pth/patches/patch-ae b/lang/python21-pth/patches/patch-ae
deleted file mode 100644
index d1826b0d782..00000000000
--- a/lang/python21-pth/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2002/09/04 14:25:18 drochner Exp $
-
---- configure.orig Thu Dec 27 22:55:46 2001
-+++ configure Tue Aug 20 20:12:59 2002
-@@ -569,7 +569,7 @@
-
- # Set VERSION so we only need to edit in one place (i.e., here)
-
--VERSION=2.1
-+VERSION=2p1
-
- # Arguments passed to configure.
-
diff --git a/lang/python21-pth/patches/patch-af b/lang/python21-pth/patches/patch-af
deleted file mode 100644
index bbfb868e892..00000000000
--- a/lang/python21-pth/patches/patch-af
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-af,v 1.2 2003/06/06 18:14:12 drochner Exp $
-
---- Makefile.pre.in.orig 2001-07-19 15:21:05.000000000 +0200
-+++ Makefile.pre.in 2003-06-06 19:35:30.000000000 +0200
-@@ -55,7 +55,7 @@
- # Compiler options
- OPT= @OPT@
- DEFS= @DEFS@
--CFLAGS= $(OPT) -I. -I$(srcdir)/Include $(DEFS)
-+CFLAGS= @CFLAGS@ $(OPT) -I. -I$(srcdir)/Include $(DEFS)
- LDFLAGS= @LDFLAGS@
- LDLAST= @LDLAST@
- SGI_ABI= @SGI_ABI@
-@@ -274,7 +274,7 @@
- $(PYTHON): Modules/$(MAINOBJ) $(LDLIBRARY)
- $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
- Modules/$(MAINOBJ) \
-- $(LDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
-+ $(LDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) ${LINK_ALL_LIBGCC_HACK}
-
- platform: $(PYTHON)
- ./$(PYTHON) -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-@@ -386,7 +386,7 @@
- -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-
- $(PGEN): $(PGENOBJS)
-- $(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
-+ $(CC) $(LDFLAGS) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
-
- Parser/grammar.o: $(srcdir)/Parser/grammar.c \
- $(srcdir)/Parser/assert.h \
diff --git a/lang/python21-pth/patches/patch-ag b/lang/python21-pth/patches/patch-ag
deleted file mode 100644
index 87feda9e327..00000000000
--- a/lang/python21-pth/patches/patch-ag
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ag,v 1.1.1.1 2002/08/20 19:58:58 drochner Exp $
-
---- Include/patchlevel.h.orig Tue Aug 20 19:53:31 2002
-+++ Include/patchlevel.h Tue Aug 20 19:54:05 2002
-@@ -26,7 +26,7 @@
- #define PY_RELEASE_SERIAL 0
-
- /* Version as a string */
--#define PY_VERSION "2.1.3"
-+#define PY_VERSION "2p1.3"
-
- /* Historic */
- #define PATCHLEVEL "2.1.3"
diff --git a/lang/python21-pth/patches/patch-ah b/lang/python21-pth/patches/patch-ah
deleted file mode 100644
index 8b34ad969e4..00000000000
--- a/lang/python21-pth/patches/patch-ah
+++ /dev/null
@@ -1,75 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2003/01/22 17:05:34 drochner Exp $
-
---- Lib/os.py.orig Wed Jan 22 17:27:56 2003
-+++ Lib/os.py Wed Jan 22 17:30:02 2003
-@@ -291,7 +291,7 @@
- _execvpe(file, args)
-
- def execvpe(file, args, env):
-- """execv(file, args, env)
-+ """execvpe(file, args, env)
-
- Execute the executable file (which is searched for along $PATH)
- with argument list args and environment env , replacing the
-@@ -301,8 +301,9 @@
-
- __all__.extend(["execl","execle","execlp","execlpe","execvp","execvpe"])
-
--_notfound = None
- def _execvpe(file, args, env=None):
-+ from errno import ENOENT, ENOTDIR
-+
- if env is not None:
- func = execve
- argrest = (args, env)
-@@ -310,7 +311,7 @@
- func = execv
- argrest = (args,)
- env = environ
-- global _notfound
-+
- head, tail = path.split(file)
- if head:
- apply(func, (file,) + argrest)
-@@ -320,30 +321,21 @@
- else:
- envpath = defpath
- PATH = envpath.split(pathsep)
-- if not _notfound:
-- if sys.platform[:4] == 'beos':
-- # Process handling (fork, wait) under BeOS (up to 5.0)
-- # doesn't interoperate reliably with the thread interlocking
-- # that happens during an import. The actual error we need
-- # is the same on BeOS for posix.open() et al., ENOENT.
-- try: unlink('/_#.# ## #.#')
-- except error, _notfound: pass
-- else:
-- import tempfile
-- t = tempfile.mktemp()
-- # Exec a file that is guaranteed not to exist
-- try: execv(t, ('blah',))
-- except error, _notfound: pass
-- exc, arg = error, _notfound
-+ saved_exc = None
-+ saved_tb = None
- for dir in PATH:
- fullname = path.join(dir, file)
- try:
- apply(func, (fullname,) + argrest)
-- except error, (errno, msg):
-- if errno != arg[0]:
-- exc, arg = error, (errno, msg)
-- raise exc, arg
--
-+ except error, e:
-+ tb = sys.exc_info()[2]
-+ if (e.errno != ENOENT and e.errno != ENOTDIR
-+ and saved_exc is None):
-+ saved_exc = e
-+ saved_tb = tb
-+ if saved_exc:
-+ raise error, saved_exc, saved_tb
-+ raise error, e, tb
-
- # Change environ to automatically call putenv() if it exists
- try:
diff --git a/lang/python21-pth/patches/patch-ai b/lang/python21-pth/patches/patch-ai
deleted file mode 100644
index 1cd11d1786c..00000000000
--- a/lang/python21-pth/patches/patch-ai
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2003/01/22 17:05:34 drochner Exp $
-
---- Modules/Setup.dist.orig Wed Jan 22 17:37:38 2003
-+++ Modules/Setup.dist Wed Jan 22 17:39:03 2003
-@@ -97,6 +97,7 @@
- # setup.py script in the root of the Python source tree.
-
- posix posixmodule.c # posix (UNIX) system calls
-+errno errnomodule.c # posix (UNIX) errno values
- _sre _sre.c # Fredrik Lundh's new regular expressions
-
- # The rest of the modules listed in this file are all commented out by
-@@ -162,7 +163,6 @@
- #fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
- #pwd pwdmodule.c # pwd(3)
- #grp grpmodule.c # grp(3)
--#errno errnomodule.c # posix (UNIX) errno values
- #select selectmodule.c # select(2); not on ancient System V
-
- # Memory-mapped files (also works on Win32).
diff --git a/lang/python21-pth/patches/patch-aj b/lang/python21-pth/patches/patch-aj
deleted file mode 100644
index 05c6b6fbb72..00000000000
--- a/lang/python21-pth/patches/patch-aj
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2003/02/11 17:52:51 drochner Exp $
-
---- Lib/test/test_popen.py.orig Tue Feb 11 17:23:42 2003
-+++ Lib/test/test_popen.py Tue Feb 11 17:26:22 2003
-@@ -15,7 +15,7 @@
- # This results in Python being spawned and printing the sys.argv list.
- # We can then eval() the result of this, and see what each argv was.
- def _do_test_commandline(cmdline, expected):
-- cmd = 'python -c "import sys;print sys.argv" %s' % (cmdline,)
-+ cmd = '%s -c "import sys;print sys.argv" %s' % (sys.executable,cmdline)
- data = popen(cmd).read()
- got = eval(data)[1:] # strip off argv[0]
- if got != expected:
diff --git a/lang/python21-pth/patches/patch-ba b/lang/python21-pth/patches/patch-ba
deleted file mode 100644
index a5e7941b3a5..00000000000
--- a/lang/python21-pth/patches/patch-ba
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-ba,v 1.1 2002/09/06 17:01:08 drochner Exp $
-
---- Python/thread_pth.h.orig Thu Oct 12 22:58:32 2000
-+++ Python/thread_pth.h Fri Sep 6 18:34:12 2002
-@@ -30,6 +30,8 @@
-
- #define CHECK_STATUS(name) if (status == -1) { printf("%d ", status); perror(name); error = 1; }
-
-+pth_attr_t PyThread_attr;
-+
- /*
- * Initialization.
- */
-@@ -37,6 +39,9 @@
- static void PyThread__init_thread(void)
- {
- pth_init();
-+ PyThread_attr = pth_attr_new();
-+ pth_attr_set(PyThread_attr, PTH_ATTR_STACK_SIZE, 1<<18);
-+ pth_attr_set(PyThread_attr, PTH_ATTR_JOINABLE, FALSE);
- }
-
- /*
-@@ -51,7 +56,7 @@
- if (!initialized)
- PyThread_init_thread();
-
-- th = pth_spawn(PTH_ATTR_DEFAULT,
-+ th = pth_spawn(PyThread_attr,
- (void* (*)(void *))func,
- (void *)arg
- );
diff --git a/lang/python21-pth/patches/patch-bb b/lang/python21-pth/patches/patch-bb
deleted file mode 100644
index 7d973f185bd..00000000000
--- a/lang/python21-pth/patches/patch-bb
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-bb,v 1.2 2004/08/29 10:44:19 recht Exp $
-
---- Lib/test/test_fcntl.py.orig 2001-04-11 22:58:20.000000000 +0200
-+++ Lib/test/test_fcntl.py 2004-08-28 12:12:17.000000000 +0200
-@@ -16,11 +16,11 @@
- if verbose:
- print 'Status from fnctl with O_NONBLOCK: ', rv
-
--if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin1',
-+if sys.platform in ('netbsd1', 'netbsd2', 'Darwin1.2', 'darwin1',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4',
- 'openbsd', 'openbsd2'):
-- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
-+ lockdata = struct.pack('ixxxxixxxxihh', 0, 0, 0, FCNTL.F_WRLCK, 0)
- elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
- lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
- else:
diff --git a/lang/python21-pth/patches/patch-bc b/lang/python21-pth/patches/patch-bc
deleted file mode 100644
index 502596ebdd9..00000000000
--- a/lang/python21-pth/patches/patch-bc
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2004/08/29 10:44:19 recht Exp $
-
---- Lib/posixfile.py.orig 2001-04-10 17:44:33.000000000 +0200
-+++ Lib/posixfile.py 2004-08-28 12:10:29.000000000 +0200
-@@ -171,11 +171,11 @@
- # Hack by davem@magnet.com to get locking to go on freebsd;
- # additions for AIX by Vladimir.Marangozov@imag.fr
- import sys, os
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2',
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
-- flock = struct.pack('lxxxxlxxxxlhh', \
-+ flock = struct.pack('qqihh', \
- l_start, l_len, os.getpid(), l_type, l_whence)
- elif sys.platform in ['aix3', 'aix4']:
- flock = struct.pack('hhlllii', \
-@@ -187,12 +187,12 @@
- flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
-
- if '?' in how:
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2'
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
- l_start, l_len, l_pid, l_type, l_whence = \
-- struct.unpack('lxxxxlxxxxlhh', flock)
-+ struct.unpack('qqihh', flock)
- elif sys.platform in ['aix3', 'aix4']:
- l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
- struct.unpack('hhlllii', flock)
diff --git a/lang/python21/Makefile b/lang/python21/Makefile
index ba5f95871c2..d41d3a925f2 100644
--- a/lang/python21/Makefile
+++ b/lang/python21/Makefile
@@ -1,11 +1,69 @@
-# $NetBSD: Makefile,v 1.16 2004/08/29 10:44:19 recht Exp $
+# $NetBSD: Makefile,v 1.17 2005/01/23 20:41:46 recht Exp $
#
+DISTNAME= Python-2.1.3
PKGNAME= python21-2.1.3
-PKGREVISION= 4
+PKGREVISION= 5
+CATEGORIES= lang python
+MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/
+EXTRACT_SUFX= .tgz
-CONFIGURE_ARGS+= --without-threads
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
+
+USE_LANGUAGES= c c++
+USE_BUILDLINK3= YES
+GNU_CONFIGURE= YES
+
+PTHREAD_OPTS= require
+.include "../../mk/pthread.buildlink3.mk"
+.if ${PTHREAD_TYPE} == "pth"
+CONFIGURE_ARGS+= --with-pth
+.endif
PY_VER_SUFFIX= 2.1
-.include "../../lang/python21/Makefile.common"
+INSTALL_TARGET= altinstall
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
+.if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
+PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
+.endif
+PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
+
+.if ${OPSYS} == "Darwin"
+PY_PLATNAME= ${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
+.elif ${OPSYS} == "SunOS"
+PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
+.else
+PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
+.endif
+PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
+
+# bsddb.so is not built on Solaris (or IRIX?)
+BSDDB=
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
+BSDDB= "@comment "
+.endif
+PLIST_SUBST+= BSDDB=${BSDDB}
+
+PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
+
+post-extract:
+ ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+
+# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
+# set earlier in the environment (last definition wins).
+#
+.if ${OBJECT_FMT} == "a.out"
+MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
+.endif
diff --git a/lang/python21/Makefile.common b/lang/python21/Makefile.common
deleted file mode 100644
index 7f09c1146f2..00000000000
--- a/lang/python21/Makefile.common
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: Makefile.common,v 1.8 2004/12/19 05:34:07 grant Exp $
-#
-
-DISTNAME= Python-2.1.3
-CATEGORIES= lang python
-MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/
-EXTRACT_SUFX= .tgz
-
-MAINTAINER= tech-pkg@NetBSD.org
-HOMEPAGE= http://www.python.org/
-COMMENT= Interpreted, interactive, object-oriented programming language
-
-USE_LANGUAGES= c c++
-USE_BUILDLINK3= YES
-GNU_CONFIGURE= YES
-
-INSTALL_TARGET= altinstall
-
-.include "../../mk/bsd.prefs.mk"
-
-PLIST_SRC= ${.CURDIR}/../../lang/python21/PLIST.common
-.if exists(${.CURDIR}/../../lang/python21/PLIST.${OPSYS})
-PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.${OPSYS}
-.endif
-PLIST_SRC+= ${.CURDIR}/../../lang/python21/PLIST.common_end
-
-.if ${OPSYS} == "Darwin"
-PY_PLATNAME= ${LOWER_OPSYS}
-.elif ${OPSYS} == "IRIX"
-PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
-.elif ${OPSYS} == "SunOS"
-PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
-.else
-PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
-.endif
-PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
-
-# bsddb.so is not built on Solaris (or IRIX?)
-BSDDB=
-.if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
-BSDDB= "@comment "
-.endif
-PLIST_SUBST+= BSDDB=${BSDDB}
-
-PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
-
-post-extract:
- ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
-
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
-
-# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
-# set earlier in the environment (last definition wins).
-#
-.if ${OBJECT_FMT} == "a.out"
-MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
-.endif
diff --git a/lang/python22-pth/Makefile b/lang/python22-pth/Makefile
index 009527bcdd7..5612fbdabf2 100644
--- a/lang/python22-pth/Makefile
+++ b/lang/python22-pth/Makefile
@@ -1,15 +1,26 @@
-# $NetBSD: Makefile,v 1.14 2004/08/29 10:44:19 recht Exp $
+# $NetBSD: Makefile,v 1.15 2005/01/23 20:41:47 recht Exp $
#
+DISTNAME= Python-2.2.3
PKGNAME= python22-pth-2.2.3
PKGREVISION= 3
+CATEGORIES= lang python
+MASTER_SITES= # empty
+DISTFILES= # empty
-PTHREAD_OPTS= require
-.include "../../mk/pthread.buildlink3.mk"
-.if ${PTHREAD_TYPE} == "pth"
-CONFIGURE_ARGS+= --with-pth
-.endif
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
-PY_VER_SUFFIX= 2p2
+DEPENDS+= python22>=2.2.3:../../lang/python22
-.include "../../lang/python22/Makefile.common"
+EXTRACT_ONLY= # empty
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+NO_BUILDLINK= yes
+NO_MTREE= yes
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python22-pth/PLIST b/lang/python22-pth/PLIST
new file mode 100644
index 00000000000..1fca9173c92
--- /dev/null
+++ b/lang/python22-pth/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2005/01/23 20:41:47 recht Exp $
+@comment this plist intentionally left empty
diff --git a/lang/python22-pth/buildlink3.mk b/lang/python22-pth/buildlink3.mk
deleted file mode 100644
index 26fa57ccba5..00000000000
--- a/lang/python22-pth/buildlink3.mk
+++ /dev/null
@@ -1,27 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.4 2004/03/05 19:25:37 jlam Exp $
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-PYTHON22_PTH_BUILDLINK3_MK:= ${PYTHON22_PTH_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= python22-pth
-.endif
-
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython22-pth}
-BUILDLINK_PACKAGES+= python22-pth
-
-.if !empty(PYTHON22_PTH_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.python22-pth+= python22-pth>=2.2.2nb1
-BUILDLINK_PKGSRCDIR.python22-pth?= ../../lang/python22-pth
-
-.if defined(BUILDLINK_DEPMETHOD.python)
-BUILDLINK_DEPMETHOD.python22-pth?= ${BUILDLINK_DEPMETHOD.python}
-.endif
-
-BUILDLINK_INCDIRS.python22-pth+= include/python2p2
-BUILDLINK_LIBDIRS.python22-pth+= lib/python2p2/config
-BUILDLINK_TRANSFORM+= l:python:python2p2
-
-.endif # PYTHON22_PTH_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/lang/python22-pth/distinfo b/lang/python22-pth/distinfo
deleted file mode 100644
index 58d7cb6588d..00000000000
--- a/lang/python22-pth/distinfo
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: distinfo,v 1.6 2004/08/29 10:44:19 recht Exp $
-
-SHA1 (Python-2.2.3.tgz) = 177d587e77e0eaa14131ab0d0d0b470777de4400
-Size (Python-2.2.3.tgz) = 6709556 bytes
-SHA1 (patch-aa) = d88a764938bba189e8ac509f370cc2c8525047a4
-SHA1 (patch-ab) = e5f86717b067a80dd76f14b8d7df4a943eb533e3
-SHA1 (patch-ae) = aefeec78e25631a6e9e2aa047dce12c9c522715e
-SHA1 (patch-af) = a2b23859941766319f638e40c49b5af3f504ef52
-SHA1 (patch-ag) = 46ce7c0e3dfdeb971a253bdcbbdd19b10a78c6c2
-SHA1 (patch-ah) = b1ef2e68cc8037f38e46007c6c65389e91a429fd
-SHA1 (patch-ai) = ae1d8a7886604f9e973f4430f9c673a575452170
-SHA1 (patch-aj) = ccf82a79c38f848d31f5193b561be5a44481fedc
-SHA1 (patch-ba) = 5e47b2e75ea40682216e42fbf8b971432836afdc
-SHA1 (patch-bb) = 389c439e8031257ca997455e10c8bd327b14638a
-SHA1 (patch-bc) = 9fbe77ff35519a290ef1f70fcaa72a60009a36a1
diff --git a/lang/python22-pth/patches/patch-aa b/lang/python22-pth/patches/patch-aa
deleted file mode 100644
index 639176ea37f..00000000000
--- a/lang/python22-pth/patches/patch-aa
+++ /dev/null
@@ -1,172 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2004/05/16 20:01:59 minskim Exp $
-
---- setup.py.orig 2003-05-22 12:36:54.000000000 -0500
-+++ setup.py
-@@ -210,11 +210,15 @@ class PyBuildExt(build_ext):
- return platform
-
- def detect_modules(self):
-- # Ensure that /usr/local is always used
-- if '/usr/local/lib' not in self.compiler.library_dirs:
-- self.compiler.library_dirs.insert(0, '/usr/local/lib')
-- if '/usr/local/include' not in self.compiler.include_dirs:
-- self.compiler.include_dirs.insert(0, '/usr/local/include' )
-+ # Add the buildlink directories for pkgsrc
-+ if os.environ.has_key('BUILDLINK_DIR'):
-+ dir = os.environ['BUILDLINK_DIR']
-+ libdir = dir + '/lib'
-+ incdir = dir + '/include'
-+ if libdir not in self.compiler.library_dirs:
-+ self.compiler.library_dirs.insert(0, libdir)
-+ if incdir not in self.compiler.include_dirs:
-+ self.compiler.include_dirs.insert(0, incdir)
-
- try:
- have_unicode = unicode
-@@ -274,7 +278,7 @@ class PyBuildExt(build_ext):
- if have_unicode:
- exts.append( Extension('unicodedata', ['unicodedata.c']) )
- # access to ISO C locale support
-- exts.append( Extension('_locale', ['_localemodule.c']) )
-+# exts.append( Extension('_locale', ['_localemodule.c']) )
-
- # Modules with some UNIX dependencies -- on by default:
- # (If you have a really backward UNIX, select and socket may not be
-@@ -330,16 +334,16 @@ class PyBuildExt(build_ext):
- # These represent audio samples or images as strings:
-
- # Disabled on 64-bit platforms
-- if sys.maxint != 9223372036854775807L:
-+# if sys.maxint != 9223372036854775807L:
- # Operations on audio samples
-- exts.append( Extension('audioop', ['audioop.c']) )
-+# exts.append( Extension('audioop', ['audioop.c']) )
- # Operations on images
-- exts.append( Extension('imageop', ['imageop.c']) )
-+# exts.append( Extension('imageop', ['imageop.c']) )
- # Read SGI RGB image files (but coded portably)
-- exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
-+# exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
-
- # readline
-- if self.compiler.find_library_file(lib_dirs, 'readline'):
-+ if 0 and self.compiler.find_library_file(lib_dirs, 'readline'):
- readline_libs = ['readline']
- if self.compiler.find_library_file(lib_dirs,
- 'ncurses'):
-@@ -363,14 +367,10 @@ class PyBuildExt(build_ext):
- # socket(2)
- # Detect SSL support for the socket module
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
-- ['/usr/local/ssl/include',
-- '/usr/contrib/ssl/include/'
-- ]
-+ []
- )
- ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-- ['/usr/local/ssl/lib',
-- '/usr/contrib/ssl/lib/'
-- ] )
-+ [] )
-
- if ssl_incs is not None:
- krb5_h = find_file('krb5.h', inc_dirs,
-@@ -413,9 +413,9 @@ class PyBuildExt(build_ext):
- exts.append( Extension('dbm', ['dbmmodule.c']) )
-
- # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
-- if (self.compiler.find_library_file(lib_dirs, 'gdbm')):
-- exts.append( Extension('gdbm', ['gdbmmodule.c'],
-- libraries = ['gdbm'] ) )
-+ #if (self.compiler.find_library_file(lib_dirs, 'gdbm')):
-+ # exts.append( Extension('gdbm', ['gdbmmodule.c'],
-+ # libraries = ['gdbm'] ) )
-
- # Berkeley DB interface.
- #
-@@ -469,9 +469,9 @@ class PyBuildExt(build_ext):
- # FTP archive sites. One URL for it is:
- # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
-
-- if (self.compiler.find_library_file(lib_dirs, 'gmp')):
-- exts.append( Extension('mpz', ['mpzmodule.c'],
-- libraries = ['gmp'] ) )
-+ #if (self.compiler.find_library_file(lib_dirs, 'gmp')):
-+ # exts.append( Extension('mpz', ['mpzmodule.c'],
-+ # libraries = ['gmp'] ) )
-
-
- # Unix-only modules
-@@ -498,8 +498,8 @@ class PyBuildExt(build_ext):
-
- if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
- curses_libs = ['ncurses']
-- exts.append( Extension('_curses', ['_cursesmodule.c'],
-- libraries = curses_libs) )
-+# exts.append( Extension('_curses', ['_cursesmodule.c'],
-+# libraries = curses_libs) )
- elif (self.compiler.find_library_file(lib_dirs, 'curses')
- and platform != 'darwin'):
- # OSX has an old Berkeley curses, not good enough for
-@@ -509,8 +509,8 @@ class PyBuildExt(build_ext):
- else:
- curses_libs = ['curses', 'termcap']
-
-- exts.append( Extension('_curses', ['_cursesmodule.c'],
-- libraries = curses_libs) )
-+# exts.append( Extension('_curses', ['_cursesmodule.c'],
-+# libraries = curses_libs) )
-
- # If the curses module is enabled, check for the panel module
- if (module_enabled(exts, '_curses') and
-@@ -544,23 +544,7 @@ class PyBuildExt(build_ext):
- # Andrew Kuchling's zlib module.
- # This require zlib 1.1.3 (or later).
- # See http://www.cdrom.com/pub/infozip/zlib/
-- zlib_inc = find_file('zlib.h', [], inc_dirs)
-- if zlib_inc is not None:
-- zlib_h = zlib_inc[0] + '/zlib.h'
-- version = '"0.0.0"'
-- version_req = '"1.1.3"'
-- fp = open(zlib_h)
-- while 1:
-- line = fp.readline()
-- if not line:
-- break
-- if line.find('#define ZLIB_VERSION', 0) == 0:
-- version = line.split()[2]
-- break
-- if version >= version_req:
-- if (self.compiler.find_library_file(lib_dirs, 'z')):
-- exts.append( Extension('zlib', ['zlibmodule.c'],
-- libraries = ['z']) )
-+ exts.append(Extension('zlib', ['zlibmodule.c'], libraries = ['z']))
-
- # Interface to the Expat XML parser
- #
-@@ -581,11 +565,11 @@ class PyBuildExt(build_ext):
- else:
- expat_incs = find_file('xmlparse.h', inc_dirs, [])
-
-- if (expat_incs is not None and
-- self.compiler.find_library_file(lib_dirs, 'expat')):
-- exts.append( Extension('pyexpat', ['pyexpat.c'],
-- define_macros = expat_defs,
-- libraries = ['expat']) )
-+ #if (expat_incs is not None and
-+ # self.compiler.find_library_file(lib_dirs, 'expat')):
-+ # exts.append( Extension('pyexpat', ['pyexpat.c'],
-+ # define_macros = expat_defs,
-+ # libraries = ['expat']) )
-
- # Platform-specific libraries
- if platform == 'linux2':
-@@ -808,7 +792,7 @@ def main():
- ext_modules=[Extension('struct', ['structmodule.c'])],
-
- # Scripts to install
-- scripts = ['Tools/scripts/pydoc']
-+ scripts = ['Tools/scripts/pydoc2p2']
- )
-
- # --install-platlib
diff --git a/lang/python22-pth/patches/patch-ab b/lang/python22-pth/patches/patch-ab
deleted file mode 100644
index 97df59eaeb0..00000000000
--- a/lang/python22-pth/patches/patch-ab
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $
-
---- Tools/scripts/pydoc2p2.orig Tue Jan 15 17:56:59 2002
-+++ Tools/scripts/pydoc2p2 Tue Jan 15 17:57:25 2002
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/env python2p2
-
- import pydoc
- pydoc.cli()
diff --git a/lang/python22-pth/patches/patch-ae b/lang/python22-pth/patches/patch-ae
deleted file mode 100644
index 9b8b4a250c8..00000000000
--- a/lang/python22-pth/patches/patch-ae
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ae,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $
-
---- Lib/distutils/command/build_ext.py.orig Thu Dec 6 17:59:54 2001
-+++ Lib/distutils/command/build_ext.py
-@@ -472,8 +472,18 @@
- # that go into the mix.
- if ext.extra_objects:
- objects.extend(ext.extra_objects)
-+
-+ # Two possible sources for extra linker arguments:
-+ # - 'extra_link_args' in Extension object
-+ # - LDFLAGS environment variable
-+ # The environment variable should take precedence, and
-+ # any sensible compiler will give precedence to later
-+ # command line args. Hence we combine them in order:
- extra_args = ext.extra_link_args or []
-
-+
-+ if os.environ.has_key('LDFLAGS'):
-+ extra_args.extend(string.split(os.environ['LDFLAGS']))
-
- self.compiler.link_shared_object(
- objects, ext_filename,
diff --git a/lang/python22-pth/patches/patch-af b/lang/python22-pth/patches/patch-af
deleted file mode 100644
index 540c1f79ce1..00000000000
--- a/lang/python22-pth/patches/patch-af
+++ /dev/null
@@ -1,88 +0,0 @@
-$NetBSD: patch-af,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $
-
-Unofficial patch to support Basic Auth for XML-RPC.
-
---- Lib/xmlrpclib.py.orig Tue Oct 15 18:52:10 2002
-+++ Lib/xmlrpclib.py Wed Oct 16 11:44:47 2002
-@@ -852,20 +852,55 @@
-
- return self.parse_response(h.getfile())
-
-+ ##
-+ # Get authorization info from host parameter
-+ # Host may be a string, or a (host, x509-dict) tuple; if a string,
-+ # it is checked for a 'user:pw@host' format, and a "Basic Auth"
-+ # header is created from the 'user:pw' info.
-+ #
-+ # @return A tuple of: (actual host, base64-encoded Authorization
-+ # header or None, x509 info or empty dictionary)
-+
-+ def get_host_info(self, host):
-+
-+ x509 = {}
-+ if isinstance(host,tuple):
-+ host, x509 = host
-+
-+ import urllib
-+ auth, host = urllib.splituser(host)
-+
-+ if auth:
-+ auth='Basic %s' % auth.encode('base64').strip()
-+ else:
-+ auth=None
-+
-+ return host, auth, x509
-+
- def getparser(self):
- # get parser and unmarshaller
- return getparser()
-
- def make_connection(self, host):
- # create a HTTP connection object from a host descriptor
-+ host, auth, x509 = self.get_host_info(host)
- import httplib
- return httplib.HTTP(host)
-
- def send_request(self, connection, handler, request_body):
- connection.putrequest("POST", handler)
-
-+ ##
-+ # Send host name (and authorization, if any)
-+ #
-+ # @param connection Connection handle.
-+ # @param host Host object (per get_host_info).
-+
- def send_host(self, connection, host):
-+ host, auth, x509 = self.get_host_info(host)
- connection.putheader("Host", host)
-+ if auth:
-+ connection.putheader("Authorization", auth)
-
- def send_user_agent(self, connection):
- connection.putheader("User-Agent", self.user_agent)
-@@ -901,11 +936,10 @@
- def make_connection(self, host):
- # create a HTTPS connection object from a host descriptor
- # host may be a string, or a (host, x509-dict) tuple
-+
- import httplib
-- if isinstance(host, TupleType):
-- host, x509 = host
-- else:
-- x509 = {}
-+ host, auth, x509 = self.get_host_info(host)
-+
- try:
- HTTPS = httplib.HTTPS
- except AttributeError:
-@@ -914,10 +948,6 @@
- else:
- return apply(HTTPS, (host, None), x509)
-
-- def send_host(self, connection, host):
-- if isinstance(host, TupleType):
-- host, x509 = host
-- connection.putheader("Host", host)
-
- class ServerProxy:
- """uri [,options] -> a logical connection to an XML-RPC server
diff --git a/lang/python22-pth/patches/patch-ag b/lang/python22-pth/patches/patch-ag
deleted file mode 100644
index 12fac81925d..00000000000
--- a/lang/python22-pth/patches/patch-ag
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ag,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $
-
---- configure.orig Tue Oct 22 22:44:05 2002
-+++ configure Tue Oct 22 22:44:42 2002
-@@ -572,7 +572,7 @@
-
- # Set VERSION so we only need to edit in one place (i.e., here)
-
--VERSION=2.2
-+VERSION=2p2
-
- # Arguments passed to configure.
-
diff --git a/lang/python22-pth/patches/patch-ah b/lang/python22-pth/patches/patch-ah
deleted file mode 100644
index d52ef1db3ad..00000000000
--- a/lang/python22-pth/patches/patch-ah
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ah,v 1.3 2003/06/07 14:37:02 cjep Exp $
---- Include/patchlevel.h.orig 2003-05-30 15:41:07.000000000 +0200
-+++ Include/patchlevel.h 2003-06-02 20:04:34.000000000 +0200
-@@ -26,7 +26,7 @@
- #define PY_RELEASE_SERIAL 0
-
- /* Version as a string */
--#define PY_VERSION "2.2.3"
-+#define PY_VERSION "2p2.3"
-
- /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
- Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
diff --git a/lang/python22-pth/patches/patch-ai b/lang/python22-pth/patches/patch-ai
deleted file mode 100644
index 4352431195a..00000000000
--- a/lang/python22-pth/patches/patch-ai
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-ai,v 1.2 2003/06/06 17:31:20 drochner Exp $
-
---- Makefile.pre.in.orig 2003-01-20 03:13:45.000000000 +0100
-+++ Makefile.pre.in 2003-06-06 19:17:56.000000000 +0200
-@@ -56,7 +56,7 @@
- OPT= @OPT@
- DEFS= @DEFS@
- CFLAGS= $(OPT)
--CPPFLAGS= -I. -I$(srcdir)/Include $(DEFS)
-+CPPFLAGS+= -I. -I$(srcdir)/Include $(DEFS)
- LDFLAGS= @LDFLAGS@
- LDLAST= @LDLAST@
- SGI_ABI= @SGI_ABI@
-@@ -294,7 +294,7 @@
- $(BUILDPYTHON): Modules/$(MAINOBJ) $(LDLIBRARY)
- $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
- Modules/$(MAINOBJ) \
-- $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
-+ $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) ${LINK_ALL_LIBGCC_HACK}
-
- platform: $(BUILDPYTHON)
- ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-@@ -407,7 +407,7 @@
- -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-
- $(PGEN): $(PGENOBJS)
-- $(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
-+ $(CC) $(LDFLAGS) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
-
- Parser/grammar.o: $(srcdir)/Parser/grammar.c \
- $(srcdir)/Include/token.h \
diff --git a/lang/python22-pth/patches/patch-aj b/lang/python22-pth/patches/patch-aj
deleted file mode 100644
index 4b6aa1fe4d9..00000000000
--- a/lang/python22-pth/patches/patch-aj
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2003/04/08 18:42:40 drochner Exp $
-
---- Python/thread.c.orig 2003-04-08 20:30:53.000000000 +0200
-+++ Python/thread.c 2003-04-08 20:33:45.000000000 +0200
-@@ -107,6 +107,7 @@
-
- #ifdef HAVE_PTH
- #include "thread_pth.h"
-+#undef _POSIX_THREADS
- #endif
-
- #ifdef _POSIX_THREADS
diff --git a/lang/python22-pth/patches/patch-ba b/lang/python22-pth/patches/patch-ba
deleted file mode 100644
index a8a35b78d85..00000000000
--- a/lang/python22-pth/patches/patch-ba
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-ba,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $
-
---- Python/thread_pth.h.orig Thu Oct 12 22:58:32 2000
-+++ Python/thread_pth.h Fri Sep 6 18:34:12 2002
-@@ -30,6 +30,8 @@
-
- #define CHECK_STATUS(name) if (status == -1) { printf("%d ", status); perror(name); error = 1; }
-
-+pth_attr_t PyThread_attr;
-+
- /*
- * Initialization.
- */
-@@ -37,6 +39,9 @@
- static void PyThread__init_thread(void)
- {
- pth_init();
-+ PyThread_attr = pth_attr_new();
-+ pth_attr_set(PyThread_attr, PTH_ATTR_STACK_SIZE, 1<<18);
-+ pth_attr_set(PyThread_attr, PTH_ATTR_JOINABLE, FALSE);
- }
-
- /*
-@@ -51,7 +56,7 @@
- if (!initialized)
- PyThread_init_thread();
-
-- th = pth_spawn(PTH_ATTR_DEFAULT,
-+ th = pth_spawn(PyThread_attr,
- (void* (*)(void *))func,
- (void *)arg
- );
diff --git a/lang/python22-pth/patches/patch-bb b/lang/python22-pth/patches/patch-bb
deleted file mode 100644
index 23b069f7509..00000000000
--- a/lang/python22-pth/patches/patch-bb
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-bb,v 1.2 2004/08/29 10:44:19 recht Exp $
-
---- Lib/test/test_fcntl.py.orig 2002-08-23 18:06:46.000000000 +0200
-+++ Lib/test/test_fcntl.py 2004-08-28 12:01:15.000000000 +0200
-@@ -16,11 +16,11 @@
- else:
- start_len = "qq"
-
--if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin',
-+if sys.platform in ('netbsd1', 'netbsd2', 'Darwin1.2', 'darwin',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4',
- 'openbsd', 'openbsd2', 'openbsd3'):
-- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0)
-+ lockdata = struct.pack('qqihh', 0, 0, 0, fcntl.F_WRLCK, 0)
- elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
- lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
- else:
diff --git a/lang/python22-pth/patches/patch-bc b/lang/python22-pth/patches/patch-bc
deleted file mode 100644
index 2f292e310a4..00000000000
--- a/lang/python22-pth/patches/patch-bc
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2004/08/29 10:44:19 recht Exp $
-
---- Lib/posixfile.py.orig 2001-10-25 00:03:35.000000000 +0200
-+++ Lib/posixfile.py 2004-08-28 12:02:35.000000000 +0200
-@@ -182,11 +182,11 @@
- # Hack by davem@magnet.com to get locking to go on freebsd;
- # additions for AIX by Vladimir.Marangozov@imag.fr
- import sys, os
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2',
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
-- flock = struct.pack('lxxxxlxxxxlhh', \
-+ flock = struct.pack('qqihh', \
- l_start, l_len, os.getpid(), l_type, l_whence)
- elif sys.platform in ['aix3', 'aix4']:
- flock = struct.pack('hhlllii', \
-@@ -198,12 +198,12 @@
- flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
-
- if '?' in how:
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2'
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
- l_start, l_len, l_pid, l_type, l_whence = \
-- struct.unpack('lxxxxlxxxxlhh', flock)
-+ struct.unpack('qqihh', flock)
- elif sys.platform in ['aix3', 'aix4']:
- l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
- struct.unpack('hhlllii', flock)
diff --git a/lang/python22/Makefile b/lang/python22/Makefile
index 678e1ffe4a4..71909a71db1 100644
--- a/lang/python22/Makefile
+++ b/lang/python22/Makefile
@@ -1,11 +1,61 @@
-# $NetBSD: Makefile,v 1.22 2004/08/29 10:44:19 recht Exp $
+# $NetBSD: Makefile,v 1.23 2005/01/23 20:41:47 recht Exp $
#
+DISTNAME= Python-2.2.3
PKGNAME= python22-2.2.3
-PKGREVISION= 2
+PKGREVISION= 3
+CATEGORIES= lang python
+MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.3/
+EXTRACT_SUFX= .tgz
-CONFIGURE_ARGS+= --without-threads
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
+
+USE_LANGUAGES= c c++
+USE_BUILDLINK3= YES
+GNU_CONFIGURE= YES
+
+PTHREAD_OPTS= require
+.include "../../mk/pthread.buildlink3.mk"
+.if ${PTHREAD_TYPE} == "pth"
+CONFIGURE_ARGS+= --with-pth
+.endif
PY_VER_SUFFIX= 2.2
-.include "../../lang/python22/Makefile.common"
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_SRC= ${.CURDIR}/../../lang/python22/PLIST.common
+.if exists(${.CURDIR}/../../lang/python22/PLIST.${OPSYS})
+PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.${OPSYS}
+.endif
+PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.common_end
+
+.if ${OPSYS} == "Darwin"
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS:C/\..*//}
+.elif ${OPSYS} == "SunOS"
+PLIST_SUBST+= PY_PLATNAME=sunos${OS_VERSION:C/\..*//}
+.else
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//}
+.endif
+
+PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
+
+INSTALL_TARGET= altinstall
+
+post-extract:
+ ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+
+# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
+# set earlier in the environment (last definition wins).
+#
+.if ${OBJECT_FMT} == "a.out"
+MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
+.endif
diff --git a/lang/python22/Makefile.common b/lang/python22/Makefile.common
deleted file mode 100644
index 743af848285..00000000000
--- a/lang/python22/Makefile.common
+++ /dev/null
@@ -1,51 +0,0 @@
-# $NetBSD: Makefile.common,v 1.8 2004/12/19 05:34:07 grant Exp $
-#
-
-DISTNAME= Python-2.2.3
-CATEGORIES= lang python
-MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.3/
-EXTRACT_SUFX= .tgz
-
-MAINTAINER= tech-pkg@NetBSD.org
-HOMEPAGE= http://www.python.org/
-COMMENT= Interpreted, interactive, object-oriented programming language
-
-USE_LANGUAGES= c c++
-USE_BUILDLINK3= YES
-GNU_CONFIGURE= YES
-
-.include "../../mk/bsd.prefs.mk"
-
-PLIST_SRC= ${.CURDIR}/../../lang/python22/PLIST.common
-.if exists(${.CURDIR}/../../lang/python22/PLIST.${OPSYS})
-PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.${OPSYS}
-.endif
-PLIST_SRC+= ${.CURDIR}/../../lang/python22/PLIST.common_end
-
-.if ${OPSYS} == "Darwin"
-PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}
-.elif ${OPSYS} == "IRIX"
-PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS:C/\..*//}
-.elif ${OPSYS} == "SunOS"
-PLIST_SUBST+= PY_PLATNAME=sunos${OS_VERSION:C/\..*//}
-.else
-PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//}
-.endif
-
-PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
-
-INSTALL_TARGET= altinstall
-
-post-extract:
- ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
-
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
-
-# This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one
-# set earlier in the environment (last definition wins).
-#
-.if ${OBJECT_FMT} == "a.out"
-MAKE_ENV+= LDFLAGS="${LDFLAGS:S/-Wl,//}"
-.endif
diff --git a/lang/python23-pth/Makefile b/lang/python23-pth/Makefile
index 55e3261b418..1484462429a 100644
--- a/lang/python23-pth/Makefile
+++ b/lang/python23-pth/Makefile
@@ -1,16 +1,26 @@
-# $NetBSD: Makefile,v 1.26 2004/06/15 14:26:34 grant Exp $
+# $NetBSD: Makefile,v 1.27 2005/01/23 20:41:47 recht Exp $
#
+DISTNAME= Python-2.3.4
PKGNAME= python23-pth-2.3.4
+PKGREVISION= 3
+CATEGORIES= lang python
+MASTER_SITES= # empty
+DISTFILES= # empty
-#PKG_INSTALLATION_TYPES= overwrite pkgviews
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
-PTHREAD_OPTS= require
-.include "../../mk/pthread.buildlink3.mk"
-.if ${PTHREAD_TYPE} == "pth"
-CONFIGURE_ARGS+= --with-pth
-.endif
+DEPENDS+= python23>=2.3.4:../../lang/python23
-PY_VER_SUFFIX= 2p3
+EXTRACT_ONLY= # empty
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+NO_BUILDLINK= yes
+NO_MTREE= yes
-.include "../../lang/python23/Makefile.common"
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python23-pth/PLIST b/lang/python23-pth/PLIST
new file mode 100644
index 00000000000..3aeb8abf5f9
--- /dev/null
+++ b/lang/python23-pth/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.4 2005/01/23 20:41:47 recht Exp $
+@comment this plist intentionally left empty
diff --git a/lang/python23-pth/buildlink3.mk b/lang/python23-pth/buildlink3.mk
deleted file mode 100644
index d1a6a968dd8..00000000000
--- a/lang/python23-pth/buildlink3.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.6 2004/03/26 02:27:43 wiz Exp $
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-PYTHON23_PTH_BUILDLINK3_MK:= ${PYTHON23_PTH_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= python23-pth
-.endif
-
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython23-pth}
-BUILDLINK_PACKAGES+= python23-pth
-
-.if !empty(PYTHON23_PTH_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.python23-pth+= python23-pth>=2.3
-BUILDLINK_RECOMMENDED.python23-pth?= python23-pth>=2.3.3nb2
-BUILDLINK_PKGSRCDIR.python23-pth?= ../../lang/python23-pth
-
-.if defined(BUILDLINK_DEPMETHOD.python)
-BUILDLINK_DEPMETHOD.python23pth?= ${BUILDLINK_DEPMETHOD.python}
-.endif
-
-BUILDLINK_INCDIRS.python23-pth+= include/python2p3
-BUILDLINK_LIBDIRS.python23-pth+= lib/python2p3/config
-BUILDLINK_TRANSFORM+= l:python:python2p3
-
-.endif # PYTHON23_PTH_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/lang/python23-pth/distinfo b/lang/python23-pth/distinfo
deleted file mode 100644
index ec11f057e46..00000000000
--- a/lang/python23-pth/distinfo
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: distinfo,v 1.20 2004/12/30 21:56:21 minskim Exp $
-
-SHA1 (Python-2.3.4.tgz) = 7d47431febec704e766b57f12a1a5030bb2d03c3
-Size (Python-2.3.4.tgz) = 8502738 bytes
-SHA1 (patch-aa) = a0fcef6a91ec4724f0aed0fdebce55ba139d3700
-SHA1 (patch-ab) = 111d7fa8adbb7001bacad36e3bdbe23ae6ce8b9b
-SHA1 (patch-ad) = c8f6ea08e68dae3bd9ad639c38e74cf654c0b41e
-SHA1 (patch-ae) = 35d27825ea4f3930cce651761e192a7302696eba
-SHA1 (patch-af) = d23d42d5d5fc31aeaf1fca89448873cc4179ccf6
-SHA1 (patch-ah) = f9a46bfe82acec594cf44afd43f359a5248edadb
-SHA1 (patch-al) = 3e01ac0b4fb8843fc3191a830fbac35728d2f6f1
-SHA1 (patch-am) = eda4c6161b4237e1281cc6b82b26c5195444dcff
-SHA1 (patch-ba) = dd8f89952d7f40c9a979e362758775f093e047bc
-SHA1 (patch-bb) = 7c6fe21b6328dddce2a079b0a1c7ae0bee817bae
-SHA1 (patch-ca) = 95f5a515fe3dafd75d077e0591e88a34447152ff
-SHA1 (patch-cb) = 301205b29db1ca60f06b2dc0423f5f911eabcd18
-SHA1 (patch-da) = b082eff79571726701aab53c37d8d53a8115e204
-SHA1 (patch-db) = ac37d14f55c165fee1d8225304d6c3c8ec203fec
-SHA1 (patch-dc) = 151159e0bafd248040ab57e5c05152a91fe44ac6
diff --git a/lang/python23-pth/patches/patch-aa b/lang/python23-pth/patches/patch-aa
deleted file mode 100644
index c477532f835..00000000000
--- a/lang/python23-pth/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2004/06/02 12:29:28 recht Exp $
-
---- Include/patchlevel.h.orig 2004-05-19 05:14:27.000000000 +0200
-+++ Include/patchlevel.h 2004-06-02 14:00:51.000000000 +0200
-@@ -26,7 +26,7 @@
- #define PY_RELEASE_SERIAL 0
-
- /* Version as a string */
--#define PY_VERSION "2.3.4"
-+#define PY_VERSION "2p3.4"
-
- /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
- Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
diff --git a/lang/python23-pth/patches/patch-ab b/lang/python23-pth/patches/patch-ab
deleted file mode 100644
index b3c51270615..00000000000
--- a/lang/python23-pth/patches/patch-ab
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2003/12/08 21:13:56 recht Exp $
-
---- Include/py_curses.h.orig 2003-06-29 17:46:21.000000000 +0200
-+++ Include/py_curses.h
-@@ -39,6 +39,21 @@
- #endif
- #endif
-
-+#ifdef __NetBSD__
-+/*
-+** On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
-+** against multiple definition of wchar_t and wint_t.
-+*/
-+#ifdef _XOPEN_SOURCE_EXTENDED
-+#ifndef _WCHAR_T
-+#define _WCHAR_T
-+#endif
-+#ifndef _WINT_T
-+#define _WINT_T
-+#endif
-+#endif
-+#endif
-+
- #ifdef HAVE_NCURSES_H
- #include <ncurses.h>
- #else
diff --git a/lang/python23-pth/patches/patch-ad b/lang/python23-pth/patches/patch-ad
deleted file mode 100644
index e1730705004..00000000000
--- a/lang/python23-pth/patches/patch-ad
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2003/12/08 21:13:56 recht Exp $
-
---- Lib/distutils/command/build_ext.py.orig 2002-11-19 14:12:28.000000000 +0100
-+++ Lib/distutils/command/build_ext.py
-@@ -475,8 +475,18 @@ class build_ext (Command):
- # that go into the mix.
- if ext.extra_objects:
- objects.extend(ext.extra_objects)
-+
-+ # Two possible sources for extra linker arguments:
-+ # - 'extra_link_args' in Extension object
-+ # - LDFLAGS environment variable
-+ # The environment variable should take precedence, and
-+ # any sensible compiler will give precedence to later
-+ # command line args. Hence we combine them in order:
- extra_args = ext.extra_link_args or []
-
-+ if os.environ.has_key('LDFLAGS'):
-+ extra_args.extend(string.split(os.environ['LDFLAGS']))
-+
- # Detect target language, if not provided
- language = ext.language or self.compiler.detect_language(sources)
-
diff --git a/lang/python23-pth/patches/patch-ae b/lang/python23-pth/patches/patch-ae
deleted file mode 100644
index d0731e391f0..00000000000
--- a/lang/python23-pth/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2004/06/02 12:29:28 recht Exp $
-
---- Lib/distutils/command/build_scripts.py.orig 2004-04-01 05:56:46.000000000 +0200
-+++ Lib/distutils/command/build_scripts.py 2004-06-02 13:58:52.000000000 +0200
-@@ -101,7 +101,7 @@
- outf.write("#!%s%s\n" %
- (os.path.join(
- sysconfig.get_config_var("BINDIR"),
-- "python" + sysconfig.get_config_var("EXE")),
-+ "python%s" % sys.version[:3] + sysconfig.get_config_var("EXE")),
- post_interp))
- outf.writelines(f.readlines())
- outf.close()
diff --git a/lang/python23-pth/patches/patch-af b/lang/python23-pth/patches/patch-af
deleted file mode 100644
index f37eb2a88cc..00000000000
--- a/lang/python23-pth/patches/patch-af
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-af,v 1.2 2004/06/10 10:13:06 recht Exp $
-
---- Lib/test/test_fcntl.py.orig 2002-07-23 21:03:51.000000000 +0200
-+++ Lib/test/test_fcntl.py
-@@ -20,11 +20,11 @@ else:
- if sys.platform.startswith('atheos'):
- start_len = "qq"
-
--if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin',
-+if sys.platform in ('netbsd1', 'netbsd2', 'Darwin1.2', 'darwin',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4',
- 'openbsd', 'openbsd2', 'openbsd3'):
-- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0)
-+ lockdata = struct.pack('qqihh', 0, 0, 0, fcntl.F_WRLCK, 0)
- elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
- lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
- elif sys.platform in ['os2emx']:
-
diff --git a/lang/python23-pth/patches/patch-ah b/lang/python23-pth/patches/patch-ah
deleted file mode 100644
index c673c5e6e73..00000000000
--- a/lang/python23-pth/patches/patch-ah
+++ /dev/null
@@ -1,55 +0,0 @@
-$NetBSD: patch-ah,v 1.4 2004/11/28 13:33:20 recht Exp $
-
---- Makefile.pre.in.orig Tue Nov 18 20:54:00 2003
-+++ Makefile.pre.in Thu Nov 11 18:54:35 2004
-@@ -56,7 +56,7 @@
- OPT= @OPT@
- BASECFLAGS= @BASECFLAGS@
- CFLAGS= $(BASECFLAGS) $(OPT)
--CPPFLAGS= -I. -I$(srcdir)/Include
-+CPPFLAGS+= @CPPFLAGS@ -I. -I$(srcdir)/Include
- LDFLAGS= @LDFLAGS@
- LDLAST= @LDLAST@
- SGI_ABI= @SGI_ABI@
-@@ -305,7 +305,7 @@
- $(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
- $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
- Modules/$(MAINOBJ) \
-- $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
-+ $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) ${LINK_ALL_LIBGCC_HACK}
-
- platform: $(BUILDPYTHON)
- $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-@@ -345,7 +345,7 @@
-
- libpython$(VERSION).so: $(LIBRARY_OBJS)
- if test $(INSTSONAME) != $(LDLIBRARY); then \
-- $(LDSHARED) -Wl,-soname=$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
-+ $(LDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
- $(LN) -f $(INSTSONAME) $@; \
- else\
- $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
-@@ -354,6 +354,9 @@
- libpython$(VERSION).sl: $(LIBRARY_OBJS)
- $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
-
-+libpython$(VERSION).dylib: $(LIBRARY_OBJS)
-+ $(LINKCC) -dynamiclib -install_name $(LIBDIR)/$@ -current_version 2.3.4 -compatibility_version 2.3 -o $@ -flat_namespace -undefined suppress $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
-+
- # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
- # minimal framework (not including the Lib directory and such) in the current
- # directory.
-@@ -613,7 +616,12 @@
- (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
- fi \
- fi; \
-- else true; \
-+ else \
-+ if test -f libpython$(VERSION).dylib; then \
-+ $(INSTALL_SHARED) libpython$(VERSION).dylib $(DESTDIR)$(LIBDIR)/libpython$(VERSION).dylib; \
-+ else \
-+ true; \
-+ fi \
- fi
-
- # Install the manual page
diff --git a/lang/python23-pth/patches/patch-al b/lang/python23-pth/patches/patch-al
deleted file mode 100644
index 22e980e2508..00000000000
--- a/lang/python23-pth/patches/patch-al
+++ /dev/null
@@ -1,91 +0,0 @@
-$NetBSD: patch-al,v 1.9 2004/12/30 21:56:21 minskim Exp $
-
---- configure.orig 2004-05-07 14:13:40.000000000 -0500
-+++ configure
-@@ -1318,7 +1318,7 @@ rm confdefs.h
- mv confdefs.h.new confdefs.h
-
-
--VERSION=2.3
-+VERSION=2p3
-
-
- SOVERSION=1.0
-@@ -1440,6 +1440,8 @@ case $ac_sys_system/$ac_sys_release in
- # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
- OpenBSD/2.* | OpenBSD/3.[01234])
- define_xopen_source=no;;
-+ NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
-+ define_xopen_source=no;;
- # On Solaris 2.6, sys/wait.h is inconsistent in the usage
- # of union __?sigval. Reported by Stuart Bishop.
- SunOS/5.6)
-@@ -3603,7 +3605,7 @@ _ACEOF
- RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
- INSTSONAME="$LDLIBRARY".$SOVERSION
- ;;
-- Linux*|GNU*|NetBSD*)
-+ Linux*|GNU*|NetBSD*|FreeBSD*)
- LDLIBRARY='libpython$(VERSION).so'
- BLDLIBRARY='-L. -lpython$(VERSION)'
- RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
-@@ -3624,6 +3626,14 @@ _ACEOF
- BLDLIBRARY='-L. -lpython$(VERSION)'
- RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
- ;;
-+ Darwin*)
-+ if test -z "$enable_framework"; then
-+ LDLIBRARY='libpython$(VERSION).dylib'
-+ BLDLIBRARY='-L. -lpython$(VERSION)'
-+ RUNSHARED=DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}
-+ fi
-+ ;;
-+
- esac
- # DG/UX requires some fancy ld contortions to produce a .so from an .a
- case $MACHDEP in
-@@ -4021,7 +4031,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
- ;;
- # is there any other compiler on Darwin besides gcc?
- Darwin*)
-- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
-+ if [[ `/usr/bin/arch` = 'ppc' ]]
-+ then
-+ BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common"
-+ else
-+ BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -fno-common"
-+ fi
- ;;
- esac
- ;;
-@@ -10082,7 +10097,7 @@ then
- LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
- else
- # No framework. Ignore undefined symbols, assuming they come from Python
-- LDSHARED="$LDSHARED -undefined suppress"
-+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
- fi ;;
- Darwin/*)
- LDSHARED='$(CC) $(LDFLAGS) -bundle'
-@@ -10091,10 +10106,10 @@ then
- LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
- else
- # No framework, use the Python app as bundle-loader
-- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
-- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
-+ BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)'
-+ LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi ;;
-- Linux*|GNU*) LDSHARED='$(CC) -shared';;
-+ Linux*|GNU*) LDSHARED='$(CC) -shared ${LDFLAGS}';;
- dgux*) LDSHARED="ld -G";;
- BSD/OS*/4*) LDSHARED="gcc -shared";;
- OpenBSD*|FreeBSD*)
-@@ -13855,6 +13870,7 @@ cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
-
- #include "confdefs.h"
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
diff --git a/lang/python23-pth/patches/patch-am b/lang/python23-pth/patches/patch-am
deleted file mode 100644
index e61b77b82ab..00000000000
--- a/lang/python23-pth/patches/patch-am
+++ /dev/null
@@ -1,350 +0,0 @@
-$NetBSD: patch-am,v 1.5 2004/04/13 22:48:42 recht Exp $
-
---- setup.py.orig 2003-10-21 15:01:21.000000000 -0500
-+++ setup.py
-@@ -15,7 +15,7 @@ from distutils.command.install import in
- from distutils.command.install_lib import install_lib
-
- # This global variable is used to hold the list of modules to be disabled.
--disabled_module_list = []
-+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_tkinter", "gdbm", "mpz", "pyexpat", "readline"]
-
- def add_dir_to_list(dirlist, dir):
- """Add the directory 'dir' to the list 'dirlist' (at the front) if
-@@ -240,9 +240,15 @@ class PyBuildExt(build_ext):
- return sys.platform
-
- def detect_modules(self):
-- # Ensure that /usr/local is always used
-- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+ # Add the buildlink directories for pkgsrc
-+ if os.environ.has_key('BUILDLINK_DIR'):
-+ dir = os.environ['BUILDLINK_DIR']
-+ libdir = dir + '/lib'
-+ incdir = dir + '/include'
-+ if libdir not in self.compiler.library_dirs:
-+ self.compiler.library_dirs.insert(0, libdir)
-+ if incdir not in self.compiler.include_dirs:
-+ self.compiler.include_dirs.insert(0, incdir)
-
- # fink installs lots of goodies in /sw/... - make sure we
- # check there
-@@ -436,9 +442,7 @@ class PyBuildExt(build_ext):
- depends = ['socketmodule.h']) )
- # Detect SSL support for the socket module (via _ssl)
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
-- ['/usr/local/ssl/include',
-- '/usr/contrib/ssl/include/'
-- ]
-+ []
- )
- if ssl_incs is not None:
- krb5_h = find_file('krb5.h', inc_dirs,
-@@ -446,9 +450,7 @@ class PyBuildExt(build_ext):
- if krb5_h:
- ssl_incs += krb5_h
- ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-- ['/usr/local/ssl/lib',
-- '/usr/contrib/ssl/lib/'
-- ] )
-+ [] )
-
- if (ssl_incs is not None and
- ssl_libs is not None):
-@@ -479,116 +481,162 @@ class PyBuildExt(build_ext):
-
- # when sorted in reverse order, keys for this dict must appear in the
- # order you wish to search - e.g., search for db4 before db3
-- db_try_this = {
-- 'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
-- 'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
-- '/usr/local/BerkeleyDB.4.1/lib',
-- '/usr/local/BerkeleyDB.4.0/lib',
-- '/usr/local/lib',
-- '/opt/sfw',
-- '/sw/lib',
-- ),
-- 'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
-- '/usr/local/include/db42',
-- '/usr/local/BerkeleyDB.4.1/include',
-- '/usr/local/include/db41',
-- '/usr/local/BerkeleyDB.4.0/include',
-- '/usr/local/include/db4',
-- '/opt/sfw/include/db4',
-- '/sw/include/db4',
-- '/usr/include/db4',
-- )},
-- 'db3': {'libs': ('db-3.3', 'db-3.2', 'db-3.1', 'db3',),
-- 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
-- '/usr/local/BerkeleyDB.3.2/lib',
-- '/usr/local/BerkeleyDB.3.1/lib',
-- '/usr/local/lib',
-- '/opt/sfw/lib',
-- '/sw/lib',
-- ),
-- 'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
-- '/usr/local/BerkeleyDB.3.2/include',
-- '/usr/local/BerkeleyDB.3.1/include',
-- '/usr/local/include/db3',
-- '/opt/sfw/include/db3',
-- '/sw/include/db3',
-- '/usr/include/db3',
-- )},
-- }
--
-- db_search_order = db_try_this.keys()
-- db_search_order.sort()
-- db_search_order.reverse()
-+ #db_try_this = {
-+ #'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
-+ #'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
-+ #'/usr/local/BerkeleyDB.4.1/lib',
-+ #'/usr/local/BerkeleyDB.4.0/lib',
-+ #'/usr/local/lib',
-+ #'/opt/sfw',
-+ #'/sw/lib',
-+ #),
-+ #'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
-+ #'/usr/local/include/db42',
-+ #'/usr/local/BerkeleyDB.4.1/include',
-+ #'/usr/local/include/db41',
-+ #'/usr/local/BerkeleyDB.4.0/include',
-+ #'/usr/local/include/db4',
-+ #'/opt/sfw/include/db4',
-+ #'/sw/include/db4',
-+ #'/usr/include/db4',
-+ #)},
-+ #'db3': {'libs': ('db-3.3', 'db-3.2', 'db-3.1', 'db3',),
-+ #'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
-+ #'/usr/local/BerkeleyDB.3.2/lib',
-+ #'/usr/local/BerkeleyDB.3.1/lib',
-+ #'/usr/local/lib',
-+ #'/opt/sfw/lib',
-+ #'/sw/lib',
-+ #),
-+ #'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
-+ #'/usr/local/BerkeleyDB.3.2/include',
-+ #'/usr/local/BerkeleyDB.3.1/include',
-+ #'/usr/local/include/db3',
-+ #'/opt/sfw/include/db3',
-+ #'/sw/include/db3',
-+ #'/usr/include/db3',
-+ #)},
-+ #}
-+
-+ #db_search_order = db_try_this.keys()
-+ #db_search_order.sort()
-+ #db_search_order.reverse()
-+
-+ #class found(Exception): pass
-+ #try:
-+ ## See whether there is a Sleepycat header in the standard
-+ ## search path.
-+ #std_dbinc = None
-+ #for d in inc_dirs:
-+ #f = os.path.join(d, "db.h")
-+ #if os.path.exists(f):
-+ #f = open(f).read()
-+ #m = re.search(r"#define\WDB_VERSION_MAJOR\W([1-9]+)", f)
-+ #if m:
-+ #std_dbinc = 'db' + m.group(1)
-+ #for dbkey in db_search_order:
-+ #dbd = db_try_this[dbkey]
-+ #for dblib in dbd['libs']:
-+ ## Prefer version-specific includes over standard
-+ ## include locations.
-+ #db_incs = find_file('db.h', [], dbd['incdirs'])
-+ #dblib_dir = find_library_file(self.compiler,
-+ #dblib,
-+ #lib_dirs,
-+ #list(dbd['libdirs']))
-+ #if (db_incs or dbkey == std_dbinc) and \
-+ #dblib_dir is not None:
-+ #dblibs = [dblib]
-+ #raise found
-+ #except found:
-+ #dblibs = [dblib]
-+ ## A default source build puts Berkeley DB in something like
-+ ## /usr/local/Berkeley.3.3 and the lib dir under that isn't
-+ ## normally on ld.so's search path, unless the sysadmin has hacked
-+ ## /etc/ld.so.conf. We add the directory to runtime_library_dirs
-+ ## so the proper -R/--rpath flags get passed to the linker. This
-+ ## is usually correct and most trouble free, but may cause problems
-+ ## in some unusual system configurations (e.g. the directory is on
-+ ## an NFS server that goes away).
-+ #exts.append(Extension('_bsddb', ['_bsddb.c'],
-+ #library_dirs=dblib_dir,
-+ #runtime_library_dirs=dblib_dir,
-+ #include_dirs=db_incs,
-+ #libraries=dblibs))
-+ #else:
-+ #db_incs = None
-+ #dblibs = []
-+ #dblib_dir = None
-
-- class found(Exception): pass
-+ # Look for Berkeley db 1.85. Note that it is built as a different
-+ # module name so it can be included even when later versions are
-+ # available. A very restrictive search is performed to avoid
-+ # accidentally building this module with a later version of the
-+ # underlying db library. May BSD-ish Unixes incorporate db 1.85
-+ # symbols into libc and place the include file in /usr/include.
-+ #f = "/usr/include/db.h"
-+ #if os.path.exists(f):
-+ #data = open(f).read()
-+ #m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
-+ #if m is not None:
-+ ## bingo - old version used hash file format version 2
-+ #### XXX this should be fixed to not be platform-dependent
-+ #### but I don't have direct access to an osf1 platform and
-+ #### seemed to be muffing the search somehow
-+ #libraries = platform == "osf1" and ['db'] or None
-+ #if libraries is not None:
-+ #exts.append(Extension('bsddb185', ['bsddbmodule.c'],
-+ #libraries=libraries))
-+ #else:
-+ #exts.append(Extension('bsddb185', ['bsddbmodule.c']))
-+
-+ # rely on pkgsrc for Berkeley DB
-+ class NotFound(Exception): pass
- try:
-- # See whether there is a Sleepycat header in the standard
-- # search path.
-- std_dbinc = None
-- for d in inc_dirs:
-- f = os.path.join(d, "db.h")
-+ bdb_type = os.environ['PY_BDB_TYPE']
-+ db_incs = [os.environ['PY_BDB_INCDIRS']]
-+ dblib_dir = None
-+ dblibs = None
-+
-+ # check if need to use the db_185.h compat header
-+ bsddb185_define_macros=[]
-+ if bdb_type == "db2" or bdb_type == "db3" or bdb_type == "db4":
-+ bsddb185_define_macros=[('HAVE_DB_185_H',1)]
-+ dblib_dir = [os.environ['PY_BDB_LIBDIRS']]
-+
-+ else:
-+ # check if db_incs/db.h really is db 1.85
-+ f = "%s/db.h" % db_incs[0]
-+
- if os.path.exists(f):
-- f = open(f).read()
-- m = re.search(r"#define\WDB_VERSION_MAJOR\W([1-9]+)", f)
-- if m:
-- std_dbinc = 'db' + m.group(1)
-- for dbkey in db_search_order:
-- dbd = db_try_this[dbkey]
-- for dblib in dbd['libs']:
-- # Prefer version-specific includes over standard
-- # include locations.
-- db_incs = find_file('db.h', [], dbd['incdirs'])
-- dblib_dir = find_library_file(self.compiler,
-- dblib,
-- lib_dirs,
-- list(dbd['libdirs']))
-- if (db_incs or dbkey == std_dbinc) and \
-- dblib_dir is not None:
-- dblibs = [dblib]
-- raise found
-- except found:
-- dblibs = [dblib]
-- # A default source build puts Berkeley DB in something like
-- # /usr/local/Berkeley.3.3 and the lib dir under that isn't
-- # normally on ld.so's search path, unless the sysadmin has hacked
-- # /etc/ld.so.conf. We add the directory to runtime_library_dirs
-- # so the proper -R/--rpath flags get passed to the linker. This
-- # is usually correct and most trouble free, but may cause problems
-- # in some unusual system configurations (e.g. the directory is on
-- # an NFS server that goes away).
-- exts.append(Extension('_bsddb', ['_bsddb.c'],
-+ data = open(f).read()
-+ m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
-+ if m is None:
-+ # check for 1.85 compat header
-+ if os.path.exists("%s/db_185.h" % db_incs[0]):
-+ bsddb185_define_macros=[('HAVE_DB_185_H',1)]
-+ else:
-+ raise NotFound
-+ try:
-+ bltransform = os.environ['PY_BDB_TRANSFORM']
-+ m = re.search(r"l:db:(db.)\s*", bltransform)
-+ if m is not None and m.group(1) is not None:
-+ dblibs = [m.group(1)]
-+ except:
-+ pass
-+
-+ # build the bsddb185 extension module
-+ exts.append(Extension('bsddb185', ['bsddbmodule.c'],
- library_dirs=dblib_dir,
- runtime_library_dirs=dblib_dir,
- include_dirs=db_incs,
-+ define_macros=bsddb185_define_macros,
- libraries=dblibs))
-- else:
-+ except:
- db_incs = None
- dblibs = []
-- dblib_dir = None
--
--
-- # Look for Berkeley db 1.85. Note that it is built as a different
-- # module name so it can be included even when later versions are
-- # available. A very restrictive search is performed to avoid
-- # accidentally building this module with a later version of the
-- # underlying db library. May BSD-ish Unixes incorporate db 1.85
-- # symbols into libc and place the include file in /usr/include.
-- f = "/usr/include/db.h"
-- if os.path.exists(f):
-- data = open(f).read()
-- m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
-- if m is not None:
-- # bingo - old version used hash file format version 2
-- ### XXX this should be fixed to not be platform-dependent
-- ### but I don't have direct access to an osf1 platform and
-- ### seemed to be muffing the search somehow
-- libraries = platform == "osf1" and ['db'] or None
-- if libraries is not None:
-- exts.append(Extension('bsddb185', ['bsddbmodule.c'],
-- libraries=libraries))
-- else:
-- exts.append(Extension('bsddb185', ['bsddbmodule.c']))
--
-+ dblib_dir = None
-+
- # The standard Unix dbm module:
- if platform not in ['cygwin']:
- if find_file("ndbm.h", inc_dirs, []) is not None:
-@@ -600,6 +648,13 @@ class PyBuildExt(build_ext):
- exts.append( Extension('dbm', ['dbmmodule.c'],
- define_macros=[('HAVE_NDBM_H',None)],
- libraries = ndbm_libs ) )
-+ elif find_file("ndbm.h", db_incs, []) is not None:
-+ exts.append( Extension('dbm', ['dbmmodule.c'],
-+ library_dirs=dblib_dir,
-+ runtime_library_dirs=dblib_dir,
-+ include_dirs=db_incs,
-+ define_macros=[('HAVE_NDBM_H',None)],
-+ libraries=dblibs))
- elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
- and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
- exts.append( Extension('dbm', ['dbmmodule.c'],
-@@ -770,7 +825,7 @@ class PyBuildExt(build_ext):
- # Linux-specific modules
- exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
-
-- if platform in ('linux2', 'freebsd4'):
-+ if platform in ('linux2', 'freebsd4', 'freebsd5'):
- exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
-
- if platform == 'sunos5':
-@@ -1140,7 +1195,7 @@ def main():
- ext_modules=[Extension('struct', ['structmodule.c'])],
-
- # Scripts to install
-- scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle']
-+ scripts = ['Tools/scripts/pydoc2p3']
- )
-
- # --install-platlib
diff --git a/lang/python23-pth/patches/patch-ba b/lang/python23-pth/patches/patch-ba
deleted file mode 100644
index c9e18e47ed2..00000000000
--- a/lang/python23-pth/patches/patch-ba
+++ /dev/null
@@ -1,86 +0,0 @@
-$NetBSD: patch-ba,v 1.3 2004/04/09 23:10:36 recht Exp $
-
---- Modules/_cursesmodule.c.orig 2002-11-21 15:17:51.000000000 +0100
-+++ Modules/_cursesmodule.c 2004-04-09 12:45:06.000000000 +0200
-@@ -313,17 +313,9 @@
- Window_OneArgNoReturnFunction(wattrset, attr_t, "l;attr")
- Window_OneArgNoReturnFunction(clearok, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(idlok, int, "i;True(1) or False(0)")
--#if defined(__NetBSD__)
--Window_OneArgNoReturnVoidFunction(keypad, int, "i;True(1) or False(0)")
--#else
- Window_OneArgNoReturnFunction(keypad, int, "i;True(1) or False(0)")
--#endif
- Window_OneArgNoReturnFunction(leaveok, int, "i;True(1) or False(0)")
--#if defined(__NetBSD__)
--Window_OneArgNoReturnVoidFunction(nodelay, int, "i;True(1) or False(0)")
--#else
- Window_OneArgNoReturnFunction(nodelay, int, "i;True(1) or False(0)")
--#endif
- Window_OneArgNoReturnFunction(notimeout, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(scrollok, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(winsdelln, int, "i;nlines")
-@@ -784,11 +776,7 @@
- } else if (rtn<=255)
- return Py_BuildValue("c", rtn);
- else
--#if defined(__NetBSD__)
-- return PyString_FromString(unctrl(rtn));
--#else
- return PyString_FromString((char *)keyname(rtn));
--#endif
- }
-
- static PyObject *
-@@ -1946,7 +1934,6 @@
- return PyCursesCheckERR(intrflush(NULL,ch), "intrflush");
- }
-
--#if !defined(__NetBSD__)
- static PyObject *
- PyCurses_KeyName(PyObject *self, PyObject *args)
- {
-@@ -1965,7 +1952,6 @@
-
- return PyString_FromString((knp == NULL) ? "" : (char *)knp);
- }
--#endif
-
- static PyObject *
- PyCurses_KillChar(PyObject *self)
-@@ -2392,9 +2378,7 @@
- {"initscr", (PyCFunction)PyCurses_InitScr, METH_NOARGS},
- {"intrflush", (PyCFunction)PyCurses_IntrFlush, METH_VARARGS},
- {"isendwin", (PyCFunction)PyCurses_isendwin, METH_NOARGS},
--#if !defined(__NetBSD__)
- {"keyname", (PyCFunction)PyCurses_KeyName, METH_VARARGS},
--#endif
- {"killchar", (PyCFunction)PyCurses_KillChar, METH_NOARGS},
- {"longname", (PyCFunction)PyCurses_longname, METH_NOARGS},
- {"meta", (PyCFunction)PyCurses_Meta, METH_VARARGS},
-@@ -2490,9 +2474,7 @@
- SetDictInt("A_DIM", A_DIM);
- SetDictInt("A_BOLD", A_BOLD);
- SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
--#if !defined(__NetBSD__)
- SetDictInt("A_INVIS", A_INVIS);
--#endif
- SetDictInt("A_PROTECT", A_PROTECT);
- SetDictInt("A_CHARTEXT", A_CHARTEXT);
- SetDictInt("A_COLOR", A_COLOR);
-@@ -2564,7 +2546,6 @@
- int key;
- char *key_n;
- char *key_n2;
--#if !defined(__NetBSD__)
- for (key=KEY_MIN;key < KEY_MAX; key++) {
- key_n = (char *)keyname(key);
- if (key_n == NULL || strcmp(key_n,"UNKNOWN KEY")==0)
-@@ -2588,7 +2569,6 @@
- if (key_n2 != key_n)
- free(key_n2);
- }
--#endif
- SetDictInt("KEY_MIN", KEY_MIN);
- SetDictInt("KEY_MAX", KEY_MAX);
- }
diff --git a/lang/python23-pth/patches/patch-bb b/lang/python23-pth/patches/patch-bb
deleted file mode 100644
index 6f620c14436..00000000000
--- a/lang/python23-pth/patches/patch-bb
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-bb,v 1.3 2004/06/10 10:13:06 recht Exp $
-
---- Lib/posixfile.py.orig 2004-06-07 16:19:35.000000000 +0200
-+++ Lib/posixfile.py
-@@ -182,11 +182,11 @@ class _posixfile_:
- # Hack by davem@magnet.com to get locking to go on freebsd;
- # additions for AIX by Vladimir.Marangozov@imag.fr
- import sys, os
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2',
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
-- flock = struct.pack('lxxxxlxxxxlhh', \
-+ flock = struct.pack('qqihh', \
- l_start, l_len, os.getpid(), l_type, l_whence)
- elif sys.platform in ['aix3', 'aix4']:
- flock = struct.pack('hhlllii', \
-@@ -198,12 +198,12 @@ class _posixfile_:
- flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
-
- if '?' in how:
-- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2'
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
- l_start, l_len, l_pid, l_type, l_whence = \
-- struct.unpack('lxxxxlxxxxlhh', flock)
-+ struct.unpack('qqihh', flock)
- elif sys.platform in ['aix3', 'aix4']:
- l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
- struct.unpack('hhlllii', flock)
-
diff --git a/lang/python23-pth/patches/patch-ca b/lang/python23-pth/patches/patch-ca
deleted file mode 100644
index 337d046d66c..00000000000
--- a/lang/python23-pth/patches/patch-ca
+++ /dev/null
@@ -1,54 +0,0 @@
-$NetBSD: patch-ca,v 1.1 2004/06/14 02:31:13 lukem Exp $
-
---- Python/pythonrun.c.orig 2004-03-23 07:41:47.000000000 +1100
-+++ Python/pythonrun.c
-@@ -1581,13 +1581,13 @@ initsigs(void)
- {
- #ifdef HAVE_SIGNAL_H
- #ifdef SIGPIPE
-- signal(SIGPIPE, SIG_IGN);
-+ PyOS_setsig(SIGPIPE, SIG_IGN);
- #endif
- #ifdef SIGXFZ
-- signal(SIGXFZ, SIG_IGN);
-+ PyOS_setsig(SIGXFZ, SIG_IGN);
- #endif
- #ifdef SIGXFSZ
-- signal(SIGXFSZ, SIG_IGN);
-+ PyOS_setsig(SIGXFSZ, SIG_IGN);
- #endif
- #endif /* HAVE_SIGNAL_H */
- PyOS_InitInterrupts(); /* May imply initsignal() */
-@@ -1684,20 +1684,19 @@ PyOS_sighandler_t
- PyOS_setsig(int sig, PyOS_sighandler_t handler)
- {
- #ifdef HAVE_SIGACTION
-- struct sigaction context;
-- PyOS_sighandler_t oldhandler;
-- /* Initialize context.sa_handler to SIG_ERR which makes about as
-- * much sense as anything else. It should get overwritten if
-- * sigaction actually succeeds and otherwise we avoid an
-- * uninitialized memory read.
-- */
-- context.sa_handler = SIG_ERR;
-- sigaction(sig, NULL, &context);
-- oldhandler = context.sa_handler;
-+ struct sigaction context, ocontext;
- context.sa_handler = handler;
-- sigaction(sig, &context, NULL);
-- return oldhandler;
-+ sigemptyset(&context.sa_mask);
-+ context.sa_flags = 0;
-+ if (sigaction(sig, &context, &ocontext) == -1)
-+ return SIG_ERR;
-+ return ocontext.sa_handler;
- #else
-- return signal(sig, handler);
-+ PyOS_sighandler_t oldhandler;
-+ oldhandler = signal(sig, handler);
-+#ifdef HAVE_SIGINTERRUPT
-+ siginterrupt(sig, 1);
-+#endif
-+ return oldhandler;
- #endif
- }
diff --git a/lang/python23-pth/patches/patch-cb b/lang/python23-pth/patches/patch-cb
deleted file mode 100644
index 53944cda97e..00000000000
--- a/lang/python23-pth/patches/patch-cb
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-cb,v 1.1 2004/06/14 02:31:13 lukem Exp $
-
---- Modules/signalmodule.c.orig 2003-03-14 00:56:53.000000000 +1100
-+++ Modules/signalmodule.c
-@@ -137,9 +137,6 @@ signal_handler(int sig_num)
- return;
- }
- #endif
--#ifdef HAVE_SIGINTERRUPT
-- siginterrupt(sig_num, 1);
--#endif
- PyOS_setsig(sig_num, signal_handler);
- }
-
-@@ -217,9 +214,6 @@ signal_signal(PyObject *self, PyObject *
- }
- else
- func = signal_handler;
--#ifdef HAVE_SIGINTERRUPT
-- siginterrupt(sig_num, 1);
--#endif
- if (PyOS_setsig(sig_num, func) == SIG_ERR) {
- PyErr_SetFromErrno(PyExc_RuntimeError);
- return NULL;
diff --git a/lang/python23-pth/patches/patch-da b/lang/python23-pth/patches/patch-da
deleted file mode 100644
index a94d625a5b5..00000000000
--- a/lang/python23-pth/patches/patch-da
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-da,v 1.1 2004/11/28 13:33:20 recht Exp $
-
---- Misc/setuid-prog.c.orig Thu Nov 25 13:11:28 2004
-+++ Misc/setuid-prog.c Thu Nov 25 13:11:27 2004
-@@ -70,6 +70,12 @@
- #define environ _environ
- #endif
-
-+#if defined(__APPLE__)
-+# include <sys/time.h>
-+# include <crt_externs.h>
-+# define environ (*_NSGetEnviron())
-+#endif /* __APPLE__ */
-+
- /* don't change def_IFS */
- char def_IFS[] = "IFS= \t\n";
- /* you may want to change def_PATH, but you should really change it in */
diff --git a/lang/python23-pth/patches/patch-db b/lang/python23-pth/patches/patch-db
deleted file mode 100644
index c5e271cafaa..00000000000
--- a/lang/python23-pth/patches/patch-db
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-db,v 1.1 2004/11/28 13:33:20 recht Exp $
-
---- Modules/getpath.c.orig Thu Nov 11 18:08:55 2004
-+++ Modules/getpath.c Thu Nov 11 18:10:13 2004
-@@ -374,6 +374,9 @@
- #ifdef WITH_NEXT_FRAMEWORK
- NSModule pythonModule;
- #endif
-+#ifdef __APPLE__
-+ unsigned long nsexeclength = MAXPATHLEN;
-+#endif
-
- /* If there is no slash in the argv0 path, then we have to
- * assume python is on the user's $PATH, since there's no
-@@ -382,6 +385,20 @@
- */
- if (strchr(prog, SEP))
- strncpy(progpath, prog, MAXPATHLEN);
-+#ifdef __APPLE__
-+ /* On Mac OS X, if a script uses an interpreter of the form
-+ * "#!/opt/python2.3/bin/python", the kernel only passes "python"
-+ * as argv[0], which falls through to the $PATH search below.
-+ * If /opt/python2.3/bin isn't in your path, or is near the end,
-+ * this algorithm may incorrectly find /usr/bin/python. To work
-+ * around this, we can use _NSGetExecutablePath to get a better
-+ * hint of what the intended interpreter was, although this
-+ * will fail if a relative path was used. but in that case,
-+ * absolutize() should help us out below
-+ */
-+ else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP)
-+ ;
-+#endif // __APPLE__
- else if (path) {
- while (1) {
- char *delim = strchr(path, DELIM);
diff --git a/lang/python23-pth/patches/patch-dc b/lang/python23-pth/patches/patch-dc
deleted file mode 100644
index 077ed6d0587..00000000000
--- a/lang/python23-pth/patches/patch-dc
+++ /dev/null
@@ -1,20 +0,0 @@
---- Modules/posixmodule.c.orig Thu Nov 25 12:56:28 2004
-+++ Modules/posixmodule.c Thu Nov 25 12:57:24 2004
-@@ -304,7 +304,7 @@
- #endif
-
- /* Return a dictionary corresponding to the POSIX environment table */
--#ifdef WITH_NEXT_FRAMEWORK
-+#ifdef __APPLE__
- /* On Darwin/MacOSX a shared library or framework has no access to
- ** environ directly, we must obtain it with _NSGetEnviron().
- */
-@@ -322,7 +322,7 @@
- d = PyDict_New();
- if (d == NULL)
- return NULL;
--#ifdef WITH_NEXT_FRAMEWORK
-+#ifdef __APPLE__
- if (environ == NULL)
- environ = *_NSGetEnviron();
- #endif
diff --git a/lang/python23/Makefile b/lang/python23/Makefile
index 6de96e73963..caea29fbacf 100644
--- a/lang/python23/Makefile
+++ b/lang/python23/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2004/06/15 14:26:34 grant Exp $
+# $NetBSD: Makefile,v 1.23 2005/01/23 20:41:47 recht Exp $
#
PKGNAME= python23-2.3.4
+PKGREVISION= 4
#PKG_INSTALLATION_TYPES= overwrite pkgviews
diff --git a/lang/python23/Makefile.common b/lang/python23/Makefile.common
index a0535beaf8e..ca5ddf51827 100644
--- a/lang/python23/Makefile.common
+++ b/lang/python23/Makefile.common
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile.common,v 1.23 2005/01/21 02:01:37 tv Exp $
+# $NetBSD: Makefile.common,v 1.24 2005/01/23 20:41:47 recht Exp $
#
DISTNAME= Python-2.3.4
-PKGREVISION= 3
CATEGORIES= lang python
MASTER_SITES= ftp://ftp.python.org/pub/python/2.3.4/
EXTRACT_SUFX= .tgz
diff --git a/lang/python24-pth/Makefile b/lang/python24-pth/Makefile
index d28f4f3f165..f3f5992749a 100644
--- a/lang/python24-pth/Makefile
+++ b/lang/python24-pth/Makefile
@@ -1,14 +1,25 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/12/05 23:28:53 recht Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:48 recht Exp $
#
+DISTNAME= Python-2.4
PKGNAME= python24-pth-2.4
+CATEGORIES= lang python
+MASTER_SITES= # empty
+DISTFILES= # empty
-PTHREAD_OPTS= require
-.include "../../mk/pthread.buildlink3.mk"
-.if ${PTHREAD_TYPE} == "pth"
-CONFIGURE_ARGS+= --with-pth
-.endif
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
-PY_VER_SUFFIX= 2p4
+DEPENDS+= python24>=2.4:../../lang/python24
-.include "../../lang/python24/Makefile.common"
+EXTRACT_ONLY= # empty
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+NO_BUILDLINK= yes
+NO_MTREE= yes
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python24-pth/PLIST b/lang/python24-pth/PLIST
new file mode 100644
index 00000000000..d39e6c8a9ff
--- /dev/null
+++ b/lang/python24-pth/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2005/01/23 20:41:48 recht Exp $
+@comment this plist intentionally left empty
diff --git a/lang/python24-pth/buildlink3.mk b/lang/python24-pth/buildlink3.mk
deleted file mode 100644
index 124600195b4..00000000000
--- a/lang/python24-pth/buildlink3.mk
+++ /dev/null
@@ -1,27 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/12/05 23:28:53 recht Exp $
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-PYTHON24_PTH_BUILDLINK3_MK:= ${PYTHON24_PTH_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= python24-pth
-.endif
-
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython24-pth}
-BUILDLINK_PACKAGES+= python24-pth
-
-.if !empty(PYTHON24_PTH_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.python24-pth+= python24-pth>=2.4
-BUILDLINK_PKGSRCDIR.python24-pth?= ../../lang/python24-pth
-
-.if defined(BUILDLINK_DEPMETHOD.python)
-BUILDLINK_DEPMETHOD.python24pth?= ${BUILDLINK_DEPMETHOD.python}
-.endif
-
-BUILDLINK_INCDIRS.python24-pth+= include/python2p4
-BUILDLINK_LIBDIRS.python24-pth+= lib/python2p4/config
-BUILDLINK_TRANSFORM+= l:python:python2p4
-
-.endif # PYTHON24_PTH_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/lang/python24-pth/distinfo b/lang/python24-pth/distinfo
deleted file mode 100644
index b6b813d9004..00000000000
--- a/lang/python24-pth/distinfo
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: distinfo,v 1.2 2004/12/30 21:56:21 minskim Exp $
-
-SHA1 (Python-2.4.tar.bz2) = 80c06f491a4b2a629e868540150faf22c5d0e41e
-Size (Python-2.4.tar.bz2) = 7840762 bytes
-SHA1 (patch-aa) = 310309e6778fd809b7758efa8db7333ed498e5e5
-SHA1 (patch-ab) = 5402e5b8f0c8e919fdf5c2c4baab0423eb74ada5
-SHA1 (patch-ac) = 97d2dcbc93986dc13d7866025269ae5f15827a24
-SHA1 (patch-ad) = 0fa1c66fa0ad9ce345c44b13fd3897975837c72e
-SHA1 (patch-ae) = 7232b64cc3d201daf0bc00476eb58aa694a6df2a
-SHA1 (patch-af) = 82486cc06585a05a0151b3508e5bbcb3c7281681
-SHA1 (patch-ag) = 0cdc08af9d37ae7d00a06ab81c30efa021ef28ac
-SHA1 (patch-ah) = 6f5cff1f9f2482c59ef442bf019a1f3ad9fe21e8
-SHA1 (patch-ai) = 6435c5a7269c14d94eab6fb9777b9d059507e7b8
-SHA1 (patch-aj) = e471737ade95423039661b475f2dd0fc27aa9dac
-SHA1 (patch-ak) = f2e1d4087a94490bd3589a8c829ec72e04f31f72
-SHA1 (patch-al) = 1a48a02ea72b99b4f942abc6c91ceab8fc2ba879
-SHA1 (patch-am) = ecb78cf1097531447af7b7fd60166b84b8aef1b4
-SHA1 (patch-ba) = d0f9d225bd3de0a7af098fef05d5b09f8319ce7f
diff --git a/lang/python24-pth/patches/patch-aa b/lang/python24-pth/patches/patch-aa
deleted file mode 100644
index 60297492da1..00000000000
--- a/lang/python24-pth/patches/patch-aa
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
-
---- Include/py_curses.h.orig Sun Jun 29 17:46:21 2003
-+++ Include/py_curses.h
-@@ -39,6 +39,21 @@
- #endif
- #endif
-
-+#ifdef __NetBSD__
-+/*
-+** On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
-+** against multiple definition of wchar_t and wint_t.
-+*/
-+#ifdef _XOPEN_SOURCE_EXTENDED
-+#ifndef _WCHAR_T
-+#define _WCHAR_T
-+#endif
-+#ifndef _WINT_T
-+#define _WINT_T
-+#endif
-+#endif
-+#endif
-+
- #ifdef HAVE_NCURSES_H
- #include <ncurses.h>
- #else
diff --git a/lang/python24-pth/patches/patch-ab b/lang/python24-pth/patches/patch-ab
deleted file mode 100644
index fac547c7a0a..00000000000
--- a/lang/python24-pth/patches/patch-ab
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Lib/distutils/command/build_ext.py.orig Sun Dec 5 22:03:11 2004
-+++ Lib/distutils/command/build_ext.py Sun Dec 5 22:03:25 2004
-@@ -485,7 +485,17 @@
- # that go into the mix.
- if ext.extra_objects:
- objects.extend(ext.extra_objects)
-+
-+ # Two possible sources for extra linker arguments:
-+ # - 'extra_link_args' in Extension object
-+ # - LDFLAGS environment variable
-+ # The environment variable should take precedence, and
-+ # any sensible compiler will give precedence to later
-+ # command line args. Hence we combine them in order:
- extra_args = ext.extra_link_args or []
-+
-+ if os.environ.has_key('LDFLAGS'):
-+ extra_args.extend(string.split(os.environ['LDFLAGS']))
-
- # Detect target language, if not provided
- language = ext.language or self.compiler.detect_language(sources)
diff --git a/lang/python24-pth/patches/patch-ac b/lang/python24-pth/patches/patch-ac
deleted file mode 100644
index 0ced298bca6..00000000000
--- a/lang/python24-pth/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Lib/distutils/command/build_scripts.py.orig Sun Dec 5 22:05:11 2004
-+++ Lib/distutils/command/build_scripts.py Sun Dec 5 22:05:34 2004
-@@ -104,7 +104,7 @@
- outf.write("#!%s%s\n" %
- (os.path.join(
- sysconfig.get_config_var("BINDIR"),
-- "python" + sysconfig.get_config_var("EXE")),
-+ "python%s" % sys.version[:3] + sysconfig.get_config_var("EXE")),
- post_interp))
- outf.writelines(f.readlines())
- outf.close()
diff --git a/lang/python24-pth/patches/patch-ad b/lang/python24-pth/patches/patch-ad
deleted file mode 100644
index a0a3e49d2fc..00000000000
--- a/lang/python24-pth/patches/patch-ad
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Lib/posixfile.py.orig Wed Aug 18 17:13:40 2004
-+++ Lib/posixfile.py
-@@ -183,10 +183,11 @@ class _posixfile_:
- # additions for AIX by Vladimir.Marangozov@imag.fr
- import sys, os
- if sys.platform in ('netbsd1',
-+ 'netbsd2',
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'freebsd6', 'bsdos2', 'bsdos3', 'bsdos4'):
-- flock = struct.pack('lxxxxlxxxxlhh', \
-+ flock = struct.pack('qqihh', \
- l_start, l_len, os.getpid(), l_type, l_whence)
- elif sys.platform in ['aix3', 'aix4']:
- flock = struct.pack('hhlllii', \
-@@ -199,11 +200,12 @@ class _posixfile_:
-
- if '?' in how:
- if sys.platform in ('netbsd1',
-+ 'netbsd2',
- 'openbsd2',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
- 'bsdos2', 'bsdos3', 'bsdos4'):
- l_start, l_len, l_pid, l_type, l_whence = \
-- struct.unpack('lxxxxlxxxxlhh', flock)
-+ struct.unpack('qqihh', flock)
- elif sys.platform in ['aix3', 'aix4']:
- l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
- struct.unpack('hhlllii', flock)
diff --git a/lang/python24-pth/patches/patch-ae b/lang/python24-pth/patches/patch-ae
deleted file mode 100644
index 8e1b8158598..00000000000
--- a/lang/python24-pth/patches/patch-ae
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-ae,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Lib/test/test_fcntl.py.orig Wed Aug 18 17:13:41 2004
-+++ Lib/test/test_fcntl.py
-@@ -20,11 +20,11 @@ else:
- if sys.platform.startswith('atheos'):
- start_len = "qq"
-
--if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin',
-+if sys.platform in ('netbsd1', 'netbsd2', 'Darwin1.2', 'darwin',
- 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5', 'freebsd6',
- 'bsdos2', 'bsdos3', 'bsdos4',
- 'openbsd', 'openbsd2', 'openbsd3'):
-- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0)
-+ lockdata = struct.pack('qqihh', 0, 0, 0, fcntl.F_WRLCK, 0)
- elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
- lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
- elif sys.platform in ['os2emx']:
diff --git a/lang/python24-pth/patches/patch-af b/lang/python24-pth/patches/patch-af
deleted file mode 100644
index e28d9d285ee..00000000000
--- a/lang/python24-pth/patches/patch-af
+++ /dev/null
@@ -1,46 +0,0 @@
-$NetBSD: patch-af,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Makefile.pre.in.orig Sun Sep 26 19:26:55 2004
-+++ Makefile.pre.in
-@@ -56,7 +56,7 @@ MAKESETUP= $(srcdir)/Modules/makese
- OPT= @OPT@
- BASECFLAGS= @BASECFLAGS@
- CFLAGS= $(BASECFLAGS) $(OPT)
--CPPFLAGS= -I. -I$(srcdir)/Include
-+CPPFLAGS+= @CPPFLAGS@ -I. -I$(srcdir)/Include
- LDFLAGS= @LDFLAGS@
- LDLAST= @LDLAST@
- SGI_ABI= @SGI_ABI@
-@@ -311,7 +311,7 @@ all: $(BUILDPYTHON) oldsharedmods share
- $(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
- $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
- Modules/$(MAINOBJ) \
-- $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
-+ $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) ${LINK_ALL_LIBGCC_HACK}
-
- platform: $(BUILDPYTHON)
- $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-@@ -360,6 +360,9 @@ libpython$(VERSION).so: $(LIBRARY_OBJS)
- libpython$(VERSION).sl: $(LIBRARY_OBJS)
- $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
-
-+libpython$(VERSION).dylib: $(LIBRARY_OBJS)
-+ $(LINKCC) -dynamiclib -install_name $(LIBDIR)/$@ -current_version 2.4.0 -compatibility_version 2.4 -o $@ -flat_namespace -undefined suppress $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
-+
- # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
- # minimal framework (not including the Lib directory and such) in the current
- # directory.
-@@ -625,7 +628,12 @@ altbininstall: $(BUILDPYTHON)
- (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
- fi \
- fi; \
-- else true; \
-+ else \
-+ if test -f libpython$(VERSION).dylib; then \
-+ $(INSTALL_SHARED) libpython$(VERSION).dylib $(DESTDIR)$(LIBDIR)/libpython$(VERSION).dylib; \
-+ else \
-+ true; \
-+ fi \
- fi
-
- # Install the manual page
diff --git a/lang/python24-pth/patches/patch-ag b/lang/python24-pth/patches/patch-ag
deleted file mode 100644
index 22ee67215b5..00000000000
--- a/lang/python24-pth/patches/patch-ag
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ag,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- Misc/setuid-prog.c.orig Thu Sep 10 22:18:09 1998
-+++ Misc/setuid-prog.c
-@@ -70,6 +70,12 @@
- #define environ _environ
- #endif
-
-+#if defined(__APPLE__)
-+# include <sys/time.h>
-+# include <crt_externs.h>
-+# define environ (*_NSGetEnviron())
-+#endif /* __APPLE__ */
-+
- /* don't change def_IFS */
- char def_IFS[] = "IFS= \t\n";
- /* you may want to change def_PATH, but you should really change it in */
diff --git a/lang/python24-pth/patches/patch-ah b/lang/python24-pth/patches/patch-ah
deleted file mode 100644
index e045acdf3ae..00000000000
--- a/lang/python24-pth/patches/patch-ah
+++ /dev/null
@@ -1,86 +0,0 @@
-$NetBSD: patch-ah,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
-
---- Modules/_cursesmodule.c.orig Wed Aug 4 16:33:28 2004
-+++ Modules/_cursesmodule.c
-@@ -313,17 +313,9 @@ Window_OneArgNoReturnFunction(wattroff,
- Window_OneArgNoReturnFunction(wattrset, attr_t, "l;attr")
- Window_OneArgNoReturnFunction(clearok, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(idlok, int, "i;True(1) or False(0)")
--#if defined(__NetBSD__)
--Window_OneArgNoReturnVoidFunction(keypad, int, "i;True(1) or False(0)")
--#else
- Window_OneArgNoReturnFunction(keypad, int, "i;True(1) or False(0)")
--#endif
- Window_OneArgNoReturnFunction(leaveok, int, "i;True(1) or False(0)")
--#if defined(__NetBSD__)
--Window_OneArgNoReturnVoidFunction(nodelay, int, "i;True(1) or False(0)")
--#else
- Window_OneArgNoReturnFunction(nodelay, int, "i;True(1) or False(0)")
--#endif
- Window_OneArgNoReturnFunction(notimeout, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(scrollok, int, "i;True(1) or False(0)")
- Window_OneArgNoReturnFunction(winsdelln, int, "i;nlines")
-@@ -784,11 +776,7 @@ PyCursesWindow_GetKey(PyCursesWindowObje
- } else if (rtn<=255)
- return Py_BuildValue("c", rtn);
- else
--#if defined(__NetBSD__)
-- return PyString_FromString(unctrl(rtn));
--#else
- return PyString_FromString((char *)keyname(rtn));
--#endif
- }
-
- static PyObject *
-@@ -1946,7 +1934,6 @@ PyCurses_IntrFlush(PyObject *self, PyObj
- return PyCursesCheckERR(intrflush(NULL,ch), "intrflush");
- }
-
--#if !defined(__NetBSD__)
- static PyObject *
- PyCurses_KeyName(PyObject *self, PyObject *args)
- {
-@@ -1965,7 +1952,6 @@ PyCurses_KeyName(PyObject *self, PyObjec
-
- return PyString_FromString((knp == NULL) ? "" : (char *)knp);
- }
--#endif
-
- static PyObject *
- PyCurses_KillChar(PyObject *self)
-@@ -2410,9 +2396,7 @@ static PyMethodDef PyCurses_methods[] =
- {"initscr", (PyCFunction)PyCurses_InitScr, METH_NOARGS},
- {"intrflush", (PyCFunction)PyCurses_IntrFlush, METH_VARARGS},
- {"isendwin", (PyCFunction)PyCurses_isendwin, METH_NOARGS},
--#if !defined(__NetBSD__)
- {"keyname", (PyCFunction)PyCurses_KeyName, METH_VARARGS},
--#endif
- {"killchar", (PyCFunction)PyCurses_KillChar, METH_NOARGS},
- {"longname", (PyCFunction)PyCurses_longname, METH_NOARGS},
- {"meta", (PyCFunction)PyCurses_Meta, METH_VARARGS},
-@@ -2511,9 +2495,7 @@ init_curses(void)
- SetDictInt("A_DIM", A_DIM);
- SetDictInt("A_BOLD", A_BOLD);
- SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
--#if !defined(__NetBSD__)
- SetDictInt("A_INVIS", A_INVIS);
--#endif
- SetDictInt("A_PROTECT", A_PROTECT);
- SetDictInt("A_CHARTEXT", A_CHARTEXT);
- SetDictInt("A_COLOR", A_COLOR);
-@@ -2585,7 +2567,6 @@ init_curses(void)
- int key;
- char *key_n;
- char *key_n2;
--#if !defined(__NetBSD__)
- for (key=KEY_MIN;key < KEY_MAX; key++) {
- key_n = (char *)keyname(key);
- if (key_n == NULL || strcmp(key_n,"UNKNOWN KEY")==0)
-@@ -2609,7 +2590,6 @@ init_curses(void)
- if (key_n2 != key_n)
- free(key_n2);
- }
--#endif
- SetDictInt("KEY_MIN", KEY_MIN);
- SetDictInt("KEY_MAX", KEY_MAX);
- }
diff --git a/lang/python24-pth/patches/patch-ai b/lang/python24-pth/patches/patch-ai
deleted file mode 100644
index 80d527eba1f..00000000000
--- a/lang/python24-pth/patches/patch-ai
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ai,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
-
---- Modules/_ssl.c.orig Wed Aug 4 16:59:00 2004
-+++ Modules/_ssl.c
-@@ -7,6 +7,10 @@
-
- */
-
-+#ifdef __sgi
-+#include <sys/types.h>
-+#endif
-+
- #include "Python.h"
- enum py_ssl_error {
- /* these mirror ssl.h */
diff --git a/lang/python24-pth/patches/patch-aj b/lang/python24-pth/patches/patch-aj
deleted file mode 100644
index 0c3c330c0da..00000000000
--- a/lang/python24-pth/patches/patch-aj
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-aj,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
-
---- Modules/bsddbmodule.c.orig Tue May 6 22:38:52 2003
-+++ Modules/bsddbmodule.c
-@@ -13,6 +13,10 @@
- www.nightmare.com/software.html
- */
-
-+#if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
-+#define _BSD_TYPES
-+#endif
-+
- #include "Python.h"
- #ifdef WITH_THREAD
- #include "pythread.h"
diff --git a/lang/python24-pth/patches/patch-ak b/lang/python24-pth/patches/patch-ak
deleted file mode 100644
index 082add7a4de..00000000000
--- a/lang/python24-pth/patches/patch-ak
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ak,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
-
---- Modules/posixmodule.c.orig Wed Oct 13 17:30:56 2004
-+++ Modules/posixmodule.c
-@@ -298,7 +298,7 @@ extern int lstat(const char *, struct st
- #endif
-
- /* Return a dictionary corresponding to the POSIX environment table */
--#ifdef WITH_NEXT_FRAMEWORK
-+#ifdef __APPLE__
- /* On Darwin/MacOSX a shared library or framework has no access to
- ** environ directly, we must obtain it with _NSGetEnviron().
- */
-@@ -316,7 +316,7 @@ convertenviron(void)
- d = PyDict_New();
- if (d == NULL)
- return NULL;
--#ifdef WITH_NEXT_FRAMEWORK
-+#ifdef __APPLE__
- if (environ == NULL)
- environ = *_NSGetEnviron();
- #endif
diff --git a/lang/python24-pth/patches/patch-al b/lang/python24-pth/patches/patch-al
deleted file mode 100644
index de8abeaeea3..00000000000
--- a/lang/python24-pth/patches/patch-al
+++ /dev/null
@@ -1,95 +0,0 @@
-$NetBSD: patch-al,v 1.2 2004/12/30 21:56:21 minskim Exp $
-
---- configure.orig 2004-11-06 19:24:12.000000000 -0600
-+++ configure
-@@ -1349,7 +1349,7 @@ rm confdefs.h
- mv confdefs.h.new confdefs.h
-
-
--VERSION=2.4
-+VERSION=2p4
-
-
- SOVERSION=1.0
-@@ -1479,6 +1479,8 @@ case $ac_sys_system/$ac_sys_release in
- # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
- OpenBSD/2.* | OpenBSD/3.[0123456])
- define_xopen_source=no;;
-+ NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
-+ define_xopen_source=no;;
- # On Solaris 2.6, sys/wait.h is inconsistent in the usage
- # of union __?sigval. Reported by Stuart Bishop.
- SunOS/5.6)
-@@ -3418,6 +3420,14 @@ _ACEOF
- BLDLIBRARY='-L. -lpython$(VERSION)'
- RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
- ;;
-+ Darwin*)
-+ if test -z "$enable_framework"; then
-+ LDLIBRARY='libpython$(VERSION).dylib'
-+ BLDLIBRARY='-L. -lpython$(VERSION)'
-+ RUNSHARED=DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}
-+ fi
-+ ;;
-+
- esac
- else # shared is disabled
- case $ac_sys_system in
-@@ -3816,7 +3826,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
- ;;
- # is there any other compiler on Darwin besides gcc?
- Darwin*)
-- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
-+ if [[ `/usr/bin/arch` = 'ppc' ]]
-+ then
-+ BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common"
-+ else
-+ BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -fno-common"
-+ fi
- ;;
- esac
- ;;
-@@ -10295,7 +10310,7 @@ then
- LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
- else
- # No framework. Ignore undefined symbols, assuming they come from Python
-- LDSHARED="$LDSHARED -undefined suppress"
-+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
- fi ;;
- Darwin/1.4*|Darwin/5.*|Darwin/6.*)
- LDSHARED='$(CC) $(LDFLAGS) -bundle'
-@@ -10305,8 +10320,8 @@ then
- LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
- else
- # No framework, use the Python app as bundle-loader
-- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
-- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
-+ BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)'
-+ LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi ;;
- Darwin/*)
- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
-@@ -10324,12 +10339,12 @@ then
- LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
- else
- # No framework, use the Python app as bundle-loader
-- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
-- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
-+ BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)'
-+ LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi
- fi
- ;;
-- Linux*|GNU*) LDSHARED='$(CC) -shared';;
-+ Linux*|GNU*) LDSHARED='$(CC) -shared ${LDFLAGS}';;
- BSD/OS*/4*) LDSHARED="gcc -shared";;
- OpenBSD*|FreeBSD*)
- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
-@@ -14297,6 +14312,7 @@ cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
-
- #include "confdefs.h"
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
diff --git a/lang/python24-pth/patches/patch-am b/lang/python24-pth/patches/patch-am
deleted file mode 100644
index c2ea5501c66..00000000000
--- a/lang/python24-pth/patches/patch-am
+++ /dev/null
@@ -1,268 +0,0 @@
-$NetBSD: patch-am,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $
-
---- setup.py.orig Sat Nov 13 12:13:34 2004
-+++ setup.py
-@@ -15,7 +15,7 @@ from distutils.command.install import in
- from distutils.command.install_lib import install_lib
-
- # This global variable is used to hold the list of modules to be disabled.
--disabled_module_list = []
-+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_tkinter", "gdbm", "mpz", "pyexpat", "readline"]
-
- def add_dir_to_list(dirlist, dir):
- """Add the directory 'dir' to the list 'dirlist' (at the front) if
-@@ -238,9 +238,15 @@ class PyBuildExt(build_ext):
- return sys.platform
-
- def detect_modules(self):
-- # Ensure that /usr/local is always used
-- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+ # Add the buildlink directories for pkgsrc
-+ if os.environ.has_key('BUILDLINK_DIR'):
-+ dir = os.environ['BUILDLINK_DIR']
-+ libdir = dir + '/lib'
-+ incdir = dir + '/include'
-+ if libdir not in self.compiler.library_dirs:
-+ self.compiler.library_dirs.insert(0, libdir)
-+ if incdir not in self.compiler.include_dirs:
-+ self.compiler.include_dirs.insert(0, incdir)
-
- # Add paths to popular package managers on OS X/darwin
- if sys.platform == "darwin":
-@@ -452,9 +458,7 @@ class PyBuildExt(build_ext):
- depends = ['socketmodule.h']) )
- # Detect SSL support for the socket module (via _ssl)
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
-- ['/usr/local/ssl/include',
-- '/usr/contrib/ssl/include/'
-- ]
-+ []
- )
- if ssl_incs is not None:
- krb5_h = find_file('krb5.h', inc_dirs,
-@@ -462,9 +466,7 @@ class PyBuildExt(build_ext):
- if krb5_h:
- ssl_incs += krb5_h
- ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-- ['/usr/local/ssl/lib',
-- '/usr/contrib/ssl/lib/'
-- ] )
-+ [] )
-
- if (ssl_incs is not None and
- ssl_libs is not None):
-@@ -491,113 +493,90 @@ class PyBuildExt(build_ext):
-
- # when sorted in reverse order, keys for this dict must appear in the
- # order you wish to search - e.g., search for db4 before db3
-- db_try_this = {
-- 'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
-- 'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
-- '/usr/local/BerkeleyDB.4.1/lib',
-- '/usr/local/BerkeleyDB.4.0/lib',
-- '/usr/local/lib',
-- '/opt/sfw',
-- '/sw/lib',
-- ),
-- 'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
-- '/usr/local/include/db42',
-- '/usr/local/BerkeleyDB.4.1/include',
-- '/usr/local/include/db41',
-- '/usr/local/BerkeleyDB.4.0/include',
-- '/usr/local/include/db4',
-- '/opt/sfw/include/db4',
-- '/sw/include/db4',
-- '/usr/include/db4',
-- )},
-- 'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',),
-- 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
-- '/usr/local/BerkeleyDB.3.2/lib',
-- '/usr/local/lib',
-- '/opt/sfw/lib',
-- '/sw/lib',
-- ),
-- 'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
-- '/usr/local/BerkeleyDB.3.2/include',
-- '/usr/local/include/db3',
-- '/opt/sfw/include/db3',
-- '/sw/include/db3',
-- '/usr/include/db3',
-- )},
-- }
--
-- db_search_order = db_try_this.keys()
-- db_search_order.sort()
-- db_search_order.reverse()
-+ #db_try_this = {
-+ #'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
-+ #'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
-+ #'/usr/local/BerkeleyDB.4.1/lib',
-+ #'/usr/local/BerkeleyDB.4.0/lib',
-+ #'/usr/local/lib',
-+ #'/opt/sfw',
-+ #'/sw/lib',
-+ #),
-+ #'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
-+ #'/usr/local/include/db42',
-+ #'/usr/local/BerkeleyDB.4.1/include',
-+ #'/usr/local/include/db41',
-+ #'/usr/local/BerkeleyDB.4.0/include',
-+ #'/usr/local/include/db4',
-+ #'/opt/sfw/include/db4',
-+ #'/sw/include/db4',
-+ #'/usr/include/db4',
-+ #)},
-+ #'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',),
-+ #'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
-+ #'/usr/local/BerkeleyDB.3.2/lib',
-+ #'/usr/local/lib',
-+ #'/opt/sfw/lib',
-+ #'/sw/lib',
-+ #),
-+ #'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
-+ #'/usr/local/BerkeleyDB.3.2/include',
-+ #'/usr/local/include/db3',
-+ #'/opt/sfw/include/db3',
-+ #'/sw/include/db3',
-+ #'/usr/include/db3',
-+ #)},
-+ #}
-+
-+ #db_search_order = db_try_this.keys()
-+ #db_search_order.sort()
-+ #db_search_order.reverse()
-
-- class found(Exception): pass
-+ class NotFound(Exception): pass
- try:
-- # See whether there is a Sleepycat header in the standard
-- # search path.
-- std_dbinc = None
-- for d in inc_dirs:
-- f = os.path.join(d, "db.h")
-+ bdb_type = os.environ['PY_BDB_TYPE']
-+ db_incs = [os.environ['PY_BDB_INCDIRS']]
-+ dblib_dir = None
-+ dblibs = None
-+
-+ # check if need to use the db_185.h compat header
-+ bsddb185_define_macros=[]
-+ if bdb_type == "db2" or bdb_type == "db3" or bdb_type == "db4":
-+ bsddb185_define_macros=[('HAVE_DB_185_H',1)]
-+ dblib_dir = [os.environ['PY_BDB_LIBDIRS']]
-+
-+ else:
-+ # check if db_incs/db.h really is db 1.85
-+ f = "%s/db.h" % db_incs[0]
-+
- if os.path.exists(f):
-- f = open(f).read()
-- m = re.search(r"#define\WDB_VERSION_MAJOR\W([1-9]+)", f)
-- if m:
-- std_dbinc = 'db' + m.group(1)
-- for dbkey in db_search_order:
-- dbd = db_try_this[dbkey]
-- for dblib in dbd['libs']:
-- # Prefer version-specific includes over standard
-- # include locations.
-- db_incs = find_file('db.h', [], dbd['incdirs'])
-- dblib_dir = find_library_file(self.compiler,
-- dblib,
-- lib_dirs,
-- list(dbd['libdirs']))
-- if (db_incs or dbkey == std_dbinc) and \
-- dblib_dir is not None:
-- dblibs = [dblib]
-- raise found
-- except found:
-- dblibs = [dblib]
-- # A default source build puts Berkeley DB in something like
-- # /usr/local/Berkeley.3.3 and the lib dir under that isn't
-- # normally on ld.so's search path, unless the sysadmin has hacked
-- # /etc/ld.so.conf. We add the directory to runtime_library_dirs
-- # so the proper -R/--rpath flags get passed to the linker. This
-- # is usually correct and most trouble free, but may cause problems
-- # in some unusual system configurations (e.g. the directory is on
-- # an NFS server that goes away).
-- exts.append(Extension('_bsddb', ['_bsddb.c'],
-+ data = open(f).read()
-+ m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
-+ if m is None:
-+ # check for 1.85 compat header
-+ if os.path.exists("%s/db_185.h" % db_incs[0]):
-+ bsddb185_define_macros=[('HAVE_DB_185_H',1)]
-+ else:
-+ raise NotFound
-+ try:
-+ bltransform = os.environ['PY_BDB_TRANSFORM']
-+ m = re.search(r"l:db:(db.)\s*", bltransform)
-+ if m is not None and m.group(1) is not None:
-+ dblibs = [m.group(1)]
-+ except:
-+ pass
-+
-+ # build the bsddb185 extension module
-+ exts.append(Extension('bsddb185', ['bsddbmodule.c'],
- library_dirs=dblib_dir,
- runtime_library_dirs=dblib_dir,
- include_dirs=db_incs,
-+ define_macros=bsddb185_define_macros,
- libraries=dblibs))
-- else:
-+ except:
- db_incs = None
- dblibs = []
-- dblib_dir = None
--
--
-- # Look for Berkeley db 1.85. Note that it is built as a different
-- # module name so it can be included even when later versions are
-- # available. A very restrictive search is performed to avoid
-- # accidentally building this module with a later version of the
-- # underlying db library. May BSD-ish Unixes incorporate db 1.85
-- # symbols into libc and place the include file in /usr/include.
-- f = "/usr/include/db.h"
-- if os.path.exists(f):
-- data = open(f).read()
-- m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
-- if m is not None:
-- # bingo - old version used hash file format version 2
-- ### XXX this should be fixed to not be platform-dependent
-- ### but I don't have direct access to an osf1 platform and
-- ### seemed to be muffing the search somehow
-- libraries = platform == "osf1" and ['db'] or None
-- if libraries is not None:
-- exts.append(Extension('bsddb185', ['bsddbmodule.c'],
-- libraries=libraries))
-- else:
-- exts.append(Extension('bsddb185', ['bsddbmodule.c']))
-+ dblib_dir = None
-
- # The standard Unix dbm module:
- if platform not in ['cygwin']:
-@@ -610,6 +589,13 @@ class PyBuildExt(build_ext):
- exts.append( Extension('dbm', ['dbmmodule.c'],
- define_macros=[('HAVE_NDBM_H',None)],
- libraries = ndbm_libs ) )
-+ elif find_file("ndbm.h", db_incs, []) is not None:
-+ exts.append( Extension('dbm', ['dbmmodule.c'],
-+ library_dirs=dblib_dir,
-+ runtime_library_dirs=dblib_dir,
-+ include_dirs=db_incs,
-+ define_macros=[('HAVE_NDBM_H',None)],
-+ libraries=dblibs))
- elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
- and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
- exts.append( Extension('dbm', ['dbmmodule.c'],
-@@ -1148,8 +1134,8 @@ def main():
- ext_modules=[Extension('struct', ['structmodule.c'])],
-
- # Scripts to install
-- scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle',
-- 'Lib/smtpd.py']
-+ scripts = ['Tools/scripts/pydoc2p4',
-+ 'Lib/smtpd2p4.py']
- )
-
- # --install-platlib
diff --git a/lang/python24-pth/patches/patch-ba b/lang/python24-pth/patches/patch-ba
deleted file mode 100644
index 4e6731b4620..00000000000
--- a/lang/python24-pth/patches/patch-ba
+++ /dev/null
@@ -1,11 +0,0 @@
---- Include/patchlevel.h.orig Sun Dec 5 21:33:50 2004
-+++ Include/patchlevel.h Sun Dec 5 21:34:01 2004
-@@ -26,7 +26,7 @@
- #define PY_RELEASE_SERIAL 0
-
- /* Version as a string */
--#define PY_VERSION "2.4"
-+#define PY_VERSION "2p4"
-
- /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
- Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index 8861edead69..2d8ebcc9710 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -1,10 +1,120 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/12/05 23:27:49 recht Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:47 recht Exp $
#
+DISTNAME= Python-2.4
PKGNAME= python24-2.4
+PKGREVISION= 2
+CATEGORIES= lang python
+MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/
+EXTRACT_SUFX= .tar.bz2
-CONFIGURE_ARGS+= --without-threads
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://www.python.org/
+COMMENT= Interpreted, interactive, object-oriented programming language
-PY_VER_SUFFIX= 2.4
+USE_LANGUAGES= c c++
+USE_BUILDLINK3= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-shared
+CONFIGURE_ARGS+= OPT="${CFLAGS}"
-.include "../../lang/python24/Makefile.common"
+PTHREAD_OPTS= require
+.include "../../mk/pthread.buildlink3.mk"
+.if ${PTHREAD_TYPE} == "pth"
+CONFIGURE_ARGS+= --with-pth
+.endif
+
+# fdatasync()
+LIBS.SunOS= -lrt
+
+PY_VER_SUFFIX= 2.4
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_SRC= ${.CURDIR}/../../lang/python24/PLIST.common
+.if exists(${.CURDIR}/../../lang/python24/PLIST.${OPSYS})
+PLIST_SRC+= ${.CURDIR}/../../lang/python24/PLIST.${OPSYS}
+.endif
+PLIST_SRC+= ${.CURDIR}/../../lang/python24/PLIST.common_end
+
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix"
+PY_PLATNAME= ${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
+.elif ${OPSYS} == "SunOS"
+PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
+.else
+PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
+.endif
+PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
+
+# the dl module isn't built for 64 bit archs and Darwin
+.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" \
+ || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64" \
+ || ${OPSYS} == "Darwin" || ( ${OPSYS} == "IRIX" && ${ABI} == "64" )
+PLIST_SUBST+= DLMODULE="@comment "
+.else
+PLIST_SUBST+= DLMODULE=
+.endif
+
+EXTRA_SO_SUBST= "@comment "
+OSSAUDIODEV_SUBST= "@comment "
+
+# activate extra modules
+.if ${MACHINE_ARCH} == "i386"
+EXTRA_SO_SUBST=
+# ossaudiodev is only available on x86 for the following platforms
+. if ${PY_PLATNAME} == "linux2" || ${PY_PLATNAME} == "freebsd4" \
+ || ${PY_PLATNAME} == "freebsd5"
+OSSAUDIODEV_SUBST=
+. endif
+.elif ${OPSYS} == "SunOS" || ( ${OPSYS} == "IRIX" && ${ABI} != "64" ) \
+ || ${OPSYS} == "Darwin"
+EXTRA_SO_SUBST=
+.endif
+
+PLIST_SUBST+= EXTRA_SO=${EXTRA_SO_SUBST}
+PLIST_SUBST+= OSSAUDIODEV=${OSSAUDIODEV_SUBST}
+
+# Make sure python modules can link correctly
+.if ${OPSYS} == "Darwin"
+INSTALL_UNSTRIPPED= yes
+.endif
+
+.if ${OPSYS} == "IRIX"
+. if ${ABI} == "64"
+PLIST_SUBST+= NISMODULE="@comment "
+. else
+PLIST_SUBST+= NISMODULE=
+. endif
+PLIST_SUBST+= BSDDBMODULE="@comment "
+PLIST_SUBST+= NOSHLIB="@comment "
+.else
+. include "../../mk/bdb.buildlink3.mk"
+MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE}
+MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
+MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib
+PLIST_SUBST+= BSDDBMODULE=
+PLIST_SUBST+= NOSHLIB=
+PLIST_SUBST+= NISMODULE=
+.endif
+
+.if defined(BUILDLINK_TRANSFORM)
+MAKE_ENV+= PY_BDB_TRANSFORM="${BUILDLINK_TRANSFORM}"
+.endif
+
+PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
+
+TEST_TARGET= test
+INSTALL_TARGET= altinstall
+
+post-extract:
+ ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
+ ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python24/Makefile.common b/lang/python24/Makefile.common
deleted file mode 100644
index 2f1eb9ecca8..00000000000
--- a/lang/python24/Makefile.common
+++ /dev/null
@@ -1,110 +0,0 @@
-# $NetBSD: Makefile.common,v 1.3 2004/12/20 13:16:02 grant Exp $
-#
-
-DISTNAME= Python-2.4
-CATEGORIES= lang python
-MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/
-EXTRACT_SUFX= .tar.bz2
-
-MAINTAINER= recht@NetBSD.org
-HOMEPAGE= http://www.python.org/
-COMMENT= Interpreted, interactive, object-oriented programming language
-
-USE_LANGUAGES= c c++
-USE_BUILDLINK3= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-shared
-CONFIGURE_ARGS+= OPT="${CFLAGS}"
-
-# fdatasync()
-LIBS.SunOS= -lrt
-
-.include "../../mk/bsd.prefs.mk"
-
-PLIST_SRC= ${.CURDIR}/../../lang/python24/PLIST.common
-.if exists(${.CURDIR}/../../lang/python24/PLIST.${OPSYS})
-PLIST_SRC+= ${.CURDIR}/../../lang/python24/PLIST.${OPSYS}
-.endif
-PLIST_SRC+= ${.CURDIR}/../../lang/python24/PLIST.common_end
-
-.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix"
-PY_PLATNAME= ${LOWER_OPSYS}
-.elif ${OPSYS} == "IRIX"
-PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
-.elif ${OPSYS} == "SunOS"
-PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
-.else
-PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
-.endif
-PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
-
-# the dl module isn't built for 64 bit archs and Darwin
-.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" \
- || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64" \
- || ${OPSYS} == "Darwin" || ( ${OPSYS} == "IRIX" && ${ABI} == "64" )
-PLIST_SUBST+= DLMODULE="@comment "
-.else
-PLIST_SUBST+= DLMODULE=
-.endif
-
-EXTRA_SO_SUBST= "@comment "
-OSSAUDIODEV_SUBST= "@comment "
-
-# activate extra modules
-.if ${MACHINE_ARCH} == "i386"
-EXTRA_SO_SUBST=
-# ossaudiodev is only available on x86 for the following platforms
-. if ${PY_PLATNAME} == "linux2" || ${PY_PLATNAME} == "freebsd4" \
- || ${PY_PLATNAME} == "freebsd5"
-OSSAUDIODEV_SUBST=
-. endif
-.elif ${OPSYS} == "SunOS" || ( ${OPSYS} == "IRIX" && ${ABI} != "64" ) \
- || ${OPSYS} == "Darwin"
-EXTRA_SO_SUBST=
-.endif
-
-PLIST_SUBST+= EXTRA_SO=${EXTRA_SO_SUBST}
-PLIST_SUBST+= OSSAUDIODEV=${OSSAUDIODEV_SUBST}
-
-# Make sure python modules can link correctly
-.if ${OPSYS} == "Darwin"
-INSTALL_UNSTRIPPED= yes
-.endif
-
-.if ${OPSYS} == "IRIX"
-. if ${ABI} == "64"
-PLIST_SUBST+= NISMODULE="@comment "
-. else
-PLIST_SUBST+= NISMODULE=
-. endif
-PLIST_SUBST+= BSDDBMODULE="@comment "
-PLIST_SUBST+= NOSHLIB="@comment "
-.else
-. include "../../mk/bdb.buildlink3.mk"
-MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE}
-MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
-MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib
-PLIST_SUBST+= BSDDBMODULE=
-PLIST_SUBST+= NOSHLIB=
-PLIST_SUBST+= NISMODULE=
-.endif
-
-.if defined(BUILDLINK_TRANSFORM)
-MAKE_ENV+= PY_BDB_TRANSFORM="${BUILDLINK_TRANSFORM}"
-.endif
-
-PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX}
-
-TEST_TARGET= test
-INSTALL_TARGET= altinstall
-
-post-extract:
- ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
- ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
-
-.include "../../archivers/bzip2/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/ossaudio.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/lang/python24/PLIST.Darwin b/lang/python24/PLIST.Darwin
index 5b9d6c22b4e..8ff58a10f72 100644
--- a/lang/python24/PLIST.Darwin
+++ b/lang/python24/PLIST.Darwin
@@ -1,3 +1,4 @@
+@comment $NetBSD: PLIST.Darwin,v 1.2 2005/01/23 20:41:47 recht Exp $
lib/python${PY_VER_SUFFIX}/lib-dynload/_CF.so
lib/python${PY_VER_SUFFIX}/lib-dynload/ColorPicker.so
lib/python${PY_VER_SUFFIX}/lib-dynload/autoGIL.so
diff --git a/lang/python24/PLIST.common_end b/lang/python24/PLIST.common_end
index 703b181b948..053f04fdbe1 100644
--- a/lang/python24/PLIST.common_end
+++ b/lang/python24/PLIST.common_end
@@ -1,3 +1,4 @@
+@comment $NetBSD: PLIST.common_end,v 1.2 2005/01/23 20:41:48 recht Exp $
@dirrm lib/python${PY_VER_SUFFIX}/xml/sax
@dirrm lib/python${PY_VER_SUFFIX}/xml/parsers
@dirrm lib/python${PY_VER_SUFFIX}/xml/dom
diff --git a/mail/getmail/Makefile b/mail/getmail/Makefile
index bf19a266c27..b64d653f606 100644
--- a/mail/getmail/Makefile
+++ b/mail/getmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2005/01/18 20:00:09 schmonz Exp $
+# $NetBSD: Makefile,v 1.39 2005/01/23 20:41:48 recht Exp $
DISTNAME= getmail-4.3.1
CATEGORIES= mail
@@ -10,7 +10,7 @@ COMMENT= Secure, flexible, reliable, easy-to-use fetchmail replacement
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED?= 24 24pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED?= 24 23
PYTHON_PATCH_SCRIPTS= *.py getmailcore/*.py
PYDISTUTILSPKG= yes
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile
index 4b1a111ce6b..1bfaa983245 100644
--- a/mail/mailman/Makefile
+++ b/mail/mailman/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2004/12/28 02:47:44 reed Exp $
+# $NetBSD: Makefile,v 1.18 2005/01/23 20:41:48 recht Exp $
DISTNAME= mailman-2.1.4
PKGREVISION= 2
@@ -64,7 +64,7 @@ RCD_SCRIPTS= mailman
INSTALL_EXTRA_TMPL+= ${FILESDIR}/INSTALL
DEINSTALL_EXTRA_TMPL+= ${FILESDIR}/DEINSTALL
-PYTHON_VERSIONS_ACCEPTED= 24 24pth 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PYTHON_PATCH_SCRIPTS+= Mailman/Archiver/pipermail.py
PYTHON_PATCH_SCRIPTS+= Mailman/Post.py
PYTHON_PATCH_SCRIPTS+= admin/bin/Release.py
diff --git a/mail/offlineimap/Makefile b/mail/offlineimap/Makefile
index d372b8f07c1..81f8a88545d 100644
--- a/mail/offlineimap/Makefile
+++ b/mail/offlineimap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2004/08/26 10:20:41 seb Exp $
+# $NetBSD: Makefile,v 1.7 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= offlineimap_${_OFFLINEIMAP_VER}
@@ -16,7 +16,7 @@ USE_BUILDLINK3= yes
# This is only to placate pkglint
_OFFLINEIMAP_VER= 4.0.6
-PYTHON_VERSIONS_ACCEPTED= 22pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 22 23
PYDISTUTILSPKG= yes
PYTHON_PATCH_SCRIPTS= bin/offlineimap
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
diff --git a/mail/tmda/Makefile b/mail/tmda/Makefile
index 2e40d296f68..00ed8c1709b 100644
--- a/mail/tmda/Makefile
+++ b/mail/tmda/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2004/12/28 02:47:46 reed Exp $
+# $NetBSD: Makefile,v 1.23 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= tmda-1.0.3
@@ -18,7 +18,7 @@ PYTHON_PATCH_SCRIPTS= ${TMDA_PROGRAMS}
PKG_SYSCONFSUBDIR= ${PKGBASE}
-PYTHON_VERSIONS_ACCEPTED= 24 24pth 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
PKG_GROUPS= tofmipd
PKG_USERS= tofmipd:tofmipd::TMDA\\ ofmipd\\ User
diff --git a/math/py-numarray/Makefile b/math/py-numarray/Makefile
index c82379474a0..02685d0ab39 100644
--- a/math/py-numarray/Makefile
+++ b/math/py-numarray/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/07/09 15:50:25 recht Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= numarray-1.0
@@ -12,7 +12,7 @@ COMMENT= Array manipulation
USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-pytables/Makefile b/math/py-pytables/Makefile
index d8df48300d5..04f326502ac 100644
--- a/math/py-pytables/Makefile
+++ b/math/py-pytables/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/10/03 00:12:57 tv Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= pytables-0.8
@@ -16,7 +16,7 @@ USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
PYSETUPBUILDARGS= --hdf5=${BUILDLINK_PREFIX.hdf5}
PYSETUPINSTALLARGS= --hdf5=${BUILDLINK_PREFIX.hdf5}
-PYTHON_VERSIONS_ACCEPTED= 22pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 22 23
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
post-extract:
diff --git a/misc/koffice/Makefile b/misc/koffice/Makefile
index bb0a5c68da8..b32c7ae4e87 100644
--- a/misc/koffice/Makefile
+++ b/misc/koffice/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2005/01/21 11:32:12 markd Exp $
+# $NetBSD: Makefile,v 1.54 2005/01/23 20:41:48 recht Exp $
DISTNAME= koffice-1.3.5
PKGREVISION= 4
@@ -23,7 +23,7 @@ GCC_REQD+= 2.95.3
PTHREAD_OPTS+= require
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23pth 23 # needs shared library
+PYTHON_VERSIONS_ACCEPTED= 24 23 # needs shared library
CONFIGURE_ENV+= PYTHONDIR="${LOCALBASE}"
CONFIGURE_ENV+= PYVERSSUFFIX="${PYVERSSUFFIX}"
diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile
index 5f9fc6d473b..d4cbbd63c10 100644
--- a/multimedia/gstreamer/Makefile
+++ b/multimedia/gstreamer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2005/01/06 11:23:44 jmmv Exp $
+# $NetBSD: Makefile,v 1.21 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= gstreamer-0.8.8
@@ -32,7 +32,7 @@ PKGCONFIG_OVERRIDE+= pkgconfig/gstreamer.pc.in
MAKE_DIRS+= ${GST_DBDIR}
-PYTHON_VERSIONS_ACCEPTED= 24 24pth 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
.include "../../mk/bsd.prefs.mk"
diff --git a/net/bittornado/Makefile.common b/net/bittornado/Makefile.common
index b493834626f..e850ee10616 100644
--- a/net/bittornado/Makefile.common
+++ b/net/bittornado/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2004/12/07 04:23:59 mrg Exp $
+# $NetBSD: Makefile.common,v 1.4 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= BitTornado-0.3.8
@@ -17,4 +17,4 @@ PATCHDIR= ${.CURDIR}/../../net/bittornado/patches
WRKSRC= ${WRKDIR}/BitTornado-CVS
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
diff --git a/net/bittorrent/Makefile.common b/net/bittorrent/Makefile.common
index 98c980703c6..7b42589c35f 100644
--- a/net/bittorrent/Makefile.common
+++ b/net/bittorrent/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.8 2004/08/05 22:22:33 recht Exp $
+# $NetBSD: Makefile.common,v 1.9 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= BitTorrent-3.4.2
@@ -16,4 +16,4 @@ PATCHDIR= ${.CURDIR}/../../net/bittorrent/patches
USE_BUILDLINK3= YES
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
diff --git a/net/nicotine/Makefile b/net/nicotine/Makefile
index 327bfa64b59..44153775355 100644
--- a/net/nicotine/Makefile
+++ b/net/nicotine/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/01/17 16:13:25 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= nicotine-1.0.8
@@ -10,7 +10,7 @@ MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://nicotine.thegraveyard.org/
COMMENT= Client for soulseek, a peer-to-peer network for music
-PYTHON_VERSIONS_ACCEPTED= 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
USE_BUILDLINK3= yes
PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
diff --git a/net/py-ORBit/Makefile b/net/py-ORBit/Makefile
index a10961af3df..f6a008028d1 100644
--- a/net/py-ORBit/Makefile
+++ b/net/py-ORBit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2004/12/29 11:04:45 recht Exp $
+# $NetBSD: Makefile,v 1.16 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= pyorbit-2.0.1
@@ -19,8 +19,8 @@ PKGCONFIG_OVERRIDE+= pyorbit-2.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth
-BUILDLINK_DEPENDS.python22-pth= python22-pth>=2.2.2nb2
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
+BUILDLINK_DEPENDS.python22= python22>=2.2.2nb2
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../net/ORBit2/buildlink3.mk"
diff --git a/net/py-google/Makefile b/net/py-google/Makefile
index fee1e866f26..a1ce74ec853 100644
--- a/net/py-google/Makefile
+++ b/net/py-google/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/10/03 00:17:57 tv Exp $
+# $NetBSD: Makefile,v 1.21 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= pygoogle-0.6
@@ -14,7 +14,7 @@ COMMENT= Call the Google web API from Python
PYDISTUTILSPKG= yes
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
.include "../../lang/python/extension.mk"
.include "../../net/py-soappy/buildlink3.mk"
diff --git a/net/py-kenosis/Makefile b/net/py-kenosis/Makefile
index ebc1afec3f8..ae8770fcdc6 100644
--- a/net/py-kenosis/Makefile
+++ b/net/py-kenosis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/01/13 12:55:32 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= kenosis-0.92
@@ -11,7 +11,7 @@ HOMEPAGE= http://kenosis.sourceforge.net/
COMMENT= P2P RPC system
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 24pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 24 22 21
PYDISTUTILSPKG= yes
PYSETUP= kenosis_setup.py
diff --git a/net/py-mimelib/Makefile b/net/py-mimelib/Makefile
index 661a5e5eea0..0adc307e802 100644
--- a/net/py-mimelib/Makefile
+++ b/net/py-mimelib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2004/07/22 09:16:03 recht Exp $
+# $NetBSD: Makefile,v 1.7 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= email-2.5
@@ -14,12 +14,12 @@ USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
# This pkg (or an older version of it) comes with 2.2 and later;
# 2.1 is the primary target (particulary for Zope).
-PYTHON_VERSIONS_ACCEPTED= 21pth 21 22 22pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 21 22 23
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
-# _compat22.py is not byte-compiled if built with 2.1(-pth)
+# _compat22.py is not byte-compiled if built with 2.1(-)
.if !empty(PYPKGPREFIX:Mpy21*)
NOT21= "@comment "
.else
diff --git a/net/py-soappy/Makefile b/net/py-soappy/Makefile
index b1b51b98303..6f190a64b89 100644
--- a/net/py-soappy/Makefile
+++ b/net/py-soappy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2004/10/03 00:17:57 tv Exp $
+# $NetBSD: Makefile,v 1.18 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= SOAPpy-0.11.4
@@ -15,7 +15,7 @@ USE_BUILDLINK3= YES
PYDISTUTILSPKG= YES
PY_PATCHPLIST= YES
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
.include "../../lang/python/extension.mk"
.include "../../math/py-fpconst/buildlink3.mk"
diff --git a/net/py-spreadmodule/Makefile b/net/py-spreadmodule/Makefile
index 8179c0a4f45..e405822b394 100644
--- a/net/py-spreadmodule/Makefile
+++ b/net/py-spreadmodule/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:04 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= SpreadModule-1.4
@@ -15,7 +15,7 @@ COMMENT= Python bindings for the Spread messaging service
PYDISTUTILSPKG= YES
USE_BUILDLINK3= YES
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
SUBST_CLASSES+= setup
SUBST_STAGE.setup= post-patch
diff --git a/net/py-twisted/Makefile b/net/py-twisted/Makefile
index 06e8100bce1..dd76826901d 100644
--- a/net/py-twisted/Makefile
+++ b/net/py-twisted/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/12/23 21:54:25 darcy Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= ${TWISTED_DISTNAME}
@@ -16,7 +16,7 @@ PYDISTUTILSPKG= yes
PLIST_SUBST+= PYVERSSUFFIX="-${PYVERSSUFFIX}"
MAKE_ENV+= PKGSRC="1" PYVERSSUFFIX="-${PYVERSSUFFIX}"
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23pth 23 22pth 22
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
.include "../../net/py-twisted/Makefile.common"
.include "../../lang/python/extension.mk"
diff --git a/net/pygopherd/Makefile b/net/pygopherd/Makefile
index 1ff6c437593..d5d4c44aa88 100644
--- a/net/pygopherd/Makefile
+++ b/net/pygopherd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/12/28 02:47:47 reed Exp $
+# $NetBSD: Makefile,v 1.6 2005/01/23 20:41:48 recht Exp $
#
DISTNAME= pygopherd_2.0.9
@@ -43,7 +43,7 @@ PYTHON_PATCH_SCRIPTS+= pygopherd/gopherentryTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/initializationTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/testutil.py
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
SUBST_CLASSES+= man
SUBST_STAGE.man= post-patch
diff --git a/security/mixminion/Makefile b/security/mixminion/Makefile
index b68ef23a1e7..845e037e7db 100644
--- a/security/mixminion/Makefile
+++ b/security/mixminion/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/12/27 22:58:57 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= Mixminion-0.0.7.1
@@ -14,7 +14,7 @@ BUILDLINK_DEPENDS.openssl+= openssl>=0.9.7d
CRYPTO= YES
USE_BUILDLINK3= YES
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PYDISTUTILSPKG= YES
TEST_TARGET= test
diff --git a/security/py-gnutls/Makefile b/security/py-gnutls/Makefile
index 01e606569a9..bb593b3f1a7 100644
--- a/security/py-gnutls/Makefile
+++ b/security/py-gnutls/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2004/10/03 00:18:12 tv Exp $
+# $NetBSD: Makefile,v 1.8 2005/01/23 20:41:49 recht Exp $
DISTNAME= python-gnutls-0.2
PKGNAME= ${PYPKGPREFIX}${DISTNAME:S/python//}
@@ -15,7 +15,7 @@ USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
NO_CONFIGURE= yes
-PYTHON_VERSIONS_ACCEPTED= 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
.include "../../lang/python/extension.mk"
.include "../../security/gnutls/buildlink3.mk"
diff --git a/security/py-m2crypto/Makefile b/security/py-m2crypto/Makefile
index 8ac3cd12360..08730d1dda2 100644
--- a/security/py-m2crypto/Makefile
+++ b/security/py-m2crypto/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/10/03 00:18:12 tv Exp $
+# $NetBSD: Makefile,v 1.11 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= m2crypto-0.12
@@ -14,7 +14,7 @@ COMMENT= Crypto and SSL toolkit for Python
USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
BUILDLINK_DEPENDS.openssl= openssl>=0.9.7b
diff --git a/sysutils/duplicity/Makefile b/sysutils/duplicity/Makefile
index fd0a30e13df..8894e32889d 100644
--- a/sysutils/duplicity/Makefile
+++ b/sysutils/duplicity/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/10/03 00:18:14 tv Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= duplicity-0.4.1
@@ -14,7 +14,7 @@ DEPENDS= gnupg>=1.2.3:../../security/gnupg
BUILDLINK_DEPENDS.librsync= librsync>=0.9.6
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 22pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 22 23
USE_BUILDLINK3= yes
.include "../../devel/librsync/buildlink3.mk"
diff --git a/sysutils/rdiff-backup/Makefile b/sysutils/rdiff-backup/Makefile
index 90889df7884..a34c67d81f9 100644
--- a/sysutils/rdiff-backup/Makefile
+++ b/sysutils/rdiff-backup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2004/12/26 11:36:30 darcy Exp $
+# $NetBSD: Makefile,v 1.17 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= rdiff-backup-0.12.7
@@ -11,7 +11,7 @@ HOMEPAGE= http://www.nongnu.org/rdiff-backup/
COMMENT= Remote incremental backup utility
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23pth 23 22pth 22
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
USE_BUILDLINK3= yes
SUBST_CLASSES= path
diff --git a/sysutils/xentools12/Makefile b/sysutils/xentools12/Makefile
index ff75968bb3c..66cb5c0b1cb 100644
--- a/sysutils/xentools12/Makefile
+++ b/sysutils/xentools12/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/05/12 08:01:05 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= xeno-1.2-src-040418
@@ -27,7 +27,7 @@ CONF_FILES+= ${EGDIR}/netbsd ${PKG_SYSCONFDIR}/netbsd
USE_GNU_TOOLS+= make
MAKE_ENV+= EGDIR="${EGDIR}"
MAKE_ENV+= MV="${MV}" PYTHON="${PYTHONBIN}" SED="${SED}"
-PYTHON_VERSIONS_ACCEPTED= 22 22pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 22 23
PY_PATCHPLIST= yes
PYTHON_PATCH_SCRIPTS= examples/xc_dom_control.py examples/xc_dom_create.py
PYTHON_PATCH_SCRIPTS+= examples/xc_vd_tool.py
diff --git a/textproc/doclifter/Makefile b/textproc/doclifter/Makefile
index 0cdf4b3ad3c..163ed5ae3e5 100644
--- a/textproc/doclifter/Makefile
+++ b/textproc/doclifter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/01/09 13:19:25 recht Exp $
+# $NetBSD: Makefile,v 1.11 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= doclifter-2.0
@@ -14,7 +14,7 @@ NO_BUILD= yes
USE_BUILDLINK3= yes
PYTHON_PATCH_SCRIPTS= doclifter manlifter
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23pth 23 22pth 22
+PYTHON_VERSIONS_ACCEPTED= 24 23 22
SUBST_CLASSES+= bin-path
SUBST_STAGE.bin-path= pre-configure
diff --git a/textproc/py-Lupy/Makefile b/textproc/py-Lupy/Makefile
index 4c76df88c51..6ec387f8d09 100644
--- a/textproc/py-Lupy/Makefile
+++ b/textproc/py-Lupy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:01 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= Lupy-0.2.1
@@ -14,7 +14,7 @@ USE_BUILDLINK3= yes
PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 23 22
+PYTHON_VERSIONS_ACCEPTED= 23 22
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-Reverend/Makefile b/textproc/py-Reverend/Makefile
index cefe9d24d50..78389b0df87 100644
--- a/textproc/py-Reverend/Makefile
+++ b/textproc/py-Reverend/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/07/22 09:16:02 recht Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= Reverend-0.2.4
@@ -16,7 +16,7 @@ NO_CONFIGURE= yes
USE_LANGUAGES= # empty
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED= 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-SimpleParse/Makefile b/textproc/py-SimpleParse/Makefile
index 79894033e1d..7858bde0a69 100644
--- a/textproc/py-SimpleParse/Makefile
+++ b/textproc/py-SimpleParse/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:02 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= SimpleParse-2.0.0
@@ -14,7 +14,7 @@ COMMENT= Simple parser generator for mxTextTools text-tagging engine
PYDISTUTILSPKG= yes
USE_BUILDLINK3= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
.include "../../lang/python/extension.mk"
.include "../../time/py-mxDateTime/buildlink3.mk"
diff --git a/textproc/py-csv/Makefile b/textproc/py-csv/Makefile
index 52bd9dabe2f..30733244e21 100644
--- a/textproc/py-csv/Makefile
+++ b/textproc/py-csv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/07/22 09:16:02 recht Exp $
+# $NetBSD: Makefile,v 1.6 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= csv-1.0
@@ -15,7 +15,7 @@ USE_BUILDLINK3= YES
PYDISTUTILSPKG= yes
PYBINMODULE= yes
-PYTHON_VERSIONS_ACCEPTED= 22 22pth 21 21pth 20
+PYTHON_VERSIONS_ACCEPTED= 22 21 20
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile
index 2afa14c80f2..b5fdf98d253 100644
--- a/textproc/py-docutils/Makefile
+++ b/textproc/py-docutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/01/14 18:18:39 darcy Exp $
+# $NetBSD: Makefile,v 1.13 2005/01/23 20:41:49 recht Exp $
DISTNAME= docutils-0.3.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -11,7 +11,7 @@ COMMENT= Python tool to generate documents
USE_BUILDLINK3= YES
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PYDISTUTILSPKG= # defined
.include "../../lang/python/extension.mk"
diff --git a/textproc/py-feedparser/Makefile b/textproc/py-feedparser/Makefile
index 5564345433d..002d69827bc 100644
--- a/textproc/py-feedparser/Makefile
+++ b/textproc/py-feedparser/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/07/22 09:16:02 recht Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= feedparser-3.3
@@ -15,7 +15,7 @@ WRKSRC= ${WRKDIR}/feedparser
USE_BUILDLINK3= yes
PYDISTUTILSPKG= yes
-PYTHON_VERSIONS_ACCEPTED?= 23 23pth 22 22pth 21 21pth
+PYTHON_VERSIONS_ACCEPTED?= 23 22 21
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/rubber/Makefile b/textproc/rubber/Makefile
index 10ff1e259e7..4330aa31197 100644
--- a/textproc/rubber/Makefile
+++ b/textproc/rubber/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/01/16 17:58:01 cube Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= rubber-0.99.8
@@ -18,7 +18,7 @@ USE_GNU_TOOLS+= make
USE_MAKEINFO= yes
INFO_FILES= rubber.info
TEXINFO_REQD= 4.6
-PYTHON_VERSIONS_ACCEPTED= 23 23pth 24 24pth
+PYTHON_VERSIONS_ACCEPTED= 23 24
CONFIGURE_ARGS= --python=${PYTHONBIN} --prefix=${PREFIX} \
--datadir=${PREFIX}/share
diff --git a/time/gdeskcal/Makefile b/time/gdeskcal/Makefile
index e3c6b006cf5..4114491e7a9 100644
--- a/time/gdeskcal/Makefile
+++ b/time/gdeskcal/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2005/01/13 11:35:25 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= gDeskCal-0_57
@@ -15,7 +15,7 @@ WRKSRC= ${WRKDIR}/gDeskCal-0.57
USE_BUILDLINK3= yes
NO_BUILD= yes
-PYTHON_VERSIONS_ACCEPTED= 23pth
+PYTHON_VERSIONS_ACCEPTED= 23
PYTHON_PATCH_SCRIPTS= gdeskcal
post-extract:
diff --git a/www/ap2-python/Makefile b/www/ap2-python/Makefile
index 00e853a14b3..21f688fcb38 100644
--- a/www/ap2-python/Makefile
+++ b/www/ap2-python/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2005/01/05 20:50:07 darcy Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 20:41:49 recht Exp $
# FreeBSD Id: ports/www/mod_python3/Makefile,v 1.28 2004/03/11 14:36:30 perky Exp
DISTNAME= mod_python-${VERSION}
@@ -21,7 +21,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-apxs="${APXS}"
CONFIGURE_ARGS+=--with-python=${PYTHONBIN:Q}
-PYTHON_VERSIONS_ACCEPTED= 24 24pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 24 23
PY_PATCHPLIST= YES
.include "../../lang/python/extension.mk"
diff --git a/www/py-clearsilver/Makefile b/www/py-clearsilver/Makefile
index 2ab4335ad49..61cca9fef12 100644
--- a/www/py-clearsilver/Makefile
+++ b/www/py-clearsilver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/11/29 00:21:13 epg Exp $
+# $NetBSD: Makefile,v 1.3 2005/01/23 20:41:49 recht Exp $
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -13,7 +13,7 @@ INSTALL_DIRS= ${WRKSRC}/python
PY_PATCHPLIST= YES
PYBINMODULE= YES
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 23 22 21
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
diff --git a/www/py-curl/Makefile b/www/py-curl/Makefile
index 11bad131123..22064051794 100644
--- a/www/py-curl/Makefile
+++ b/www/py-curl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2005/01/03 15:59:12 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2005/01/23 20:41:49 recht Exp $
DISTNAME= pycurl-7.12.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -12,7 +12,7 @@ COMMENT= Python module interface to the cURL library
PYDISTUTILSPKG= # defined
PYBINMODULE= # defined
-PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+PYTHON_VERSIONS_ACCEPTED= 23 22
USE_BUILDLINK3= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/www/zope25/Makefile b/www/zope25/Makefile
index 155274919fd..76fbefebc51 100644
--- a/www/zope25/Makefile
+++ b/www/zope25/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/05/23 11:41:35 recht Exp $
+# $NetBSD: Makefile,v 1.14 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= Zope-2.6.2-src
@@ -13,7 +13,7 @@ COMMENT= Zope, the Z Object Publishing Environment
DIST_SUBDIR= zope
-PYTHON_VERSIONS_ACCEPTED= 21pth
+PYTHON_VERSIONS_ACCEPTED= 21
USE_BUILDLINK3= yes
ZOPEDIR= ${PREFIX}/lib/zope
diff --git a/www/zopeedit/Makefile b/www/zopeedit/Makefile
index 5bc1da91051..2a520e32ecc 100644
--- a/www/zopeedit/Makefile
+++ b/www/zopeedit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2004/04/19 05:01:48 snj Exp $
+# $NetBSD: Makefile,v 1.10 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= zopeedit-0.7-src
@@ -12,7 +12,7 @@ HOMEPAGE= http://www.zope.org/Members/Caseman/ExternalEditor
COMMENT= Helper client application for Zope's ExternalEditor
USE_BUILDLINK3= YES
-PYTHON_VERSIONS_ACCEPTED= 22 22pth 23 23pth
+PYTHON_VERSIONS_ACCEPTED= 22 23
PYDISTUTILSPKG= yes
post-install:
diff --git a/x11/py-Tk/Makefile b/x11/py-Tk/Makefile
index a8302633e8e..240d2ce6d7d 100644
--- a/x11/py-Tk/Makefile
+++ b/x11/py-Tk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2004/12/24 14:23:43 darcy Exp $
+# $NetBSD: Makefile,v 1.33 2005/01/23 20:41:49 recht Exp $
#
PKGNAME= ${PYPKGPREFIX}-Tk-0
@@ -24,7 +24,7 @@ PY_SETUP_SUBST+= TKRTPREFIX=${BUILDLINK_PREFIX.tk}
PY_SETUP_SUBST+= X11PREFIX=${X11BASE}
PY_SETUP_SUBST+= X11RTPREFIX=${X11BASE}
-PYTHON_VERSIONS_ACCEPTED= 24pth 24 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
diff --git a/x11/py-gnome2/Makefile b/x11/py-gnome2/Makefile
index cdab5601822..805cc4be43b 100644
--- a/x11/py-gnome2/Makefile
+++ b/x11/py-gnome2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2004/12/29 11:12:10 recht Exp $
+# $NetBSD: Makefile,v 1.22 2005/01/23 20:41:49 recht Exp $
#
DISTNAME= gnome-python-2.6.2
@@ -18,7 +18,7 @@ PKGCONFIG_OVERRIDE+= gnome-python-2.0.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 24 23
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
diff --git a/x11/py-gtk2/Makefile b/x11/py-gtk2/Makefile
index 0572df2f618..88e9fda3a35 100644
--- a/x11/py-gtk2/Makefile
+++ b/x11/py-gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2004/12/29 11:12:50 recht Exp $
+# $NetBSD: Makefile,v 1.22 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= pygtk-2.4.1
@@ -20,7 +20,7 @@ PKGCONFIG_OVERRIDE+= pygtk-2.0.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 24 23
.include "../../devel/libglade2/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"
diff --git a/x11/py-qt3-base/Makefile b/x11/py-qt3-base/Makefile
index c0c8bea07d6..7b8417142c0 100644
--- a/x11/py-qt3-base/Makefile
+++ b/x11/py-qt3-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/01/05 10:05:19 darcy Exp $
+# $NetBSD: Makefile,v 1.11 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= PyQt-x11-gpl-3.11
@@ -22,7 +22,7 @@ CONFIGURE_ARGS= -b ${PREFIX}/bin
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/x11/py-qt3-modules/Makefile b/x11/py-qt3-modules/Makefile
index 341563b5932..34e31d38e7c 100644
--- a/x11/py-qt3-modules/Makefile
+++ b/x11/py-qt3-modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/01/05 10:05:19 darcy Exp $
+# $NetBSD: Makefile,v 1.12 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= PyQt-x11-gpl-3.11
@@ -21,7 +21,7 @@ CONFIGURE_ARGS= -b ${PREFIX}/bin
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/x11/py-qt3-qscintilla/Makefile b/x11/py-qt3-qscintilla/Makefile
index 16fb3cd3e0d..0d33129013e 100644
--- a/x11/py-qt3-qscintilla/Makefile
+++ b/x11/py-qt3-qscintilla/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/01/05 20:50:07 darcy Exp $
+# $NetBSD: Makefile,v 1.11 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= PyQt-x11-gpl-3.11
@@ -23,7 +23,7 @@ CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
CONFIGURE_ARGS+= -n ${QTDIR}/include
CONFIGURE_ARGS+= -o ${QTDIR}/lib
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 21pth
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/x11/py-qt3-sip/Makefile b/x11/py-qt3-sip/Makefile
index f15f3e34b9d..8ff6a313c21 100644
--- a/x11/py-qt3-sip/Makefile
+++ b/x11/py-qt3-sip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/01/05 10:05:19 darcy Exp $
+# $NetBSD: Makefile,v 1.11 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= sip-4.0rc3
@@ -27,7 +27,7 @@ CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
CONFIGURE_ARGS+= -e ${PREFIX}/${PYINC}
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth
+PYTHON_VERSIONS_ACCEPTED= 24 23
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/x11/py-wxWidgets/Makefile b/x11/py-wxWidgets/Makefile
index 204c5e52174..3096f3b6683 100644
--- a/x11/py-wxWidgets/Makefile
+++ b/x11/py-wxWidgets/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/12/26 13:39:39 darcy Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/23 20:41:50 recht Exp $
#
DISTNAME= wxPythonSrc-2.4.2.4
@@ -19,9 +19,9 @@ USE_GNU_TOOLS+= make
CONFLICTS+= ${PYPKGPREFIX}-wxWindows-[0-9]*
# we depend on glib which pulls in threads
-PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 21pth
-BUILDLINK_DEPENDS.python21-pth= python21-pth>=2.1.3nb3
-BUILDLINK_DEPENDS.python22-pth= python22-pth>=2.2.2nb2
+PYTHON_VERSIONS_ACCEPTED= 24 23 22 21
+BUILDLINK_DEPENDS.python21= python21>=2.1.3nb3
+BUILDLINK_DEPENDS.python22= python22>=2.2.2nb2
.include "../../mk/bsd.prefs.mk"