[37817] trunk/dports/lang/python25

raimue at macports.org raimue at macports.org
Tue Jun 24 14:58:07 PDT 2008


Revision: 37817
          http://trac.macosforge.org/projects/macports/changeset/37817
Author:   raimue at macports.org
Date:     2008-06-24 14:58:07 -0700 (Tue, 24 Jun 2008)
Log Message:
-----------
Merged revisions 34807,36461-36462,36654,37059,37481,37485,37529,37810-37812 via svnmerge from 
https://svn.macosforge.org/repository/macports/branches/python-frameworks/dports/lang/python25

........
  r34807 | raimue at macports.org | 2008-03-06 18:20:38 +0100 (Thu, 06 Mar 2008) | 3 lines
  
  lang/python25:
  Committing what we got so far from #11267
........
  r36461 | raimue at macports.org | 2008-05-03 02:27:21 +0200 (Sat, 03 May 2008) | 3 lines
  
  lang/python25:
  Tabs to spaces
........
  r36462 | raimue at macports.org | 2008-05-03 05:01:09 +0200 (Sat, 03 May 2008) | 6 lines
  
  lang/python24, lang/python25:
  Major changes to make the ports more similar. I hope I didn't miss some
  changes.
  This still does not contain any hook to make the transition easier, but these
  ports are now very similar which makes them easier to maintain.
........
  r36654 | raimue at macports.org | 2008-05-09 16:29:30 +0200 (Fri, 09 May 2008) | 3 lines
  
  lang/python{24,25}:
  Remove unnecessary links to libpython.dylib, should be handled by python_select
........
  r37059 | raimue at macports.org | 2008-05-25 04:45:36 +0200 (Sun, 25 May 2008) | 3 lines
  
  lang/python25:
  Different framework approach
........
  r37481 | raimue at macports.org | 2008-06-09 19:36:10 +0200 (Mon, 09 Jun 2008) | 5 lines
  
  lang/python{24,25,30}:
  Make the ports more similar.
  These ports install fine for me now and also work with py-* and py25-* ports
  providing modules, but need testing by others.
........
  r37485 | raimue at macports.org | 2008-06-09 21:00:33 +0200 (Mon, 09 Jun 2008) | 3 lines
  
  lang/python25:
  Correct checksums
........
  r37529 | raimue at macports.org | 2008-06-11 17:32:11 +0200 (Wed, 11 Jun 2008) | 3 lines
  
  lang/python{24,25,30}:
  Correct a symlink inside the framework directory pointing into the destroot
........
  r37810 | raimue at macports.org | 2008-06-24 21:51:31 +0200 (Tue, 24 Jun 2008) | 3 lines
  
  lang/python25:
  Restore maintainer
........
  r37811 | raimue at macports.org | 2008-06-24 22:36:46 +0200 (Tue, 24 Jun 2008) | 3 lines
  
  lang/python{24,25,30}:
  Add better post-activate message
........
  r37812 | raimue at macports.org | 2008-06-24 22:38:25 +0200 (Tue, 24 Jun 2008) | 3 lines
  
  lang/python{24,25,30}:
  Bump revisions
........

Modified Paths:
--------------
    trunk/dports/lang/python25/Portfile
    trunk/dports/lang/python25/files/python25

Property Changed:
----------------
    trunk/dports/lang/python25/


Property changes on: trunk/dports/lang/python25
___________________________________________________________________
Name: svnmerge-integrated
   - /branches/python-frameworks/dports/lang/python25:1-34803
   + /branches/python-frameworks/dports/lang/python25:1-37816

Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile	2008-06-24 21:54:15 UTC (rev 37816)
+++ trunk/dports/lang/python25/Portfile	2008-06-24 21:58:07 UTC (rev 37817)
@@ -2,95 +2,136 @@
 
 PortSystem 1.0
 
-name			python25
-version			2.5.2
-revision		2
-categories		lang
-platforms		darwin
-maintainers		mww
+name                    python25
+version                 2.5.2
+revision                3
+set major               2
+set branch              2.5
+categories              lang
+platforms               darwin
+maintainers             mww
 
-description		An interpreted, object-oriented programming language
-long_description	Python is an interpreted, interactive, object-oriented \
-			programming language.
+description             An interpreted, object-oriented programming language
+long_description        Python is an interpreted, interactive, object-oriented \
+                        programming language.
 
-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}/
+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}/
 
-distname		Python-${version}
-use_bzip2		yes
+distname                Python-${version}
+extract.suffix          .tgz
 
-checksums       md5 afb5451049eda91fbde10bd5a4b7fadc \
-                sha1 4755d212f50af704c20224a6966e23acc5aea60f \
-                rmd160 b23b02739833e6730799c5866e2b77aae884b63f
+checksums               md5     3f7ca8aa86c6bd275426d63b46e07992 \
+                        sha1    7a835c93a904ae4ecb2d23b5183e94d3b92f8305 \
+                        rmd160  a6e2e81910639a362f265af2e3814e7b47e2110a
 
