[57392] trunk/dports/sysutils/python_select

raimue at macports.org raimue at macports.org
Thu Sep 10 07:06:10 PDT 2009


Revision: 57392
          http://trac.macports.org/changeset/57392
Author:   raimue at macports.org
Date:     2009-09-10 07:06:09 -0700 (Thu, 10 Sep 2009)
Log Message:
-----------
sysutils/python_select:
Use select::install, which replaces some variables in the select files.
Fixes #21268 (Python_select fails for a non-standard framework path)

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

Modified: trunk/dports/sysutils/python_select/Portfile
===================================================================
--- trunk/dports/sysutils/python_select/Portfile	2009-09-10 14:04:44 UTC (rev 57391)
+++ trunk/dports/sysutils/python_select/Portfile	2009-09-10 14:06:09 UTC (rev 57392)
@@ -1,9 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup select 1.0
 
 name                    python_select
 version                 0.2.1
+revision                1
 categories              sysutils
 platforms               darwin
 maintainers             raimue
@@ -21,13 +23,13 @@
 
 # install all files
 post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
-    xinstall -m 644 -W ${filespath} base none ${destroot}${prefix}/etc/select/python
+    select::install python ${filespath}/base
+    select::install python ${filespath}/none
 }
 
 platform darwin 7 {
     post-destroot {
-        xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
+        select::install python ${filespath}/python23-apple
     }
 
     post-activate {
@@ -39,7 +41,7 @@
 
 platform darwin 8 {
     post-destroot {
-        xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
+        select::install python ${filespath}/python23-apple
     }
 
     post-activate {
@@ -51,7 +53,7 @@
 
 platform darwin 9 {
     post-destroot {
-        xinstall -m 644 -W ${filespath} python25-apple ${destroot}${prefix}/etc/select/python
+        select::install python ${filespath}/python25-apple
     }
 
     post-activate {
@@ -63,7 +65,7 @@
 
 platform darwin 10 {
     post-destroot {
-        xinstall -m 644 -W ${filespath} python26-apple ${destroot}${prefix}/etc/select/python
+        select::install python ${filespath}/python26-apple
     }
 
     post-activate {

Modified: trunk/dports/sysutils/python_select/files/base
===================================================================
--- trunk/dports/sysutils/python_select/files/base	2009-09-10 14:04:44 UTC (rev 57391)
+++ trunk/dports/sysutils/python_select/files/base	2009-09-10 14:06:09 UTC (rev 57392)
@@ -6,7 +6,7 @@
 bin/smtpd.py
 share/man/man1/python.1
 share/man/man1/python.1.gz
-Library/Frameworks/Python.framework/Versions/Current
-Library/Frameworks/Python.framework/Headers
-Library/Frameworks/Python.framework/Resources
-Library/Frameworks/Python.framework/Python
+${frameworks_dir}/Python.framework/Versions/Current
+${frameworks_dir}/Python.framework/Headers
+${frameworks_dir}/Python.framework/Resources
+${frameworks_dir}/Python.framework/Python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090910/1a78d6bf/attachment.html>


More information about the macports-changes mailing list