Revision
104749
Author
ryandesign@macports.org
Date
2013-04-01 16:55:51 -0700 (Mon, 01 Apr 2013)

Log Message

gnutls: use branch variable

Modified Paths

Diff

Modified: trunk/dports/devel/gnutls/Portfile (104748 => 104749)


--- trunk/dports/devel/gnutls/Portfile	2013-04-01 23:52:38 UTC (rev 104748)
+++ trunk/dports/devel/gnutls/Portfile	2013-04-01 23:55:51 UTC (rev 104749)
@@ -6,6 +6,7 @@
 
 name            gnutls
 version         3.1.10
+set branch      [join [lrange [split ${version} .] 0 1] .]
 categories      devel security
 # yes, some of the libs are GPL only
 license         LGPL-2.1+ GPL-3+
@@ -20,7 +21,7 @@
     not include any patented algorithms \
     and is available under the GNU Lesser General Public License (LGPL).
 
-master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1
+master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}
 
 checksums       md5     9e73aa5c3ef3b7358159a31302e25aa7 \
                 rmd160  a4b3118fb6f0e9032f799079acc04ed8e523dabd \