Changeset 79958


Ignore:
Timestamp:
Jun 30, 2011, 9:57:41 PM (9 years ago)
Author:
dports@…
Message:

googlecode livecheck: use $name as ${livecheck.name}, if it can't be
extracted from the homepage URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/livecheck/googlecode.tcl

    r79957 r79958  
    33# This file contains the defaults for googlecode.
    44
    5 if {$has_homepage && ${livecheck.name} eq "default"
    6     && ([regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
    7         || [regexp {^http://(.*).googlecode.com} $homepage _ tag])} {
     5if {${livecheck.name} eq "default"} {
     6    # Extract the googlecode project name from the homepage, if possible
     7    if {$has_homepage
     8        && ([regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
     9            || [regexp {^http://(.*).googlecode.com} $homepage _ tag])} {
    810        set livecheck.name $tag
     11    } else {
     12        # Otherwise, fall back on the port name
     13        set livecheck.name $name
     14    }
    915}
    1016if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
Note: See TracChangeset for help on using the changeset viewer.