Revision: 91448 https://trac.macports.org/changeset/91448 Author: ryandesign@macports.org Date: 2012-04-01 21:59:05 -0700 (Sun, 01 Apr 2012) Log Message: ----------- github-1.0.tcl: set master_sites as a default, so that changes in its component parts by the portfile are inherited; see #33826 Modified Paths: -------------- trunk/dports/_resources/port1.0/group/github-1.0.tcl Modified: trunk/dports/_resources/port1.0/group/github-1.0.tcl =================================================================== --- trunk/dports/_resources/port1.0/group/github-1.0.tcl 2012-04-02 02:10:51 UTC (rev 91447) +++ trunk/dports/_resources/port1.0/group/github-1.0.tcl 2012-04-02 04:59:05 UTC (rev 91448) @@ -45,17 +45,18 @@ default github.master_sites {${github.homepage}/tarball/[join ${github.tag_prefix} ""]${github.version}} default github.tarball_from {tags} +default master_sites {${github.master_sites}} + option_proc github.tarball_from handle_tarball_from proc handle_tarball_from {option action args} { - global github.author github.project github.master_sites master_sites + global github.author github.project github.master_sites # keeping the default at tags like many portfiles already do # the port writer can set github.tarball_from to "downloads" and have the URI path accordingly changed if {[string equal ${action} "set"] && $args == "downloads"} { github.tarball_from ${args} github.master_sites https://github.com/downloads/${github.author}/${github.project} - master_sites ${github.master_sites} } } @@ -72,7 +73,6 @@ homepage ${github.homepage} git.url ${github.homepage}.git git.branch [join ${github.tag_prefix}]${github.version} - master_sites ${github.master_sites} distname ${github.project}-${github.version} fetch.ignore_sslcert yes
participants (1)
-
ryandesign@macports.org