# HG changeset patch
# User Sean Farley <sean@mcs.anl.gov>
# Date 1333495755 18000
# Node ID 53c6520cd295d825273236df1f6526b2d6ea4c5b
# Parent 6b7b46e902aac10dbe78bab09401ef593f51c1cd
github: whitespace
diff --git a/dports/_resources/port1.0/group/github-1.0.tcl b/dports/_resources/port1.0/group/github-1.0.tcl
a
|
b
|
|
1 | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 | 2 | # $Id$ |
3 | | # |
| 3 | # |
4 | 4 | # Copyright (c) 2012 The MacPorts Project |
5 | 5 | # All rights reserved. |
6 | | # |
| 6 | # |
7 | 7 | # Redistribution and use in source and binary forms, with or without |
8 | 8 | # modification, are permitted provided that the following conditions are |
9 | 9 | # met: |
10 | | # |
| 10 | # |
11 | 11 | # 1. Redistributions of source code must retain the above copyright |
12 | 12 | # notice, this list of conditions and the following disclaimer. |
13 | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
14 | 14 | # notice, this list of conditions and the following disclaimer in the |
15 | 15 | # documentation and/or other materials provided with the distribution. |
16 | 16 | # 3. Neither the name of The MacPorts Project nor the names of its |
17 | 17 | # contributors may be used to endorse or promote products derived from |
18 | 18 | # this software without specific prior written permission. |
19 | | # |
| 19 | # |
20 | 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
21 | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
22 | 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
23 | 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
24 | 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
… |
… |
|
26 | 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
27 | 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
28 | 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
29 | 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
30 | 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 | | # |
32 | | # |
| 31 | # |
| 32 | # |
33 | 33 | # This PortGroup sets up default behaviors for projects hosted at github. |
34 | | # |
| 34 | # |
35 | 35 | # Usage: |
36 | | # |
| 36 | # |
37 | 37 | # PortGroup github 1.0 |
38 | 38 | # github.setup author project version [tag_prefix] |
39 | 39 | |
40 | 40 | options github.author github.project github.version github.tag_prefix |
41 | 41 | options github.homepage github.raw github.master_sites github.tarball_from |
… |
… |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
63 | 63 | proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} { |
64 | 64 | global github.author github.project github.version github.tag_prefix github.homepage github.master_sites |
65 | | |
| 65 | |
66 | 66 | github.author ${gh_author} |
67 | 67 | github.project ${gh_project} |
68 | 68 | github.version ${gh_version} |
69 | 69 | github.tag_prefix ${gh_tag_prefix} |
70 | | |
| 70 | |
71 | 71 | name ${github.project} |
72 | 72 | version ${github.version} |
73 | 73 | homepage ${github.homepage} |
74 | 74 | git.url ${github.homepage}.git |
75 | 75 | git.branch [join ${github.tag_prefix}]${github.version} |
76 | 76 | distname ${github.project}-${github.version} |
77 | 77 | fetch.ignore_sslcert yes |
78 | | |
| 78 | |
79 | 79 | post-extract { |
80 | 80 | if {![file exists ${worksrcpath}] && "standard" == ${fetch.type} && \ |
81 | 81 | ${master_sites} == ${github.master_sites} && [llength ${distfiles}] > 0} { |
82 | 82 | move [glob ${workpath}/*] ${worksrcpath} |
83 | 83 | } |
84 | 84 | } |
85 | | |
| 85 | |
86 | 86 | # if the length of gh_version is 40 then this means the port sent an actual commit hash so we |
87 | 87 | # should check the rss feed for a new one |
88 | 88 | if {[string length ${github.version}] == 40} { |
89 | 89 | livecheck.type regexm |
90 | 90 | livecheck.url ${github.homepage}/commits/master.atom |