[137833] trunk/dports/_resources/port1.0/livecheck/pypi.tcl

larryv at macports.org larryv at macports.org
Sat Jun 20 21:33:54 PDT 2015


Revision: 137833
          https://trac.macports.org/changeset/137833
Author:   larryv at macports.org
Date:     2015-06-20 21:33:54 -0700 (Sat, 20 Jun 2015)
Log Message:
-----------
pypi.tcl: New livecheck type for PyPI

Uses PyPI's DOAP records. What's XML/RDF good for, if not parsing?

Added Paths:
-----------
    trunk/dports/_resources/port1.0/livecheck/pypi.tcl

Copied: trunk/dports/_resources/port1.0/livecheck/pypi.tcl (from rev 137818, trunk/dports/_resources/port1.0/livecheck/gnome.tcl)
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/pypi.tcl	                        (rev 0)
+++ trunk/dports/_resources/port1.0/livecheck/pypi.tcl	2015-06-21 04:33:54 UTC (rev 137833)
@@ -0,0 +1,19 @@
+# $Id$
+#
+# This file contains the livecheck defaults for PyPI.
+
+if {${livecheck.name} eq "default"} {
+    if {[exists python.rootname]} {
+        livecheck.name [option python.rootname]
+    } else {
+        livecheck.name ${name}
+    }
+}
+if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
+    livecheck.url \
+            https://pypi.python.org/pypi?:action=doap&name=${livecheck.name}
+}
+if {${livecheck.regex} eq ""} {
+    livecheck.regex {<revision>(.+)</revision>}
+}
+set livecheck.type "regex"


Property changes on: trunk/dports/_resources/port1.0/livecheck/pypi.tcl
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:mergeinfo
   + /branches/mld-qt-481/dports/_resources/port1.0/livecheck/gnome.tcl:92720,92813,92891,92963,93522,93556,93699,93743,93771-93773,93806,93817-93818,93856
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150620/080a0a4a/attachment.html>


More information about the macports-changes mailing list