[62268] trunk/dports/www/tidy/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Jan 2 13:55:45 PST 2010
Revision: 62268
http://trac.macports.org/changeset/62268
Author: ryandesign at macports.org
Date: 2010-01-02 13:55:44 -0800 (Sat, 02 Jan 2010)
Log Message:
-----------
tidy: simplify livecheck
Modified Paths:
--------------
trunk/dports/www/tidy/Portfile
Modified: trunk/dports/www/tidy/Portfile
===================================================================
--- trunk/dports/www/tidy/Portfile 2010-01-02 21:55:03 UTC (rev 62267)
+++ trunk/dports/www/tidy/Portfile 2010-01-02 21:55:44 UTC (rev 62268)
@@ -42,25 +42,7 @@
system "ln -fs libtidy-0.99.0.0.0.dylib ${destroot}${prefix}/lib/libtidy.0.dylib"
}
-proc get_livecheck_version version {
- set d [string range ${version} 6 7]
- if {[string index ${d} 0] eq "0"} {
- set d [string index ${d} 1]
- }
- set months {
- January February March April May June July August September October
- November December
- }
- set m [string range ${version} 4 5]
- if {[string index ${m} 0] eq "0"} {
- set m [string index ${m} 1]
- }
- return "${d} [lindex ${months} [expr ${m} - 1]] [string range ${version} 0 3]"
-}
-
-ui_msg [get_livecheck_version ${version}]
-
livecheck.type regex
livecheck.url http://tidy.cvs.sourceforge.net/viewvc/*checkout*/tidy/tidy/src/version.h
livecheck.regex {"(.+)"}
-eval livecheck.version [get_livecheck_version ${version}]
+eval livecheck.version [clock format [clock scan ${version}] -format {%d %B %Y}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100102/e33939eb/attachment.html>
More information about the macports-changes
mailing list