pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python23-nth Intial import of Python 2.3.4 / with...
details: https://anonhg.NetBSD.org/pkgsrc/rev/73e3aebd3f18
branches: trunk
changeset: 488024:73e3aebd3f18
user: recht <recht%pkgsrc.org@localhost>
date: Sun Jan 23 22:57:19 2005 +0000
description:
Intial import of Python 2.3.4 / without thread
support (what used to be the python23 package).
Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The
Python Library Reference documents built-in and standard
types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics
of the core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an exten-
sion language for existing applications. See the internal
documentation for hints.
This package has been compiled without support for threads.
diffstat:
lang/python23-nth/DESCR | 16 +
lang/python23-nth/Makefile | 10 +
lang/python23-nth/buildlink3.mk | 27 ++
lang/python23-nth/distinfo | 19 ++
lang/python23-nth/patches/patch-aa | 13 +
lang/python23-nth/patches/patch-ab | 26 ++
lang/python23-nth/patches/patch-ad | 23 ++
lang/python23-nth/patches/patch-ae | 13 +
lang/python23-nth/patches/patch-af | 19 ++
lang/python23-nth/patches/patch-ah | 55 +++++
lang/python23-nth/patches/patch-al | 91 +++++++++
lang/python23-nth/patches/patch-am | 350 +++++++++++++++++++++++++++++++++++++
lang/python23-nth/patches/patch-ba | 86 +++++++++
lang/python23-nth/patches/patch-bb | 34 +++
lang/python23-nth/patches/patch-ca | 54 +++++
lang/python23-nth/patches/patch-cb | 24 ++
lang/python23-nth/patches/patch-da | 17 +
lang/python23-nth/patches/patch-db | 35 +++
lang/python23-nth/patches/patch-dc | 20 ++
19 files changed, 932 insertions(+), 0 deletions(-)
diffs (truncated from 1008 to 300 lines):
diff -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/DESCR Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,16 @@
+Python is an interpreted, interactive, object-oriented
+programming language that combines remarkable power with
+very clear syntax. For an introduction to programming in
+Python you are referred to the Python Tutorial. The
+Python Library Reference documents built-in and standard
+types, constants, functions and modules. Finally, the
+Python Reference Manual describes the syntax and semantics
+of the core language in (perhaps too) much detail.
+
+Python's basic power can be extended with your own modules
+written in C or C++. On most systems such modules may be
+dynamically loaded. Python is also adaptable as an exten-
+sion language for existing applications. See the internal
+documentation for hints.
+
+This package has been compiled without support for threads.
diff -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/Makefile Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/23 22:57:19 recht Exp $
+#
+
+PKGNAME= python23-nth-2.3.4
+
+CONFIGURE_ARGS+= --without-threads
+
+PY_VER_SUFFIX= 2n3
+
+.include "../../lang/python23/Makefile.common"
diff -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/buildlink3.mk Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/01/23 22:57:19 recht Exp $
+
+BUILDLINK_DENTH:= ${BUILDLINK_DENTH}+
+PYTHON23_NTH_BUILDLINK3_MK:= ${PYTHON23_NTH_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DENTH:M+)
+BUILDLINK_DEPENDS+= python23-nth
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython23-nth}
+BUILDLINK_PACKAGES+= python23-nth
+
+.if !empty(PYTHON23_NTH_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.python23-nth+= python23-nth>=2.3.4
+BUILDLINK_PKGSRCDIR.python23-nth?= ../../lang/python23-nth
+
+.if defined(BUILDLINK_DEPMETHOD.python)
+BUILDLINK_DEPMETHOD.python23nth?= ${BUILDLINK_DEPMETHOD.python}
+.endif
+
+BUILDLINK_INCDIRS.python23-nth+= include/python2n3
+BUILDLINK_LIBDIRS.python23-nth+= lib/python2n3/config
+BUILDLINK_TRANSFORM+= l:python:python2n3
+
+.endif # PYTHON23_NTH_BUILDLINK3_MK
+
+BUILDLINK_DENTH:= ${BUILDLINK_DENTH:S/+$//}
diff -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/distinfo Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/23 22:57:19 recht Exp $
+
+SHA1 (Python-2.3.4.tgz) = 7d47431febec704e766b57f12a1a5030bb2d03c3
+Size (Python-2.3.4.tgz) = 8502738 bytes
+SHA1 (patch-aa) = e1cc7d9beda2ac131e8d0b3dc8136deb4b182ac3
+SHA1 (patch-ab) = 111d7fa8adbb7001bacad36e3bdbe23ae6ce8b9b
+SHA1 (patch-ad) = c8f6ea08e68dae3bd9ad639c38e74cf654c0b41e
+SHA1 (patch-ae) = 35d27825ea4f3930cce651761e192a7302696eba
+SHA1 (patch-af) = d23d42d5d5fc31aeaf1fca89448873cc4179ccf6
+SHA1 (patch-ah) = f9a46bfe82acec594cf44afd43f359a5248edadb
+SHA1 (patch-al) = 358edaa5be92249182f0c4644f9a3cc944218ebc
+SHA1 (patch-am) = 6d5d24b5a58bd577e8b88527793b27e624455643
+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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-aa Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/23 22:57:19 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 "2n3.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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-ab Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/23 22:57:19 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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-ad Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/01/23 22:57:19 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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-ae Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2005/01/23 22:57:19 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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-af Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-af,v 1.1.1.1 2005/01/23 22:57:20 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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-ah Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,55 @@
+$NetBSD: patch-ah,v 1.1.1.1 2005/01/23 22:57: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 -r 45219e5ba086 -r 73e3aebd3f18 lang/python23-nth/patches/patch-al
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python23-nth/patches/patch-al Sun Jan 23 22:57:19 2005 +0000
@@ -0,0 +1,91 @@
+$NetBSD: patch-al,v 1.1.1.1 2005/01/23 22:57:20 recht 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=2n3
+
+
+ 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}
+ ;;
Home |
Main Index |
Thread Index |
Old Index