[116996] trunk/dports/python/py-BitArray2D/Portfile
ryandesign at macports.org
ryandesign at macports.org
Tue Feb 11 22:48:57 PST 2014
Revision: 116996
https://trac.macports.org/changeset/116996
Author: ryandesign at macports.org
Date: 2014-02-11 22:48:57 -0800 (Tue, 11 Feb 2014)
Log Message:
-----------
py-BitArray2D: fix livecheck, add some variables and refactor to use them (#42441)
Modified Paths:
--------------
trunk/dports/python/py-BitArray2D/Portfile
Modified: trunk/dports/python/py-BitArray2D/Portfile
===================================================================
--- trunk/dports/python/py-BitArray2D/Portfile 2014-02-12 06:42:09 UTC (rev 116995)
+++ trunk/dports/python/py-BitArray2D/Portfile 2014-02-12 06:48:57 UTC (rev 116996)
@@ -4,7 +4,9 @@
PortSystem 1.0
PortGroup python 1.0
-name py-BitArray2D
+set _name BitArray2D
+
+name py-${_name}
version 2.1
categories-append math
platforms darwin
@@ -23,10 +25,10 @@
advantage of the facilities of the BitVector class for \
the memory representation and for the allowed operations.
-homepage https://engineering.purdue.edu/kak/dist2d/BitArray2D-${version}.html
+homepage https://engineering.purdue.edu/kak/dist2d/${_name}-${version}.html
-distname BitArray2D-${version}
-master_sites https://engineering.purdue.edu/kak/dist2d
+distname ${_name}-${version}
+master_sites https://engineering.purdue.edu/kak/dist2d/
checksums md5 24cac608e52df170a5163988b95d9fa3 \
rmd160 6b25f62b9ea8ea7f4d680e31fa210d03574e1173 \
@@ -36,7 +38,6 @@
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
-
depends_lib-append port:py${python.version}-BitVector
test.run yes
@@ -64,4 +65,10 @@
delete ${destroot}${prefix}/share/doc/${subport}/examples
copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
}
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140211/ac02447c/attachment-0001.html>
More information about the macports-changes
mailing list