[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Wed Apr 22 18:49:02 PDT 2015


Page "PortfileRecipes" was changed by pixilla at macports.org
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=85>
Revision 85
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 84)
+++ PortfileRecipes (version: 85)
@@ -32,14 +32,16 @@
 || 13.0.0 || 10.9 || Mavericks ||
 || 14.0.0 || 10.10 || Yosemite ||
 
-{{{
-set check.version 13.0.0
-if {[vercmp ${check.version} ${os.version}] = 1} {
+Note: os.major is the left most dot separated number of the darwin version.
+
+{{{
+set check.os.major 13
+if {${check.os.major} < ${os.major}} {
     puts "Yosemite or newer"
-} elseif {[vercmp ${check.version} ${os.version}] = 0} {
-    puts "Mavricks"
-}
-} elseif {[vercmp ${check.version} ${os.version}] = -1} {
+} elseif {${check.os.major} == ${os.major}]} {
+    puts "Mavericks"
+}
+} elseif {${check.os.major} > ${os.major}} {
     puts "Mountain Lion or older"
 }
 }}}
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'PortfileRecipes' page.
If it was not you, please report to .


More information about the macports-changes mailing list