[127156] trunk/dports/_resources/port1.0/livecheck
khindenburg at macports.org
khindenburg at macports.org
Tue Oct 21 19:49:49 PDT 2014
Revision: 127156
https://trac.macports.org/changeset/127156
Author: khindenburg at macports.org
Date: 2014-10-21 19:49:49 -0700 (Tue, 21 Oct 2014)
Log Message:
-----------
base: livecheck - add new fallback which uses master_sites - current freecode no longer works #45405
Modified Paths:
--------------
trunk/dports/_resources/port1.0/livecheck/fallback.tcl
Added Paths:
-----------
trunk/dports/_resources/port1.0/livecheck/master-sites.tcl
Modified: trunk/dports/_resources/port1.0/livecheck/fallback.tcl
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/fallback.tcl 2014-10-22 02:47:40 UTC (rev 127155)
+++ trunk/dports/_resources/port1.0/livecheck/fallback.tcl 2014-10-22 02:49:49 UTC (rev 127156)
@@ -3,4 +3,4 @@
# If the default type cannot be determined from the mirror, this file is
# sourced.
-source [getdefaultportresourcepath "port1.0/livecheck"]/freecode.tcl
+source [getdefaultportresourcepath "port1.0/livecheck"]/master-sites.tcl
Added: trunk/dports/_resources/port1.0/livecheck/master-sites.tcl
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/master-sites.tcl (rev 0)
+++ trunk/dports/_resources/port1.0/livecheck/master-sites.tcl 2014-10-22 02:49:49 UTC (rev 127156)
@@ -0,0 +1,17 @@
+# $Id$
+#
+# This file contains the livecheck defaults for using port's master_sites.
+
+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 [lindex ${master_sites} 0]
+}
+if {${livecheck.regex} eq ""} {
+ set livecheck.regex [list "[quotemeta ${livecheck.distname}]-(\\d+(?:\\.\\d+)*)"]
+}
+set livecheck.type "regex"
Property changes on: trunk/dports/_resources/port1.0/livecheck/master-sites.tcl
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141021/af9c191f/attachment.html>
More information about the macports-changes
mailing list