[137767] branches/gsoc15-portfile/port-create

chunyang at macports.org chunyang at macports.org
Fri Jun 19 00:46:37 PDT 2015


Revision: 137767
          https://trac.macports.org/changeset/137767
Author:   chunyang at macports.org
Date:     2015-06-19 00:46:37 -0700 (Fri, 19 Jun 2015)
Log Message:
-----------
port-create: Remove github group support, moved to github2port

Modified Paths:
--------------
    branches/gsoc15-portfile/port-create

Modified: branches/gsoc15-portfile/port-create
===================================================================
--- branches/gsoc15-portfile/port-create	2015-06-19 07:37:31 UTC (rev 137766)
+++ branches/gsoc15-portfile/port-create	2015-06-19 07:46:37 UTC (rev 137767)
@@ -34,26 +34,6 @@
     }
 }
 
-# jq(1) wrapper
-proc parse_group_json {query} {
-    set json groups.json
-    return [exec jq $query $json]
-}
-
-proc get_group {group} {
-    switch $group {
-        github {
-            set github(PortGroup)            [parse_group_json .github.PortGroup]
-            set github(github.setup)         [parse_group_json .github.setup]
-            set github(github.tarball_from)  [parse_group_json .github.tarball_from]
-            return [array get github]
-        }
-        default {
-            error "Unsupported group $group"
-        }
-    }
-}
-
 proc read_template {file} {
     set fp [open $file r]
     set template [read $fp]
@@ -161,8 +141,3 @@
 } else {
     puts -nonewline $template
 }
-
-# Test github group option
-if {[expr {[string length $params(group)] > 0}]} {
-    puts [get_group $params(group)]
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150619/02a8f02e/attachment-0001.html>


More information about the macports-changes mailing list