[41217] trunk/dports/lang/python24/Portfile

blb at macports.org blb at macports.org
Mon Oct 27 22:58:05 PDT 2008


Revision: 41217
          http://trac.macports.org/changeset/41217
Author:   blb at macports.org
Date:     2008-10-27 22:58:04 -0700 (Mon, 27 Oct 2008)
Log Message:
-----------
lang/python24 - calculate major and branch values instead of hard-coding

Modified Paths:
--------------
    trunk/dports/lang/python24/Portfile

Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile	2008-10-28 05:30:57 UTC (rev 41216)
+++ trunk/dports/lang/python24/Portfile	2008-10-28 05:58:04 UTC (rev 41217)
@@ -5,8 +5,8 @@
 name                    python24
 version                 2.4.5
 revision                3
-set major               2
-set branch              2.4
+set major               [lindex [split $version .] 0]
+set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
 platforms               darwin
 maintainers             nomaintainer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081027/d1df5bdb/attachment-0001.html>


More information about the macports-changes mailing list