[66323] trunk/dports/_resources/port1.0/group

ryandesign at macports.org ryandesign at macports.org
Fri Apr 9 02:24:02 PDT 2010


Revision: 66323
          http://trac.macports.org/changeset/66323
Author:   ryandesign at macports.org
Date:     2010-04-09 02:23:59 -0700 (Fri, 09 Apr 2010)
Log Message:
-----------
python26-1.0.tcl, python27-1.0.tcl: give ports the option of changing the binary symlink suffix, e.g. to the empty string, useful for ports that are not python modules but which use the python portgroups

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/python26-1.0.tcl
    trunk/dports/_resources/port1.0/group/python27-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/python26-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python26-1.0.tcl	2010-04-09 09:00:11 UTC (rev 66322)
+++ trunk/dports/_resources/port1.0/group/python26-1.0.tcl	2010-04-09 09:23:59 UTC (rev 66323)
@@ -60,11 +60,13 @@
 
 options         python.link_binaries
 default python.link_binaries yes
+options         python.link_binaries_suffix
+default python.link_binaries_suffix -${python.branch}
 post-destroot {
     if {${python.link_binaries}} {
         foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
             if {[catch {file type "${destroot}${prefix}/bin/${bin}-${python.branch}"}]} {
-                ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}-${python.branch}"
+                ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
             }
         }
     }

Modified: trunk/dports/_resources/port1.0/group/python27-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python27-1.0.tcl	2010-04-09 09:00:11 UTC (rev 66322)
+++ trunk/dports/_resources/port1.0/group/python27-1.0.tcl	2010-04-09 09:23:59 UTC (rev 66323)
@@ -60,11 +60,13 @@
 
 options         python.link_binaries
 default python.link_binaries yes
+options         python.link_binaries_suffix
+default python.link_binaries_suffix -${python.branch}
 post-destroot {
     if {${python.link_binaries}} {
         foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
             if {[catch {file type "${destroot}${prefix}/bin/${bin}-${python.branch}"}]} {
-                ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}-${python.branch}"
+                ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
             }
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100409/d03bf353/attachment-0001.html>


More information about the macports-changes mailing list