[96718] trunk/dports/_resources/port1.0/group/python-1.0.tcl
blair at macports.org
blair at macports.org
Fri Aug 17 15:05:20 PDT 2012
Revision: 96718
https://trac.macports.org/changeset/96718
Author: blair at macports.org
Date: 2012-08-17 15:05:18 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
python-1.0.tcl: rename Python 2.{4,5} files in ${prefix}/bin.
This fixes an inconsistently between ports that work with Python
2.{6,7} where the binary is installed in ${prefix}/Library/Frameworks
and ports that work with Python 2.{4,5} where the binary is installed
into ${prefix}/bin. With this change, by default, all files installed
in ${prefix}/bin end in -${python.branch} so the port doesn't have to
handle different Python versions.
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/python-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl 2012-08-17 21:58:32 UTC (rev 96717)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl 2012-08-17 22:05:18 UTC (rev 96718)
@@ -151,6 +151,12 @@
}
}
}
+ 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}
+ }
+ }
}
set python._addedcode 1
}
@@ -254,6 +260,13 @@
return no
}
}
+ move_binaries {
+ if {${python.version} == 24 || ${python.version} == 25} {
+ return yes
+ } else {
+ return no
+ }
+ }
default {
error "unknown option $var"
}
@@ -268,3 +281,7 @@
options python.link_binaries python.link_binaries_suffix
default python.link_binaries {[python_get_defaults link_binaries]}
default python.link_binaries_suffix {-${python.branch}}
+
+options python.move_binaries python.move_binaries_suffix
+default python.move_binaries {[python_get_defaults move_binaries]}
+default python.move_binaries_suffix {-${python.branch}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/adf6f31c/attachment.html>
More information about the macports-changes
mailing list