-depends_lib     port:gettext
+patchfiles              patch-Makefile.pre.in.diff \
+                        patch-setup.py.diff \
+                        patch-Lib-cgi.py.diff
 
-patchfiles      patch-configure.diff \
-                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
+depends_lib             port:gettext
 
-configure.args	--enable-shared \
-			--mandir=${prefix}/share/man \
-			--disable-framework
+configure.args          --enable-shared \
+                        --enable-framework=${prefix}/Library/Frameworks \
+                        --mandir=${prefix}/share/man \
+                        --without-readline \
+                        --disable-tk \
+                        --enable-ipv6
 
+use_parallel_build      no
+
 post-patch {
-    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
+        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
+        reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
+                Mac/Makefile.in Mac/IDLE/Makefile.in \
+                Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
+                Mac/PythonLauncher/Makefile.in \
+                Mac/BuildScript/build-installer.py
 }
 
-test.run	   yes
-test.target	   test
+build.target            all libpython${branch}.dylib
 
-destroot.target altinstall \
-                maninstall
+# TODO: From python24, do we still need this?
+# Workaround for case-sensitive file systems
+post-build {
+    if { ![file exists ${worksrcpath}/python.exe] } {
+        ln -s python ${worksrcpath}/python.exe
+    }
+}
 
+test.run                yes
+test.target             test
+
+destroot.target         frameworkinstall maninstall
+
 post-destroot {
-    set branche [join [lrange [split ${version} .] 0 1] .]
+        set framewpath ${prefix}/Library/Frameworks/Python.framework
+        set framewdir  ${framewpath}/Versions/${branch}
 
-    foreach bin {idle pydoc smtpd.py} {
-        move ${destroot}${prefix}/bin/${bin} \
-            ${destroot}${prefix}/bin/${bin}${branche}
-    }
-    move ${destroot}${prefix}/share/man/man1/python.1 \
-        ${destroot}${prefix}/share/man/man1/python${branche}.1
+        foreach dir { lib include } {
+            file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
+            ln -s ${destroot}${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
+        }
 
-    # install select file for python_select
-    xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
-    xinstall -m 644 ${filespath}/python25 ${destroot}${prefix}/etc/select/python/
+        file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib
+        ln -s ${destroot}${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib
+
+        file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
+
+        # delete symlinks without version suffix, use python_select instead to choose version
+        foreach bin { python pythonw idle pydoc smtpd.py python-config } {
+            file delete ${destroot}${prefix}/bin/${bin}
+        }
+        foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {
+            file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin
+            ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
+        }
+
+        foreach dir { Headers Resources Python Versions/Current } {
+            file delete ${destroot}${framewpath}/${dir}
+        }
+
+        # install select file for python_select
+        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
+        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
 }
 
+post-activate {
+    ui_msg "\nTo fully complete your installation and make python $branch the default, please run
+\n\tsudo port install python_select \
+\n\tsudo python_select $name\n"
+}
+
 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"
+        # there is no SystemStubs on 10.3
+        post-patch {
+                reinplace "s|-lSystemStubs||g" \
+                        configure configure.in
+        }
+        post-configure {
+                reinplace "s|-lSystemStubs||g" \
+                        Makefile.pre.in Makefile.pre Makefile
+        }
+        # 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
+        # TODO: would configure.compiler be more appropriate?
+        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
+        configure.cppflags-append       -D__DARWIN_UNIX03
 }
 
 variant universal {
-    configure.args-append   --enable-universalsdk
+        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.check	regex
-livecheck.url   ${homepage}download/releases/
-livecheck.regex {Python (2\.5(?:\.\d+)*)}
-
+livecheck.check         regex
+livecheck.url           ${homepage}download/releases/
+livecheck.regex         Python (${branch}.\[0-9\]+)

Modified: trunk/dports/lang/python25/files/python25
===================================================================
--- trunk/dports/lang/python25/files/python25	2008-06-24 21:54:15 UTC (rev 37816)
+++ trunk/dports/lang/python25/files/python25	2008-06-24 21:58:07 UTC (rev 37817)
@@ -1,12 +1,12 @@
 bin/python2.5
--
+bin/pythonw2.5
 bin/python2.5-config
 bin/idle2.5
 bin/pydoc2.5
 bin/smtpd2.5.py
 -
 share/man/man1/python2.5.1.gz
--
--
--
--
+Library/Frameworks/Python.framework/Versions/2.5
+Library/Frameworks/Python.framework/Versions/Versions/2.5/Headers
+Library/Frameworks/Python.framework/Versions/Versions/2.5/Resources
+Library/Frameworks/Python.framework/Versions/Versions/2.5/Python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080624/33b2dde3/attachment.htm 


More information about the macports-changes mailing list