Revision
90212
Author
jmr@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

Added Paths

Diff

Modified: trunk/dports/_resources/port1.0/livecheck/fallback.tcl (90211 => 90212)


--- 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) (0 => 90212)


--- 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 (90211 => 90212)


--- 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