Ignore:
Timestamp:
Jul 21, 2014, 10:22:31 AM (5 years ago)
Author:
ryandesign@…
Message:

github-1.0.tcl: only set name in github.setup if it has not already been set (#40831)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/github-1.0.tcl

    r120144 r122343  
    4141# Then, replace the name and version lines with:
    4242#
    43 #   github.setup            author project version [tag_prefix]
     43#   github.setup        author project version [tag_prefix]
    4444#
    4545# The port's name will be set to the github project name. If that's not correct,
     
    143143
    144144proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
    145     global extract.suffix github.author github.project github.version github.tag_prefix github.homepage github.master_sites
     145    global extract.suffix github.author github.project github.version github.tag_prefix github.homepage github.master_sites PortInfo
    146146
    147147    github.author           ${gh_author}
     
    150150    github.tag_prefix       ${gh_tag_prefix}
    151151
    152     name                    ${github.project}
     152    if {!([info exists PortInfo(name)] && (${PortInfo(name)} ne ${github.project}))} {
     153        name                ${github.project}
     154    }
     155
    153156    version                 ${github.version}
    154157    homepage                ${github.homepage}
Note: See TracChangeset for help on using the changeset viewer.