summaryrefslogtreecommitdiff
path: root/lang/python22
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-05-16 20:01:59 +0000
committerminskim <minskim@pkgsrc.org>2004-05-16 20:01:59 +0000
commit33baa8135609c48fb3d87468297b91b6cee85e22 (patch)
treeb828a506f42c54d7b48f9878f675900ef4bd3ad9 /lang/python22
parentcffc036d910b1a3add8d5cf6f74b8921f75c8a03 (diff)
downloadpkgsrc-33baa8135609c48fb3d87468297b91b6cee85e22.tar.gz
Build python module for zlib unconditionally. This makes
python2[12]{,-pth} build on platforms where zlib.h is not in /usr/include.
Diffstat (limited to 'lang/python22')
-rw-r--r--lang/python22/distinfo4
-rw-r--r--lang/python22/patches/patch-aa51
2 files changed, 40 insertions, 15 deletions
diff --git a/lang/python22/distinfo b/lang/python22/distinfo
index 439d083673b..07ad7d59c64 100644
--- a/lang/python22/distinfo
+++ b/lang/python22/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.10 2003/06/06 17:31:18 drochner Exp $
+$NetBSD: distinfo,v 1.11 2004/05/16 20:01:59 minskim Exp $
SHA1 (Python-2.2.3.tgz) = 177d587e77e0eaa14131ab0d0d0b470777de4400
Size (Python-2.2.3.tgz) = 6709556 bytes
-SHA1 (patch-aa) = 325c94dfd73c7c85085f32b39990370d4053f375
+SHA1 (patch-aa) = e4d0ec82dc34b7c60fb926e10c205bdf0ea6cabd
SHA1 (patch-ab) = aa06824d9f595a24aaddc96c83f31646f522ab09
SHA1 (patch-ae) = aefeec78e25631a6e9e2aa047dce12c9c522715e
SHA1 (patch-af) = a2b23859941766319f638e40c49b5af3f504ef52
diff --git a/lang/python22/patches/patch-aa b/lang/python22/patches/patch-aa
index 22592bad252..57a8cbe201a 100644
--- a/lang/python22/patches/patch-aa
+++ b/lang/python22/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
+$NetBSD: patch-aa,v 1.8 2004/05/16 20:01:59 minskim Exp $
---- setup.py.orig 2003-05-22 19:36:54.000000000 +0200
-+++ setup.py 2003-06-02 18:58:56.000000000 +0200
-@@ -210,11 +210,15 @@
+--- 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):
@@ -23,7 +23,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
try:
have_unicode = unicode
-@@ -274,7 +278,7 @@
+@@ -274,7 +278,7 @@ class PyBuildExt(build_ext):
if have_unicode:
exts.append( Extension('unicodedata', ['unicodedata.c']) )
# access to ISO C locale support
@@ -32,7 +32,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
# 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 @@
+@@ -330,16 +334,16 @@ class PyBuildExt(build_ext):
# These represent audio samples or images as strings:
# Disabled on 64-bit platforms
@@ -54,7 +54,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
readline_libs = ['readline']
if self.compiler.find_library_file(lib_dirs,
'ncurses'):
-@@ -363,14 +367,10 @@
+@@ -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,
@@ -71,7 +71,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
-@@ -413,9 +413,9 @@
+@@ -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:
@@ -84,7 +84,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
# Berkeley DB interface.
#
-@@ -469,9 +469,9 @@
+@@ -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
@@ -97,7 +97,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
# Unix-only modules
-@@ -498,8 +498,8 @@
+@@ -498,8 +498,8 @@ class PyBuildExt(build_ext):
if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
curses_libs = ['ncurses']
@@ -108,7 +108,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
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 @@
+@@ -509,8 +509,8 @@ class PyBuildExt(build_ext):
else:
curses_libs = ['curses', 'termcap']
@@ -119,7 +119,32 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
# If the curses module is enabled, check for the panel module
if (module_enabled(exts, '_curses') and
-@@ -581,11 +581,11 @@
+@@ -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, [])
@@ -136,7 +161,7 @@ $NetBSD: patch-aa,v 1.7 2003/06/06 17:31:19 drochner Exp $
# Platform-specific libraries
if platform == 'linux2':
-@@ -808,7 +808,7 @@
+@@ -808,7 +792,7 @@ def main():
ext_modules=[Extension('struct', ['structmodule.c'])],
# Scripts to install