[137727] branches/gsoc15-portfile/portfile-gen/portfile-gen
chunyang at macports.org
chunyang at macports.org
Wed Jun 17 21:38:18 PDT 2015
Revision: 137727
https://trac.macports.org/changeset/137727
Author: chunyang at macports.org
Date: 2015-06-17 21:38:18 -0700 (Wed, 17 Jun 2015)
Log Message:
-----------
portfile-gen: Add github group support
Modified Paths:
--------------
branches/gsoc15-portfile/portfile-gen/portfile-gen
Modified: branches/gsoc15-portfile/portfile-gen/portfile-gen
===================================================================
--- branches/gsoc15-portfile/portfile-gen/portfile-gen 2015-06-18 04:29:07 UTC (rev 137726)
+++ branches/gsoc15-portfile/portfile-gen/portfile-gen 2015-06-18 04:38:18 UTC (rev 137727)
@@ -11,12 +11,13 @@
set MY_VERSION 0.2
-set supportedGroups [list perl5 php python ruby]
+set supportedGroups [list perl5 php python ruby github]
proc printUsage {{channel stderr}} {
+ global supportedGroups
puts $channel "Usage: $::argv0 \[-h\] \[-g portgroup\] <portname> <portversion>"
- puts $channel " -g Specify a port group to use (perl5, python, etc)"
+ puts $channel " -g Specify a port group to use ($supportedGroups)"
puts $channel " -h This help"
puts $channel ""
puts $channel "portname name to use for the port; for group-based ports, don't"
@@ -97,6 +98,11 @@
puts "ruby.setup ${portname} ${portversion}"
puts "categories-append replaceme"
}
+ github {
+ puts "PortGroup github 1.0"
+ puts ""
+ puts "github.setup ${portname} ${portversion}"
+ }
default {
puts ""
puts "name ${portname}"
@@ -131,6 +137,10 @@
}
ruby {
}
+ github {
+ puts ""
+ puts "github.tarball_from replaceme"
+ }
default {
puts ""
puts "homepage replaceme"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150617/bc95ac4e/attachment.html>
More information about the macports-changes
mailing list