[44662] trunk/dports/sysutils/python_select/Portfile

raimue at macports.org raimue at macports.org
Thu Jan 1 14:54:16 PST 2009


Revision: 44662
          http://trac.macports.org/changeset/44662
Author:   raimue at macports.org
Date:     2009-01-01 14:54:16 -0800 (Thu, 01 Jan 2009)
Log Message:
-----------
sysutils/python_select:
Update python_select to version 0.2, use post-activate hook for default selection

Modified Paths:
--------------
    trunk/dports/sysutils/python_select/Portfile

Modified: trunk/dports/sysutils/python_select/Portfile
===================================================================
--- trunk/dports/sysutils/python_select/Portfile	2009-01-01 22:52:38 UTC (rev 44661)
+++ trunk/dports/sysutils/python_select/Portfile	2009-01-01 22:54:16 UTC (rev 44662)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name                    python_select
-version                 0.1
-revision                4
+version                 0.2
 categories              sysutils
 platforms               darwin
 maintainers             raimue
@@ -16,7 +15,7 @@
 homepage                http://svn.macports.org/repository/macports/contrib/select/
 master_sites            ${homepage}
 distname                select-${version}
-checksums               sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4
+checksums               sha1 6569edfb92659523d5b4c91c8880efeec69c43da
 
 configure.args          --mandir=${prefix}/share/man --name=python
 
@@ -29,22 +28,37 @@
 platform darwin 7 {
     post-destroot {
         xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
-        system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
     }
+
+    post-activate {
+        if {[exec ${prefix}/bin/${name} -s] == "none"} {
+            system "${destroot}${prefix}/bin/${name} python23-apple"
+        }
+    }
 }
 
 platform darwin 8 {
     post-destroot {
         xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
-        system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
     }
+
+    post-activate {
+        if {[exec ${prefix}/bin/${name} -s] == "none"} {
+            system "${destroot}${prefix}/bin/${name} python23-apple"
+        }
+    }
 }
 
 platform darwin 9 {
     post-destroot {
         xinstall -m 644 -W ${filespath} python25-apple ${destroot}${prefix}/etc/select/python
-        system "${destroot}${prefix}/bin/${name} -i ${destroot} python25-apple"
     }
+
+    post-activate {
+        if {[exec ${prefix}/bin/${name} -s] == "none"} {
+            system "${prefix}/bin/${name} python25-apple"
+        }
+    }
 }
 
 livecheck.check    none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090101/97aad055/attachment.html>


More information about the macports-changes mailing list