source: trunk/dports/_resources/port1.0/livecheck/googlecode.tcl @ 79957

Last change on this file since 79957 was 79957, checked in by dports@…, 9 years ago

googlecode livecheck: update regex

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 779 bytes
Line 
1# $Id: googlecode.tcl 79957 2011-06-30 21:49:58Z dports@macports.org $
2#
3# This file contains the defaults for googlecode.
4
5if {$has_homepage && ${livecheck.name} eq "default"
6    && ([regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
7        || [regexp {^http://(.*).googlecode.com} $homepage _ tag])} {
8        set livecheck.name $tag
9}
10if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
11    set livecheck.url "http://code.google.com/p/${livecheck.name}/downloads/list"
12}
13if {${livecheck.distname} eq "default"} {
14    set livecheck.distname [regsub ***=[quotemeta ${livecheck.version}] [quotemeta [file tail [lindex ${distfiles} 0]]] (\[^'\]+)]
15}
16if {${livecheck.regex} eq ""} {
17    set livecheck.regex [list "href=\"//[quotemeta ${livecheck.name}].googlecode.com/files/${livecheck.distname}\""]
18}
19set livecheck.type "regex"
Note: See TracBrowser for help on using the repository browser.