[137859] branches/gsoc15-portfile/port-create
chunyang at macports.org
chunyang at macports.org
Mon Jun 22 00:08:49 PDT 2015
Revision: 137859
https://trac.macports.org/changeset/137859
Author: chunyang at macports.org
Date: 2015-06-22 00:08:49 -0700 (Mon, 22 Jun 2015)
Log Message:
-----------
port-create: Support github option by using github2port
Modified Paths:
--------------
branches/gsoc15-portfile/port-create
Modified: branches/gsoc15-portfile/port-create
===================================================================
--- branches/gsoc15-portfile/port-create 2015-06-22 06:51:25 UTC (rev 137858)
+++ branches/gsoc15-portfile/port-create 2015-06-22 07:08:49 UTC (rev 137859)
@@ -34,6 +34,17 @@
}
}
+proc get_group {group} {
+ switch $group {
+ github {
+ puts [exec github2port/github2port https://github.com/jonas/tig/archive/tig-2.1.1.tar.gz]
+ }
+ default {
+ error "Unsupported group $group"
+ }
+ }
+}
+
proc read_template {file} {
set fp [open $file r]
set template [read $fp]
@@ -118,6 +129,11 @@
exit 0
}
+if {[expr {[string length $params(group)] > 0}]} {
+ get_group $params(group)
+ exit 0
+}
+
if {[expr {[string length $params(url)] > 0}]} {
set tarball [get_tarball_filename $params(url)]
set name [get_name $tarball]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150622/63c78fa6/attachment.html>
More information about the macports-changes
mailing list