[96712] trunk/dports/_resources/port1.0/group/python25-1.0.tcl

blair at macports.org blair at macports.org
Fri Aug 17 13:53:30 PDT 2012


Revision: 96712
          https://trac.macports.org/changeset/96712
Author:   blair at macports.org
Date:     2012-08-17 13:53:28 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
python25-1.0.tcl: rename files in ${prefix}/bin to end in -${python.branch}.

This makes this group consistent in behavior for files in
${prefix}/bin with higher numbered Python groups, which allows
consolidation between py2{5,6,7}-* port into a single py- port.

Inspired by code in python26-1.0.tcl.

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

Modified: trunk/dports/_resources/port1.0/group/python25-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python25-1.0.tcl	2012-08-17 20:21:52 UTC (rev 96711)
+++ trunk/dports/_resources/port1.0/group/python25-1.0.tcl	2012-08-17 20:53:28 UTC (rev 96712)
@@ -78,3 +78,15 @@
 pre-destroot	{
 	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
 }
+
+options         python.move_binaries python.move_binaries_suffix
+default python.move_binaries yes
+default python.move_binaries_suffix {-${python.branch}}
+post-destroot {
+    if {${python.move_binaries}} {
+        foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
+            move ${destroot}${prefix}/bin/${bin} \
+                ${destroot}${prefix}/bin/${bin}${python.move_binaries_suffix}
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/46a2018f/attachment.html>


More information about the macports-changes mailing list