[58488] trunk/dports/python/py26-sip/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Tue Sep 29 10:40:25 PDT 2009


Revision: 58488
          http://trac.macports.org/changeset/58488
Author:   macsforever2000 at macports.org
Date:     2009-09-29 10:40:24 -0700 (Tue, 29 Sep 2009)
Log Message:
-----------
Changes to make this portfile more like py25-sip.

Modified Paths:
--------------
    trunk/dports/python/py26-sip/Portfile

Modified: trunk/dports/python/py26-sip/Portfile
===================================================================
--- trunk/dports/python/py26-sip/Portfile	2009-09-29 17:40:15 UTC (rev 58487)
+++ trunk/dports/python/py26-sip/Portfile	2009-09-29 17:40:24 UTC (rev 58488)
@@ -36,17 +36,6 @@
 depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
 set pybin ${prefix}/bin/python${pyversion}
 
-# For linking sip.so, replace
-#    -F${frameworks_dir}/Library/Frameworks -framework Python
-#    with
-#    ${frameworks_dir}/Python.framework/Versions/${pyversion}/Python
-
-post-patch {
-    reinplace \
-        "s|__MacPorts_Required_Python_Lib__|${frameworks_dir}/Python.framework/Versions/${pyversion}/Python|" \
-        ${worksrcpath}/siputils.py
-}
-
 configure.cmd ${pybin} configure.py
 
 pre-configure {
@@ -71,6 +60,9 @@
     file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE LICENSE-GPL2.txt LICENSE-GPL3.txt NEWS README \
         ${destroot}${prefix}/share/doc/${name}
+
+    system "${prefix}/bin/python${pyversion} ${frameworks_dir}/Python.framework/Versions/${pyversion}/lib/python${pyversion}/compileall.py ${destroot}${prefix}"
+    system "${prefix}/bin/python${pyversion} -O ${frameworks_dir}/Python.framework/Versions/${pyversion}/lib/python${pyversion}/compileall.py ${destroot}${prefix}"
 }
 
 livecheck.type   regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090929/652199ed/attachment.html>


More information about the macports-changes mailing list