Update of /cvsroot/fink/experimental/tiger/main/finkinfo/languages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12745
Added Files:
python24.info python24.patch
Log Message:
same for 24
--- NEW FILE: python24.patch ---
--- Python-2.4/configure.orig Sat Dec 11 14:30:53 2004
+++ Python-2.4/configure Sat Dec 11 14:38:12 2004
@@ -3816,7 +3816,7 @@
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp
-mno-fused-madd"
+ BASECFLAGS="$BASECFLAGS -fno-common -Wno-long-double
-no-cpp-precomp -mno-fused-madd"
;;
esac
;;
@@ -10295,7 +10295,8 @@
LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX)
-framework $(PYTHONFRAMEWORK)'
else
# No framework. Ignore undefined symbols, assuming they
come from Python
- LDSHARED="$LDSHARED -undefined suppress"
+# LDSHARED="$LDSHARED -undefined suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
LDSHARED='$(CC) $(LDFLAGS) -bundle'
@@ -10305,8 +10306,10 @@
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 "'-bundle_loader $(BUILDPYTHON)'
+# LDSHARED="$LDSHARED "'-bundle_loader
$(BINDIR)/python$(VERSION)$(EXE)'
+ BLDSHARED="$LDSHARED -flat_namespace -undefined
suppress"
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and
later).
--- Python-2.4//Makefile.pre.in.orig Sat Dec 11 14:25:10 2004
+++ Python-2.4/Makefile.pre.in Sat Dec 11 14:25:25 2004
@@ -56,7 +56,7 @@
OPT= @OPT@
BASECFLAGS= @BASECFLAGS@
CFLAGS= $(BASECFLAGS) $(OPT)
-CPPFLAGS= -I. -I$(srcdir)/Include
+CPPFLAGS= -I. -I$(srcdir)/Include [EMAIL PROTECTED]@/include
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
--- Python-2.4/Misc/setuid-prog.c.orig Sat Dec 11 14:29:22 2004
+++ Python-2.4/Misc/setuid-prog.c Sat Dec 11 14:30:13 2004
@@ -70,6 +70,13 @@
#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 */
--- Python-2.4/Modules/posixmodule.c.orig Sat Dec 11 14:27:52 2004
+++ Python-2.4/Modules/posixmodule.c Sat Dec 11 14:28:17 2004
@@ -298,7 +298,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().
*/
@@ -316,7 +316,7 @@
d = PyDict_New();
if (d == NULL)
return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
if (environ == NULL)
environ = *_NSGetEnviron();
#endif
--- Python-2.4/setup.py.orig Sat Dec 11 14:38:36 2004
+++ Python-2.4/setup.py Sat Dec 11 14:47:51 2004
@@ -244,9 +244,9 @@
# Add paths to popular package managers on OS X/darwin
if sys.platform == "darwin":
- # Fink installs into /sw by default
- add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
- add_dir_to_list(self.compiler.include_dirs, '/sw/include')
+ # Fink installs into @PREFIX@ by default
+ add_dir_to_list(self.compiler.library_dirs, '@PREFIX@/lib')
+ add_dir_to_list(self.compiler.include_dirs, '@PREFIX@/include')
# DarwinPorts installs into /opt/local by default
add_dir_to_list(self.compiler.library_dirs, '/opt/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/opt/local/include')
@@ -456,6 +456,7 @@
'/usr/contrib/ssl/include/'
]
)
+ ssl_incs = None # suppress SSL support.
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
['/usr/kerberos/include'])
@@ -498,7 +499,7 @@
'/usr/local/BerkeleyDB.4.0/lib',
'/usr/local/lib',
'/opt/sfw',
- '/sw/lib',
+ '@PREFIX@/lib',
),
'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
'/usr/local/include/db42',
@@ -507,7 +508,7 @@
'/usr/local/BerkeleyDB.4.0/include',
'/usr/local/include/db4',
'/opt/sfw/include/db4',
- '/sw/include/db4',
+ '@PREFIX@/include/db4',
'/usr/include/db4',
)},
'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',),
@@ -515,13 +516,13 @@
'/usr/local/BerkeleyDB.3.2/lib',
'/usr/local/lib',
'/opt/sfw/lib',
- '/sw/lib',
+ '@PREFIX@/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',
+ '@PREFIX@/include/db3',
'/usr/include/db3',
)},
}
@@ -941,9 +942,9 @@
# AquaTk is a separate method. Only one Tkinter will be built on
# Darwin - either AquaTk, if it is found, or X11 based Tk.
platform = self.get_platform()
- if platform == 'darwin' and \
- self.detect_tkinter_darwin(inc_dirs, lib_dirs):
- return
+# if platform == 'darwin' and \
+# self.detect_tkinter_darwin(inc_dirs, lib_dirs):
+# return
# Assume we haven't found any of the libraries or include files
# The versions with dots are used on Unix, and the versions without
--- Python-2.4/Lib/pydoc.py Mon Dec 13 11:24:02 2004
+++ Python-2.4/Lib/pydoc.py.orig Mon Dec 13 11:21:37 2004
@@ -1615,19 +1615,7 @@
def __init__(self, input, output):
self.input = input
self.output = output
- self.docdir = None
- execdir = os.path.dirname(sys.executable)
- homedir = os.environ.get('PYTHONHOME')
- for dir in [os.environ.get('PYTHONDOCS'),
- homedir and os.path.join(homedir, 'doc'),
- os.path.join(execdir, 'doc'),
- '/usr/doc/python-docs-' + split(sys.version)[0],
- '/usr/doc/python-' + split(sys.version)[0],
- '/usr/doc/python-docs-' + sys.version[:3],
- '/usr/doc/python-' + sys.version[:3],
- os.path.join(sys.prefix,
'Resources/English.lproj/Documentation')]:
- if dir and os.path.isdir(os.path.join(dir, 'lib')):
- self.docdir = dir
+ self.docdir = os.path.join(sys.prefix,
'share','doc','python'+sys.version[0]+sys.version[2],'html')
def __repr__(self):
if inspect.stack()[1][3] == '?':
--- NEW FILE: python24.info ---
Package: python24
Version: 2.4
Revision: 16
Epoch: 1
Maintainer: Jeffrey Whitaker <[EMAIL PROTECTED]>
Conflicts: python24-nox, python-nox (<= 2.2.1-8)
Replaces: python24-nox, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Depends: %N-shlibs (= %e:%v-%r), tcltk (>= 8.4.1-1), python24-socket,
blt-shlibs, bzip2-shlibs, db42-ssl-shlibs | db42-ssl, gdbm3-shlibs,
libgettext3, libncurses5-shlibs, readline5-shlibs, tcltk-shlibs, x11-shlibs
BuildDepends: readline5, db42-ssl | db42, fink (>= 0.17.0-1), gdbm3, gmp (>=
4.1.2-11), tcltk-dev, expat, bzip2-dev, libgettext3-dev, gettext-bin,
libncurses5
Source: http://python.org/ftp/python/%v/Python-%v.tgz
Source2: http://www.python.org/ftp/python/doc/%v/html-%v.zip
Source-MD5: 149ad508f936eccf669d52682cf8e606
Source2-MD5: a5e23b9717e631ab7d83562f888ce192
PatchScript: <<
#!/bin/sh -ev
(sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1)
# get rid of semaphore errors and of POSIX_C_SOURCE :
perl -pi -e 's,(SunOS/5\.8|Darwin/6\* )\),\1 | Darwin/8\*\),' configure
chmod 775 configure
<<
ConfigureParams: --mandir='${prefix}/share/man'
GCC: 3.3
InstallScript: <<
make install prefix=%i
(cd %i/bin; sed 's|%i/bin/python|%p/bin/python2.4|g' < idle > idle2.4; chmod
755 idle2.4; rm -f idle)
(cd %i/bin; sed 's|%p/bin/python|%p/bin/python2.4|g' < pydoc > pydoc2.4; chmod
755 pydoc2.4; rm -f pydoc)
(cd Misc; /bin/rm -rf RPM)
mkdir -p %i/share/doc/%n
/bin/cp -R Demo Doc %i/share/doc/%n
/bin/cp -R Misc Tools %i/lib/python2.4
/bin/rm -f %i/bin/python
/bin/mv %i/share/man/man1/python.1 %i/share/man/man1/python24.1
cc -dynamiclib -all_load -framework System -framework CoreServices -framework
Foundation %i/lib/python2.4/config/libpython2.4.a -o
%i/lib/python2.4/config/libpython2.4.dylib -install_name
%p/lib/python2.4/config/libpython2.4.dylib -current_version 2.4
-compatibility_version 2.4 -L%p/lib -ldl
(cd %i/lib/python2.4/config; mv Makefile Makefile.orig; sed 's|-fno-common||g'
< Makefile.orig > Makefile; /bin/rm -f Makefile.orig)
ln -s %p/bin/python2.4 %i/bin/python
ln -s %p/bin/pydoc2.4 %i/bin/pydoc
ln -s %p/bin/idle2.4 %i/bin/idle
ln -s %p/share/man/man1/python24.1 %i/share/man/man1/python.1
(mkdir -p %i/share/doc/%n/html; cd ..; /bin/cp -R Python-Docs-%v/
%i/share/doc/%n/html)
<<
SplitOff: <<
Package: %N-shlibs
Depends: readline5-shlibs, expat-shlibs, gdbm3-shlibs, gmp-shlibs (>=
4.1.2-11), db42-ssl-shlibs | db42-shlibs, tcltk-shlibs (>= 8.4.1)
# otool shows no dependency whatsoever !
Conflicts: python24-nox-shlibs
Replaces: python24-nox-shlibs, python (<= 2.2.1-8), python-nox (<= 2.2.1-8)
Files: lib/python2.4/config/libpython2.4.dylib
Shlibs: %p/lib/python2.4/config/libpython2.4.dylib 2.4.0 python24-shlibs (>=
2.4-1) | python24-nox-shlibs (>= 2.4-1)
DocFiles: README LICENSE
<<
SplitOff2: <<
Package: python
Depends: python24
Conflicts: python-nox
Replaces: python-nox
Files: bin/pydoc bin/python bin/idle share/man/man1/python.1
DocFiles: README LICENSE
<<
SplitOff3: <<
Package: python24-socket
Replaces: python24-socket-ssl, python24-socket-nox
Files: lib/python2.4/lib-dynload/_socket.so
DocFiles: README LICENSE
Description: Socket plugin for python
<<
DocFiles: README LICENSE
Description: Interpreted, object-oriented language
DescDetail: <<
Python is often compared to Tcl, Perl, Scheme or Java.
This package installs unix python - not the OSX Framework version.
Builds a two-level namespace dynamic libpython (needed for koffice).
Much help from Dave Morrison and Peter O'Gorman
<<
DescPackaging: All available extension modules are built.
License: OSI-Approved
Homepage: http://www.python.org
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits