source: trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl @ 135501

Last change on this file since 135501 was 135501, checked in by ryandesign@…, 4 years ago

sourceforge.tcl: fix default livecheck.url

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 821 bytes
Line 
1# $Id: sourceforge.tcl 135501 2015-04-25 00:48:20Z ryandesign@macports.org $
2#
3# This file contains the defaults for sourceforge.
4
5if {${livecheck.name} eq "default"} {
6    if {$has_homepage && [regexp {^http://([^.]+)\.(?:sf|sourceforge)\.net\y} $homepage _ tag]} {
7        set livecheck.name $tag
8    } elseif {$has_homepage && [regexp {^http://(?:sf|sourceforge)\.net/projects/([^/]+)\y} $homepage _ tag]} {
9        set livecheck.name $tag
10    } else {
11        set livecheck.name ${name}
12    }
13}
14if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
15    set livecheck.url "http://sourceforge.net/projects/${livecheck.name}/rss"
16}
17if {${livecheck.distname} eq "default"} {
18    set livecheck.distname ${livecheck.name}
19}
20if {${livecheck.regex} eq ""} {
21    set livecheck.regex [list "/[quotemeta ${livecheck.distname}]/(\[a-zA-Z0-9.\]+\\.\[a-zA-Z0-9.\]+)/"]
22}
23set livecheck.type "regex"
Note: See TracBrowser for help on using the repository browser.