[112573] trunk/dports/_resources/port1.0/group/github-1.0.tcl
jberry at macports.org
jberry at macports.org
Sat Oct 26 12:09:19 PDT 2013
Revision: 112573
https://trac.macports.org/changeset/112573
Author: jberry at macports.org
Date: 2013-10-26 12:09:19 -0700 (Sat, 26 Oct 2013)
Log Message:
-----------
Allow the github portgroup to specify that tarballs should come from the archive area
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 2013-10-26 18:51:29 UTC (rev 112572)
+++ trunk/dports/_resources/port1.0/group/github-1.0.tcl 2013-10-26 19:09:19 UTC (rev 112573)
@@ -52,13 +52,17 @@
default github.tarball_from {tags}
option_proc github.tarball_from handle_tarball_from
proc handle_tarball_from {option action args} {
- global github.author github.project github.master_sites
-
+ global github.author github.project github.tag_prefix github.version 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 {${action} eq "set" && $args eq "downloads"} {
github.tarball_from ${args}
github.master_sites https://github.com/downloads/${github.author}/${github.project}
+ } elseif {${action} eq "set" && $args eq "archive"} {
+ github.tarball_from ${args}
+ github.master_sites https://github.com/${github.author}/${github.project}/archive
+ distname [join ${github.tag_prefix} ""]${github.version}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131026/263a10be/attachment.html>
More information about the macports-changes
mailing list