[88927] trunk/dports/_resources/port1.0/group/github-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Sat Jan 14 22:26:32 PST 2012


Revision: 88927
          http://trac.macports.org/changeset/88927
Author:   ryandesign at macports.org
Date:     2012-01-14 22:26:28 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
github-1.0.tcl: new portgroup

Added Paths:
-----------
    trunk/dports/_resources/port1.0/group/github-1.0.tcl

Added: trunk/dports/_resources/port1.0/group/github-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/github-1.0.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/group/github-1.0.tcl	2012-01-15 06:26:28 UTC (rev 88927)
@@ -0,0 +1,66 @@
+# $Id$
+# 
+# Copyright (c) 2012 The MacPorts Project
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+# 
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. Neither the name of The MacPorts Project nor the names of its
+#    contributors may be used to endorse or promote products derived from
+#    this software without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 
+# 
+# This PortGroup sets up default behaviors for projects hosted at github.
+# 
+# Usage:
+# 
+#   PortGroup               github 1.0
+#   github.setup            author project version [tag_prefix]
+
+options github.author github.project github.version github.tag_prefix github.homepage
+
+default github.homepage {https://github.com/${github.author}/${github.project}}
+
+proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
+    global github.author github.project github.version github.tag_prefix github.homepage
+    
+    github.author           ${gh_author}
+    github.project          ${gh_project}
+    github.version          ${gh_version}
+    github.tag_prefix       ${gh_tag_prefix}
+    
+    name                    ${github.project}
+    version                 ${github.version}
+    homepage                ${github.homepage}
+    master_sites            ${github.homepage}/tarball/[join ${github.tag_prefix} ""]${github.version}
+    distname                ${github.project}-${github.version}
+    
+    post-extract {
+        if {"standard" == ${fetch.type}} {
+            move [glob ${workpath}/*] ${worksrcpath}
+        }
+    }
+    
+    livecheck.type          regex
+    livecheck.url           ${github.homepage}/tags
+    livecheck.regex         tarball/[join ${github.tag_prefix} ""](\[^"\]+)
+}


Property changes on: trunk/dports/_resources/port1.0/group/github-1.0.tcl
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/07bba864/attachment.html>


More information about the macports-changes mailing list