[90212] trunk/dports/_resources/port1.0/livecheck
jmr at macports.org
jmr at macports.org
Sun Feb 26 09:25:04 PST 2012
Revision: 90212
http://trac.macports.org/changeset/90212
Author: jmr at macports.org
Date: 2012-02-26 09:25:01 -0800 (Sun, 26 Feb 2012)
Log Message:
-----------
change freshmeat livecheck to freecode (#32026), still allowing freshmeat as an alias
Modified Paths:
--------------
trunk/dports/_resources/port1.0/livecheck/fallback.tcl
trunk/dports/_resources/port1.0/livecheck/freshmeat.tcl
Added Paths:
-----------
trunk/dports/_resources/port1.0/livecheck/freecode.tcl
Modified: trunk/dports/_resources/port1.0/livecheck/fallback.tcl
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/fallback.tcl 2012-02-26 16:55:07 UTC (rev 90211)
+++ trunk/dports/_resources/port1.0/livecheck/fallback.tcl 2012-02-26 17:25:01 UTC (rev 90212)
@@ -3,4 +3,4 @@
# If the default type cannot be determined from the mirror, this file is
# sourced.
-source [getdefaultportresourcepath "port1.0/livecheck"]/freshmeat.tcl
+source [getdefaultportresourcepath "port1.0/livecheck"]/freecode.tcl
Copied: trunk/dports/_resources/port1.0/livecheck/freecode.tcl (from rev 90177, trunk/dports/_resources/port1.0/livecheck/freshmeat.tcl)
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/freecode.tcl (rev 0)
+++ trunk/dports/_resources/port1.0/livecheck/freecode.tcl 2012-02-26 17:25:01 UTC (rev 90212)
@@ -0,0 +1,17 @@
+# $Id$
+#
+# This file contains the livecheck defaults for freecode.
+
+if {${livecheck.name} eq "default"} {
+ set livecheck.name ${name}
+}
+if {${livecheck.distname} eq "default"} {
+ set livecheck.distname ${livecheck.name}
+}
+if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
+ set livecheck.url "http://freecode.com/projects/${livecheck.name}/releases.atom"
+}
+if {${livecheck.regex} eq ""} {
+ set livecheck.regex [list "(?i)<title>[quotemeta ${livecheck.distname}] (.*)</title>"]
+}
+set livecheck.type "regex"
Modified: trunk/dports/_resources/port1.0/livecheck/freshmeat.tcl
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/freshmeat.tcl 2012-02-26 16:55:07 UTC (rev 90211)
+++ trunk/dports/_resources/port1.0/livecheck/freshmeat.tcl 2012-02-26 17:25:01 UTC (rev 90212)
@@ -1,17 +1,5 @@
# $Id$
#
-# This file contains the defaults for freshmeat.
+# Provide freshmeat as an alias for freecode
-if {${livecheck.name} eq "default"} {
- set livecheck.name ${name}
-}
-if {${livecheck.distname} eq "default"} {
- set livecheck.distname ${livecheck.name}
-}
-if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
- set livecheck.url "http://freshmeat.net/projects/${livecheck.name}/releases.atom"
-}
-if {${livecheck.regex} eq ""} {
- set livecheck.regex [list "(?i)<title>[quotemeta ${livecheck.distname}] (.*)</title>"]
-}
-set livecheck.type "regex"
+source [getdefaultportresourcepath "port1.0/livecheck"]/freecode.tcl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120226/f7ab8e84/attachment.html>
More information about the macports-changes
mailing list