[39313] trunk/dports/lang/gambit-c/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Aug 17 15:59:17 PDT 2008


Revision: 39313
          http://trac.macosforge.org/projects/macports/changeset/39313
Author:   ryandesign at macports.org
Date:     2008-08-17 15:59:17 -0700 (Sun, 17 Aug 2008)
Log Message:
-----------
gambit-c: reuse ${version} in master_sites and distname

Modified Paths:
--------------
    trunk/dports/lang/gambit-c/Portfile

Modified: trunk/dports/lang/gambit-c/Portfile
===================================================================
--- trunk/dports/lang/gambit-c/Portfile	2008-08-17 22:15:49 UTC (rev 39312)
+++ trunk/dports/lang/gambit-c/Portfile	2008-08-17 22:59:17 UTC (rev 39313)
@@ -4,6 +4,7 @@
 
 name                    gambit-c
 version                 4.2.8
+set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang scheme
 platforms               darwin
 maintainers             arto.bendiken at gmail.com
@@ -23,9 +24,8 @@
                         numbers), and complex numbers.
 
 homepage                http://www.iro.umontreal.ca/~gambit/
-master_sites            ${homepage}/download/gambit/v4.2/source/
-# FIXME do some Tcl 's/./_/'
-distname                gambc-v4_2_8
+master_sites            ${homepage}download/gambit/v${branch}/source/
+distname                gambc-v[strsed ${version} {g/\./_/}]
 extract.suffix          .tgz
 checksums               sha1 785cb0667c7bfb554cd584413eed8bdb9f4a6077
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080817/8085b5b0/attachment.html 


More information about the macports-changes mailing list