Changeset 112573


Ignore:
Timestamp:
Oct 26, 2013, 7:09:19 PM (6 years ago)
Author:
jberry@…
Message:

Allow the github portgroup to specify that tarballs should come from the archive area

File:
1 edited

Legend:

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

    r112098 r112573  
    5353option_proc github.tarball_from handle_tarball_from
    5454proc handle_tarball_from {option action args} {
    55     global github.author github.project github.master_sites
    56 
     55    global github.author github.project github.tag_prefix github.version github.master_sites
     56   
    5757    # keeping the default at tags like many portfiles already do
    5858    # the port writer can set github.tarball_from to "downloads" and have the URI path accordingly changed
     
    6060        github.tarball_from ${args}
    6161        github.master_sites https://github.com/downloads/${github.author}/${github.project}
     62    } elseif {${action} eq "set" && $args eq "archive"} {
     63        github.tarball_from ${args}
     64        github.master_sites https://github.com/${github.author}/${github.project}/archive
     65        distname            [join ${github.tag_prefix} ""]${github.version}
    6266    }
    6367}
Note: See TracChangeset for help on using the changeset viewer.