pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python24-pth initial import of Python 2.4 (thread...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1712413e21b
branches:  trunk
changeset: 485318:c1712413e21b
user:      recht <recht%pkgsrc.org@localhost>
date:      Sun Dec 05 23:28:53 2004 +0000

description:
initial import of Python 2.4 (threaded version)

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 with support for threads.

diffstat:

 lang/python24-pth/DESCR            |   16 ++
 lang/python24-pth/Makefile         |   14 +
 lang/python24-pth/buildlink3.mk    |   27 +++
 lang/python24-pth/distinfo         |   18 ++
 lang/python24-pth/patches/patch-aa |   26 +++
 lang/python24-pth/patches/patch-ab |   22 +++
 lang/python24-pth/patches/patch-ac |   13 +
 lang/python24-pth/patches/patch-ad |   31 ++++
 lang/python24-pth/patches/patch-ae |   18 ++
 lang/python24-pth/patches/patch-af |   46 ++++++
 lang/python24-pth/patches/patch-ag |   17 ++
 lang/python24-pth/patches/patch-ah |   86 +++++++++++
 lang/python24-pth/patches/patch-ai |   15 ++
 lang/python24-pth/patches/patch-aj |   15 ++
 lang/python24-pth/patches/patch-ak |   22 +++
 lang/python24-pth/patches/patch-al |   90 ++++++++++++
 lang/python24-pth/patches/patch-am |  268 +++++++++++++++++++++++++++++++++++++
 lang/python24-pth/patches/patch-ba |   11 +
 18 files changed, 755 insertions(+), 0 deletions(-)

diffs (truncated from 827 to 300 lines):

diff -r 42b32655a844 -r c1712413e21b lang/python24-pth/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/DESCR   Sun Dec 05 23:28:53 2004 +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 with support for threads.
diff -r 42b32655a844 -r c1712413e21b lang/python24-pth/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/Makefile        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/05 23:28:53 recht Exp $
+#
+
+PKGNAME=       python24-pth-2.4
+
+PTHREAD_OPTS=   require
+.include "../../mk/pthread.buildlink3.mk"
+.if ${PTHREAD_TYPE} == "pth"
+CONFIGURE_ARGS+=       --with-pth
+.endif
+
+PY_VER_SUFFIX= 2p4
+
+.include "../../lang/python24/Makefile.common"
diff -r 42b32655a844 -r c1712413e21b lang/python24-pth/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/buildlink3.mk   Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,27 @@
+# $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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/distinfo        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,18 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/12/05 23:28:53 recht 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) = ebf8e77f67e69f6aec0b6da254e0169198f0ae8f
+SHA1 (patch-am) = ecb78cf1097531447af7b7fd60166b84b8aef1b4
+SHA1 (patch-ba) = d0f9d225bd3de0a7af098fef05d5b09f8319ce7f
diff -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-aa        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,26 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ab        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,22 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ac        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,13 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ad        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,31 @@
+$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@localhost
+         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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ae        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,18 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-af        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,46 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ag        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,17 @@
+$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 -r 42b32655a844 -r c1712413e21b lang/python24-pth/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python24-pth/patches/patch-ah        Sun Dec 05 23:28:53 2004 +0000
@@ -0,0 +1,86 @@
+$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



Home | Main Index | Thread Index | Old Index