[37059] branches/python-frameworks/dports/lang/python25/Portfile

raimue at macports.org raimue at macports.org
Sat May 24 19:45:37 PDT 2008


Revision: 37059
          http://trac.macosforge.org/projects/macports/changeset/37059
Author:   raimue at macports.org
Date:     2008-05-24 19:45:36 -0700 (Sat, 24 May 2008)

Log Message:
-----------
lang/python25:
Different framework approach

Modified Paths:
--------------
    branches/python-frameworks/dports/lang/python25/Portfile

Modified: branches/python-frameworks/dports/lang/python25/Portfile
===================================================================
--- branches/python-frameworks/dports/lang/python25/Portfile	2008-05-25 02:44:25 UTC (rev 37058)
+++ branches/python-frameworks/dports/lang/python25/Portfile	2008-05-25 02:45:36 UTC (rev 37059)
@@ -70,26 +70,31 @@
 destroot.target         frameworkinstall maninstall
 
 post-destroot {
-        set framewdir ${prefix}/Library/Frameworks/Python.framework
+        set framewpath ${prefix}/Library/Frameworks/Python.framework
+        set framewdir  ${framewpath}/Versions/${branch}
 
-        xinstall -m 755 -d ${destroot}${framewdir}/Versions/${branch}/include
-        ln -s ${framewdir}/Versions/${branch}/bin/pydoc ${destroot}${prefix}/bin/pydoc[string map {. {}} ${branch}]
-        ln -s ${framewdir}/Versions/${branch}/lib/python${branch} ${destroot}${prefix}/lib/python${branch}
-        ln -s ${framewdir}/Versions/${branch}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib/libpython${version}.dylib
+        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}
+        }
 
-        ln -s ${framewdir}/Versions/${branch}/include/python${branch} ${destroot}${prefix}/include/python${branch}
+        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}
         }
-        ln -s ${framewdir}/Versions/${branch}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
-        file delete ${destroot}${prefix}/share/man/man1/python.1
+        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 ${destroot}${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
+        }
 
         foreach dir { Headers Resources Python Versions/Current } {
-            file delete ${destroot}${framewdir}/${dir}
+            file delete ${destroot}${framewpath}/${dir}
         }
-        ln -s Versions/Current/lib ${destroot}${framewdir}/Libraries
 
         # install select file for python_select
         xinstall -m 755 -d ${destroot}${prefix}/etc/select/python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080524/d639370e/attachment-0001.htm 


More information about the macports-changes mailing list