[122343] trunk/dports/_resources/port1.0/group/github-1.0.tcl
ryandesign at macports.org
ryandesign at macports.org
Mon Jul 21 03:22:31 PDT 2014
Revision: 122343
https://trac.macports.org/changeset/122343
Author: ryandesign at macports.org
Date: 2014-07-21 03:22:31 -0700 (Mon, 21 Jul 2014)
Log Message:
-----------
github-1.0.tcl: only set name in github.setup if it has not already been set (#40831)
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 2014-07-21 09:26:15 UTC (rev 122342)
+++ trunk/dports/_resources/port1.0/group/github-1.0.tcl 2014-07-21 10:22:31 UTC (rev 122343)
@@ -40,7 +40,7 @@
#
# Then, replace the name and version lines with:
#
-# github.setup author project version [tag_prefix]
+# github.setup author project version [tag_prefix]
#
# The port's name will be set to the github project name. If that's not correct,
# override it by setting the port name as usual, for example:
@@ -142,14 +142,17 @@
}
proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
- global extract.suffix github.author github.project github.version github.tag_prefix github.homepage github.master_sites
+ global extract.suffix github.author github.project github.version github.tag_prefix github.homepage github.master_sites PortInfo
github.author ${gh_author}
github.project ${gh_project}
github.version ${gh_version}
github.tag_prefix ${gh_tag_prefix}
- name ${github.project}
+ if {!([info exists PortInfo(name)] && (${PortInfo(name)} ne ${github.project}))} {
+ name ${github.project}
+ }
+
version ${github.version}
homepage ${github.homepage}
git.url ${github.homepage}.git
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140721/971a92a3/attachment.html>
More information about the macports-changes
mailing list