Ticket #18889: patch-_resources-port1.0-livecheck.diff

File patch-_resources-port1.0-livecheck.diff, 3.4 KB (added by lperry (Perry Lee), 16 years ago)

a svn diff of dports/_resources

  • port1.0/livecheck/freshmeat.tcl

     
     1# $Id$
     2#
     3# This file contains the defaults for freshmeat.
     4
     5if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
     6    set livecheck.url "http://freshmeat.net/projects/${livecheck.name}/releases.atom"
     7}
     8if {${livecheck.regex} eq ""} {
     9    set livecheck.regex [list "(?i)<title>${livecheck.name} (.*)</title>"]
     10}
     11set livecheck.check "regex"
  • port1.0/livecheck/fallback.tcl

     
     1link freshmeat.tcl
     2 No newline at end of file
  • port1.0/livecheck/sourceforge.tcl

    Property changes on: port1.0/livecheck/fallback.tcl
    ___________________________________________________________________
    Added: svn:special
       + *
    
     
     1# $Id$
     2#
     3# This file contains the defaults for sourceforge.
     4
     5if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
     6    set livecheck.url "http://sourceforge.net/export/rss2_projfiles.php?project=${livecheck.name}"
     7}
     8if {${livecheck.distname} eq "default"} {
     9    set livecheck.distname ${livecheck.name}
     10}
     11if {${livecheck.regex} eq ""} {
     12    set livecheck.regex [list "(?i)<title>[quotemeta ${livecheck.distname}] (.*) released.*</title>"]
     13}
     14set livecheck.check "regex"
  • port1.0/livecheck/googlecode.tcl

     
     1# $Id$
     2#
     3# This file contains the defaults for googlecode.
     4
     5if {$has_homepage && [regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
     6    && ${livecheck.name} eq "default"} {
     7        set livecheck.name $tag
     8}
     9if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
     10    set livecheck.url "http://code.google.com/p/${livecheck.name}/downloads/list"
     11}
     12if {${livecheck.distname} eq "default"} {
     13    set livecheck.distname [regsub ***=[quotemeta ${livecheck.version}] [quotemeta [file tail [lindex ${distfiles} 0]]] (.*)]
     14}
     15if {${livecheck.regex} eq ""} {
     16    set livecheck.regex [list "<a href=\"http://[quotemeta ${livecheck.name}].googlecode.com/files/${livecheck.distname}\""]
     17}
     18set livecheck.check "regex"
  • port1.0/livecheck/gnu.tcl

     
     1# $Id$
     2#
     3# This file contains the defaults for gnu.
     4
     5if {$has_homepage && [regexp {^http://www.gnu.org/software/([^/]+)} $homepage _ tag] &&
     6    ${livecheck.name} eq "default"} {
     7        set livecheck.name $tag
     8}
     9if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
     10    set livecheck.url "http://ftp.gnu.org/gnu/${livecheck.name}/?C=M&O=D"
     11}
     12if {${livecheck.distname} eq "default"} {
     13    set livecheck.distname ${livecheck.name}
     14}
     15if {${livecheck.regex} eq ""} {
     16    set livecheck.regex [list "[quotemeta ${livecheck.distname}]-(\\d+(?:\\.\\d+)*)"]
     17}
     18set livecheck.check "regex"