Revision
76339
Author
snc@macports.org
Date
2011-02-20 03:08:49 -0800 (Sun, 20 Feb 2011)

Log Message

smodels:
 * don't hardcode /opt/local
 * add livecheck

Modified Paths

Diff

Modified: trunk/dports/science/smodels/Portfile (76338 => 76339)


--- trunk/dports/science/smodels/Portfile	2011-02-20 11:05:32 UTC (rev 76338)
+++ trunk/dports/science/smodels/Portfile	2011-02-20 11:08:49 UTC (rev 76339)
@@ -26,11 +26,15 @@
 
 configure.optflags  -O3
 patch {
-    reinplace s|/usr/bin|/opt/local/bin|g ${worksrcpath}/Makefile
-    reinplace s|/usr/local/lib|/opt/local/lib|g ${worksrcpath}/Makefile
+    reinplace s|/usr/bin|${prefix}/bin|g ${worksrcpath}/Makefile
+    reinplace s|/usr/local/lib|${prefix}/lib|g ${worksrcpath}/Makefile
     reinplace "s|-O3 -Wall -W|${configure.cxxflags}|g" ${worksrcpath}/Makefile
 }
 
 use_configure       no
 
 notes "lparse is recommended for piping to smodels: `lparse | smodels`"
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     ${name}-(\\d+(\\.\\d+)+)