diff options
author | minskim <minskim> | 2004-05-16 20:01:59 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-05-16 20:01:59 +0000 |
commit | 9220338a5bd1da842489fb25bfcd7e89e71452ec (patch) | |
tree | b828a506f42c54d7b48f9878f675900ef4bd3ad9 /lang/python21 | |
parent | 08e9080828f4d02c0bf871657a37578a8318c0a5 (diff) | |
download | pkgsrc-9220338a5bd1da842489fb25bfcd7e89e71452ec.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/python21')
-rw-r--r-- | lang/python21/distinfo | 4 | ||||
-rw-r--r-- | lang/python21/patches/patch-ac | 41 |
2 files changed, 35 insertions, 10 deletions
diff --git a/lang/python21/distinfo b/lang/python21/distinfo index e78e3e31d56..727c3b0c88e 100644 --- a/lang/python21/distinfo +++ b/lang/python21/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.11 2003/06/06 18:14:11 drochner Exp $ +$NetBSD: distinfo,v 1.12 2004/05/16 20:01:59 minskim Exp $ SHA1 (Python-2.1.3.tgz) = 7042a5c5fd60d334c0ac227885d68a4c305713b4 Size (Python-2.1.3.tgz) = 6194432 bytes SHA1 (patch-aa) = 8273acc49a9eedad6e09685098178f3b7fb8f1c6 SHA1 (patch-ab) = f87a4d5c76182ab27ba79b42f00e8a2ff63bcf2b -SHA1 (patch-ac) = 397454551beaa8dd11e0a5c171cbdb4f4501a9a3 +SHA1 (patch-ac) = 6f3435e1e66c1a6232c76a3c008f540ccd98ea37 SHA1 (patch-ad) = 769bcd7803723c8d538a74173792ffcc491fa414 SHA1 (patch-af) = e17c20f83ba1219860a6aefd959364147c7963e1 SHA1 (patch-ah) = 637dfe0cb4d031760f1085fb7921c0ae77158221 diff --git a/lang/python21/patches/patch-ac b/lang/python21/patches/patch-ac index ce198446918..92eec8cc1c5 100644 --- a/lang/python21/patches/patch-ac +++ b/lang/python21/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ +$NetBSD: patch-ac,v 1.5 2004/05/16 20:01:59 minskim Exp $ ---- setup.py.orig Thu Dec 27 16:51:02 2001 +--- setup.py.orig 2001-12-27 15:51:02.000000000 -0600 +++ setup.py -@@ -145,11 +145,16 @@ +@@ -145,11 +145,16 @@ class PyBuildExt(build_ext): return platform def detect_modules(self): @@ -24,7 +24,7 @@ $NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ # lib_dirs and inc_dirs are used to search for files; # if a file is found in one of those directories, it can -@@ -265,13 +270,13 @@ +@@ -265,13 +270,13 @@ class PyBuildExt(build_ext): # These represent audio samples or images as strings: # Disabled on 64-bit platforms @@ -42,7 +42,7 @@ $NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ # readline if self.compiler.find_library_file(lib_dirs, 'readline'): -@@ -296,14 +301,10 @@ +@@ -296,14 +301,10 @@ class PyBuildExt(build_ext): # socket(2) # Detect SSL support for the socket module ssl_incs = find_file('openssl/ssl.h', inc_dirs, @@ -59,7 +59,7 @@ $NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ if (ssl_incs is not None and ssl_libs is not None): -@@ -408,8 +409,8 @@ +@@ -408,8 +409,8 @@ class PyBuildExt(build_ext): if (self.compiler.find_library_file(lib_dirs, 'ncurses')): curses_libs = ['ncurses'] @@ -70,7 +70,7 @@ $NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ 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 +418,8 @@ +@@ -417,8 +418,8 @@ class PyBuildExt(build_ext): else: curses_libs = ['curses', 'termcap'] @@ -81,7 +81,32 @@ $NetBSD: patch-ac,v 1.4 2002/04/09 04:23:23 jlam Exp $ # If the curses module is enabled, check for the panel module if (os.path.exists('Modules/_curses_panel.c') and -@@ -609,7 +610,7 @@ +@@ -451,23 +452,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 +594,7 @@ def main(): ext_modules=[Extension('struct', ['structmodule.c'])], # Scripts to install |