[37820] trunk/dports/lang/python30

raimue at macports.org raimue at macports.org
Tue Jun 24 15:01:52 PDT 2008


Revision: 37820
          http://trac.macosforge.org/projects/macports/changeset/37820
Author:   raimue at macports.org
Date:     2008-06-24 15:01:51 -0700 (Tue, 24 Jun 2008)
Log Message:
-----------
Merged revisions 37481,37529,37811-37812 via svnmerge from 
https://svn.macosforge.org/repository/macports/branches/python-frameworks/dports/lang/python30

........
  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.
........
  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
........
  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/python30/Portfile

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


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

Modified: trunk/dports/lang/python30/Portfile
===================================================================
--- trunk/dports/lang/python30/Portfile	2008-06-24 21:59:51 UTC (rev 37819)
+++ trunk/dports/lang/python30/Portfile	2008-06-24 22:01:51 UTC (rev 37820)
@@ -2,86 +2,93 @@
 
 PortSystem 1.0
 
-name			python30
-version			3.0a3
-revision		3
-categories		lang
-platforms		darwin
-maintainers		mww
-description		An interpreted, object-oriented programming language
-long_description	Python is an interpreted, interactive, object-oriented \
-			programming language. This version is an ALPHA release!
+name                    python30
+version                 3.0a3
+revision                4
+set major               3
+set branch              3.0
+categories              lang
+platforms               darwin
+maintainers             mww
 
-homepage		http://www.python.org
-master_sites		http://www.python.org/ftp/python/3.0/
-distname		Python-${version}
-extract.suffix		.tgz
-checksums		md5 ec525b7e7fe4383e8394fab721663252
-patchfiles		patch-setup.py.diff \
-			patch-Makefile.pre.in.diff \
-			patch-Lib-cgi.py.diff
+description             An interpreted, object-oriented programming language
+long_description        Python is an interpreted, interactive, object-oriented \
+                        programming language. This version is an ALPHA release!
 
-depends_lib		port:gettext
-depends_run		port:python_select
-configure.args		--without-readline --enable-shared --enable-ipv6 --disable-tk --enable-framework=${prefix}/Library/Frameworks
+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}/
 
-destroot.target		libpython3.0.dylib frameworkinstall maninstall
+distname                Python-${version}
+extract.suffix          .tgz
 
-post-patch {
-	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
-	xinstall -m 644 ${filespath}/mac_japanese.py Lib/encodings/x_mac_japanese.py
-}
+checksums               md5 ec525b7e7fe4383e8394fab721663252
 
+patchfiles              patch-setup.py \
+                        patch-Makefile.pre.in.diff
+
+depends_lib             port:gettext
+
+configure.args          --enable-shared \
+                        --enable-framework=${prefix}/Library/Frameworks \
+                        --mandir=${prefix}/share/man \
+                        --without-readline \
+                        --disable-tk \
+                        --enable-ipv6
+
+use_parallel_build      no
+
+build.target            all libpython${branch}.dylib
+
+test.run                yes
+test.target             test
+
+destroot.target         frameworkinstall maninstall
+
 post-destroot {
-	system "cd ${destroot}${prefix}/bin && \
-		rm idle pydoc python python-config pythonw smtpd.py"
-	system "cd ${destroot}${prefix}/share/man/man1 && \
-		ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/python.1 python3.0.1"
+        set framewpath ${prefix}/Library/Frameworks/Python.framework
+        set framewdir  ${framewpath}/Versions/${branch}
 
-	system "cd ${destroot}${prefix}/lib && \
-		ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/libpython3.0.dylib && \
-		ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0"
+        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}
+        }
 
-	system "mkdir -p ${destroot}${prefix}/include && \
-		cd ${destroot}${prefix}/include && \
-		ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/include/python3.0"
+        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
 
-	# install select file for python_select
-	xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
-        xinstall -m 644 ${filespath}/python30 ${destroot}${prefix}/etc/select/python/
-	system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \
-		rm -f Headers Resources Python && \
-		rm -f Versions/Current"
+        file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
 
-	system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/ && \
-		gzip python.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 "\n\n\nTo fully complete your installation and make python 3.0 the default, \
-please run\n\nsudo python_select python30\n\n"
+    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" \
-			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"
+variant universal {
+        configure.args-append           --enable-universalsdk
 }
 
-
-livecheck.check		regex
-livecheck.url		http://www.python.org/download/releases/3.0/
-livecheck.regex		/3.0/Python-(\[0-9a-z.\]+)\\.tgz
+livecheck.check         regex
+livecheck.url           ${homepage}download/releases/
+livecheck.regex         Python (${branch}a\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080624/73d0ff5b/attachment-0001.htm 


More information about the macports-changes mailing list