[60510] trunk/dports/lang

macsforever2000 at macports.org macsforever2000 at macports.org
Sat Nov 14 06:59:40 PST 2009


Revision: 60510
          http://trac.macports.org/changeset/60510
Author:   macsforever2000 at macports.org
Date:     2009-11-14 06:59:38 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
Added new port python26-doc. (#22517)

Added Paths:
-----------
    trunk/dports/lang/python26-doc/
    trunk/dports/lang/python26-doc/Portfile
    trunk/dports/lang/python26-doc/files/
    trunk/dports/lang/python26-doc/files/patch-Lib-cgi.py.diff
    trunk/dports/lang/python26-doc/files/patch-Makefile.pre.in.diff
    trunk/dports/lang/python26-doc/files/patch-Misc-setuid-prog.c.diff
    trunk/dports/lang/python26-doc/files/patch-Modules-posixmodule.c.diff
    trunk/dports/lang/python26-doc/files/patch-setup.py.diff

Added: trunk/dports/lang/python26-doc/Portfile
===================================================================
--- trunk/dports/lang/python26-doc/Portfile	                        (rev 0)
+++ trunk/dports/lang/python26-doc/Portfile	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,80 @@
+# $Id$
+
+PortSystem 1.0
+
+name			python26-doc
+version			2.6.4
+categories		lang
+platforms		darwin
+maintainers		nomaintainer
+
+description		HTML documentation for Python 2.6
+long_description	HTML documentation for Python 2.6. Use by running \
+			'pydoc2.6 TOPIC', e.g. 'pydoc2.6 NUMBERS'.
+
+homepage		http://www.python.org/
+master_sites		${homepage}/ftp/python/${version}/ \
+			ftp://ftp.python.org/pub/python/${version}/ \
+			ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \
+			ftp://ftp.python.jp/pub/python/${version}/
+
+dist_subdir		[lindex [split $name -] 0]
+distname		Python-${version}
+extract.suffix          .tgz
+
+checksums       md5 17dcac33e4f3adb69a57c2607b6de246
+
+depends_lib     port:gettext port:python26:latex2html
+
+patchfiles      patch-Makefile.pre.in.diff \
+                patch-Misc-setuid-prog.c.diff \
+                patch-Modules-posixmodule.c.diff \
+                patch-setup.py.diff \
+                patch-Lib-cgi.py.diff
+
+configure.args	--enable-shared \
+			--mandir=${prefix}/share/man \
+			--disable-framework
+
+post-patch {
+    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
+}
+
+build.target	html
+build.cmd	{ cd Doc && make }
+
+destroot {
+	file mkdir ${destroot}${prefix}/share/doc/
+	file copy $worksrcpath/Doc/build/html ${destroot}${prefix}/share/doc/${name}
+}
+
+platform darwin 7 {
+	# there is no SystemStubs on 10.3
+	post-patch { reinplace "s|-lSystemStubs||g" ${worksrcpath}/Makefile.pre.in }
+	# To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth at gmail.com, ticket #13322)
+	configure.ldflags-append "-lcc_dynamic"
+}
+
+platform darwin 8 {
+	configure.args-append 	--with-cxx=/usr/bin/g++-4.0
+}
+
+platform darwin 9 {
+	configure.cppflags-append	-D__DARWIN_UNIX03
+	configure.args-append 	--with-cxx=/usr/bin/g++-4.0
+}
+
+variant universal {
+    configure.args-append   --enable-universalsdk=/
+}
+
+# for w/o quicktime sdk, etc. (be prepared for framework build, though)
+platform puredarwin {
+#	configure.args-delete	--enable-framework=${prefix}/Library/Frameworks
+	configure.args-append	--disable-toolbox-glue --disable-framework
+}
+
+livecheck.type	regex
+livecheck.url   ${homepage}download/releases/
+livecheck.regex {Python (2\.6(?:\.\d+)*)}
+


Property changes on: trunk/dports/lang/python26-doc/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/lang/python26-doc/files/patch-Lib-cgi.py.diff
===================================================================
--- trunk/dports/lang/python26-doc/files/patch-Lib-cgi.py.diff	                        (rev 0)
+++ trunk/dports/lang/python26-doc/files/patch-Lib-cgi.py.diff	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,18 @@
+--- Lib/cgi.py.orig	2006-08-10 19:41:07.000000000 +0200
++++ Lib/cgi.py	2007-08-21 15:36:54.000000000 +0200
+@@ -1,13 +1,6 @@
+-#! /usr/local/bin/python
++#! __PREFIX__/bin/python2.6
+ 
+-# NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is
+-# intentionally NOT "/usr/bin/env python".  On many systems
+-# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
+-# scripts, and /usr/local/bin is the default directory where Python is
+-# installed, so /usr/bin/env would be unable to find python.  Granted,
+-# binary installations by Linux vendors often install Python in
+-# /usr/bin.  So let those vendors patch cgi.py to match their choice
+-# of installation.
++# NOTE: /usr/local/bin/python patched for MacPorts installation
+ 
+ """Support module for CGI (Common Gateway Interface) scripts.
+ 

Added: trunk/dports/lang/python26-doc/files/patch-Makefile.pre.in.diff
===================================================================
--- trunk/dports/lang/python26-doc/files/patch-Makefile.pre.in.diff	                        (rev 0)
+++ trunk/dports/lang/python26-doc/files/patch-Makefile.pre.in.diff	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,26 @@
+--- Makefile.pre.in.orig	2007-09-29 02:15:52.000000000 +0200
++++ Makefile.pre.in	2007-09-29 02:18:57.000000000 +0200
+@@ -373,6 +373,13 @@
+ libpython$(VERSION).sl: $(LIBRARY_OBJS)
+ 	$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
+ 
++libpython$(VERSION).dylib: $(LIBRARY)
++	/usr/bin/libtool -o $@ -dynamic $(OTHER_LIBTOOL_OPT) \
++		-all_load $(LIBRARY) -single_module \
++		-install_name $(LIBDIR)/$@ \
++		-compatibility_version $(VERSION) \
++		-current_version $(VERSION) -lSystem -lSystemStubs $(LDFLAGS)
++
+ # 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.
+@@ -675,6 +682,9 @@
+ 			fi \
+ 		fi; \
+ 	else	true; \
++	fi; \
++	if test -f libpython$(VERSION).dylib; then \
++		$(INSTALL_SHARED) libpython$(VERSION).dylib $(DESTDIR)$(LIBDIR); \
+ 	fi
+ 
+ # Install the manual page

Added: trunk/dports/lang/python26-doc/files/patch-Misc-setuid-prog.c.diff
===================================================================
--- trunk/dports/lang/python26-doc/files/patch-Misc-setuid-prog.c.diff	                        (rev 0)
+++ trunk/dports/lang/python26-doc/files/patch-Misc-setuid-prog.c.diff	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,16 @@
+--- Misc/setuid-prog.c.orig	Sat Dec 11 14:29:22 2004
++++ Misc/setuid-prog.c	Sat Dec 11 14:30:13 2004
+@@ -70,6 +70,12 @@
+ #define environ _environ
+ #endif
+ 
++#if defined(__APPLE__)
++#include <sys/time.h>
++#include <crt_externs.h>
++#define environ (*_NSGetEnviron())
++#endif
++
+ /* 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 */
+

Added: trunk/dports/lang/python26-doc/files/patch-Modules-posixmodule.c.diff
===================================================================
--- trunk/dports/lang/python26-doc/files/patch-Modules-posixmodule.c.diff	                        (rev 0)
+++ trunk/dports/lang/python26-doc/files/patch-Modules-posixmodule.c.diff	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,21 @@
+--- Modules/posixmodule.c.orig	Sat Dec 11 14:27:52 2004
++++ Modules/posixmodule.c	Sat Dec 11 14:28:17 2004
+@@ -339,7 +339,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().
+ */
+@@ -357,7 +357,7 @@
+ 	d = PyDict_New();
+ 	if (d == NULL)
+ 		return NULL;
+-#ifdef WITH_NEXT_FRAMEWORK
++#ifdef __APPLE__
+ 	if (environ == NULL)
+ 		environ = *_NSGetEnviron();
+ #endif
+

Added: trunk/dports/lang/python26-doc/files/patch-setup.py.diff
===================================================================
--- trunk/dports/lang/python26-doc/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/lang/python26-doc/files/patch-setup.py.diff	2009-11-14 14:59:38 UTC (rev 60510)
@@ -0,0 +1,11 @@
+--- setup.py	2006-08-10 01:42:18.000000000 +0200
++++ setup.py	2007-02-17 16:57:24.000000000 +0100
+@@ -15,7 +15,7 @@
+ from distutils.command.install_lib import install_lib
+ 
+ # This global variable is used to hold the list of modules to be disabled.
+-disabled_module_list = []
++disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","readline","_curses","_curses_panel"]
+ 
+ def add_dir_to_list(dirlist, dir):
+     """Add the directory 'dir' to the list 'dirlist' (at the front) if
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/2d056d29/attachment.html>


More information about the macports-changes mailing list