Ticket #33889: github-whitespace.patch

File github-whitespace.patch, 3.8 KB (added by seanfarley (Sean Farley), 12 years ago)
  • dports/_resources/port1.0/group/github-1.0.tcl

    # 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  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2012 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
    1313# 2. Redistributions in binary form must reproduce the above copyright
    1414#    notice, this list of conditions and the following disclaimer in the
    1515#    documentation and/or other materials provided with the distribution.
    1616# 3. Neither the name of The MacPorts Project nor the names of its
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    2222# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    2323# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    2424# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     
    2626# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    2727# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    2828# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup sets up default behaviors for projects hosted at github.
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               github 1.0
    3838#   github.setup            author project version [tag_prefix]
    3939
    4040options github.author github.project github.version github.tag_prefix
    4141options github.homepage github.raw github.master_sites github.tarball_from
     
    6060    }
    6161}
    6262
    6363proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
    6464    global github.author github.project github.version github.tag_prefix github.homepage github.master_sites
    65    
     65
    6666    github.author           ${gh_author}
    6767    github.project          ${gh_project}
    6868    github.version          ${gh_version}
    6969    github.tag_prefix       ${gh_tag_prefix}
    70    
     70
    7171    name                    ${github.project}
    7272    version                 ${github.version}
    7373    homepage                ${github.homepage}
    7474    git.url                 ${github.homepage}.git
    7575    git.branch              [join ${github.tag_prefix}]${github.version}
    7676    distname                ${github.project}-${github.version}
    7777    fetch.ignore_sslcert    yes
    78    
     78
    7979    post-extract {
    8080        if {![file exists ${worksrcpath}] && "standard" == ${fetch.type} && \
    8181            ${master_sites} == ${github.master_sites} && [llength ${distfiles}] > 0} {
    8282            move [glob ${workpath}/*] ${worksrcpath}
    8383        }
    8484    }
    85    
     85
    8686    # if the length of gh_version is 40 then this means the port sent an actual commit hash so we
    8787    # should check the rss feed for a new one
    8888    if {[string length ${github.version}] == 40} {
    8989        livecheck.type          regexm
    9090        livecheck.url           ${github.homepage}/commits/master.atom