[42212] trunk/dports/lang/python26/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Nov 16 13:06:28 PST 2008


Revision: 42212
          http://trac.macports.org/changeset/42212
Author:   mcalhoun at macports.org
Date:     2008-11-16 13:06:28 -0800 (Sun, 16 Nov 2008)
Log Message:
-----------
python26: Do not try a hybridized install into ${prefix} and ${frameworks_dir}.
Only install as a framework.
Add mcalhoun as a maintainer.
Fixes #16933 (permission of maintainer).

Modified Paths:
--------------
    trunk/dports/lang/python26/Portfile

Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile	2008-11-16 20:56:45 UTC (rev 42211)
+++ trunk/dports/lang/python26/Portfile	2008-11-16 21:06:28 UTC (rev 42212)
@@ -4,18 +4,18 @@
 
 name                    python26
 version                 2.6
-revision                2
+revision                3
 set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
 platforms               darwin
-maintainers             blb
+maintainers             blb mcalhoun
 
 description             An interpreted, object-oriented programming language
 long_description        Python is an interpreted, interactive, object-oriented \
                         programming language.
 
-homepage                http://www.python.org
+homepage                http://www.python.org/
 master_sites            ${homepage}/ftp/python/${version}/ \
                         ftp://ftp.python.org/pub/python/${version}/
 # ftp.python.jp works, but no 2.6 as of 2008-10-05
@@ -51,9 +51,6 @@
 
 configure.args          --enable-shared \
                         --enable-framework=${frameworks_dir} \
-                        --mandir=${prefix}/share/man \
-                        --without-readline \
-                        --disable-tk \
                         --enable-ipv6
 
 use_parallel_build      no
@@ -64,7 +61,9 @@
       ${worksrcpath}/Mac/Makefile.in ${worksrcpath}/Mac/IDLE/Makefile.in \
       ${worksrcpath}/Mac/Tools/Doc/setup.py \
       ${worksrcpath}/Mac/PythonLauncher/Makefile.in
-   reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \
+
+   # See http://trac.macports.org/changeset/37861
+   reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \
       ${worksrcpath}/Mac/PythonLauncher/Makefile.in
 }
 
@@ -79,28 +78,12 @@
    set framewpath ${frameworks_dir}/Python.framework
    set framewdir  ${framewpath}/Versions/${branch}
 
-   foreach dir { lib include } {
-      file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
-      ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
-   }
-
-   ln -s ${framewdir}/Python ${destroot}${prefix}/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}
    }
 
+   ln -s ${framewdir}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
+
    # install select file for python_select
    xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
    xinstall -m 644 ${filespath}/${name} ${destroot}${prefix}/etc/select/python/
@@ -110,6 +93,7 @@
    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"
+   ui_msg "The program IDLE will not run until py26-tkinter is installed.\n"
 }
 
 platform darwin 7 {
@@ -141,16 +125,16 @@
 
 variant universal {
    if {![info exists configure.universal_sysroot]} {
-      if {[file exists /Developer/SDKs/MacOSX10.5.sdk]} { 
-         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.5.sdk" 
-      } else { 
-         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.4u.sdk" 
-      } 
+      if {[file exists /Developer/SDKs/MacOSX10.5.sdk]} {
+         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.5.sdk"
+      } else {
+         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.4u.sdk"
+      }
    }
    configure.args-append   --enable-universalsdk=${configure.universal_sysroot}
 }
 
 livecheck.check         regex
 livecheck.url           ${homepage}download/releases/
-livecheck.regex         Python (${branch}.\[0-9\]+)
+livecheck.regex         Python (${branch}(?:\\.\\d+)*)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081116/8cce667b/attachment.html>


More information about the macports-changes mailing list