Revision: 99242 http://trac.macports.org//changeset/99242 Author: ryandesign@macports.org Date: 2012-10-30 01:44:59 -0700 (Tue, 30 Oct 2012) Log Message: ----------- graphite2: update to 1.2.0 and ensure python >= 2.6 is installed before the tests are run Modified Paths: -------------- trunk/dports/graphics/graphite2/Portfile Modified: trunk/dports/graphics/graphite2/Portfile =================================================================== --- trunk/dports/graphics/graphite2/Portfile 2012-10-30 08:44:20 UTC (rev 99241) +++ trunk/dports/graphics/graphite2/Portfile 2012-10-30 08:44:59 UTC (rev 99242) @@ -5,7 +5,7 @@ PortGroup cmake 1.0 name graphite2 -version 1.1.3 +version 1.2.0 categories graphics platforms darwin maintainers ryandesign openmaintainer @@ -21,10 +21,11 @@ master_sites sourceforge:project/silgraphite/graphite2 extract.suffix .tgz -checksums rmd160 f6858b233753020b83624fe5c8b3e98c3ea1802b \ - sha256 0eb19282a1941bdd5e6d7165718c5d4692d62bac6c1eea56d9e522715cb144f7 +checksums rmd160 fe630b134be3c7f4da019827272c1ce9d09039f3 \ + sha256 630fba251c7e570f2b0c4a0c63a7abb4d45b0246d390f53188b1a9b73de7b96e if {${configure.compiler} == "gcc-4.0"} { + # https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581749&group_i... post-patch { reinplace "s|-fdiagnostics-show-option||g" ${worksrcpath}/src/CMakeLists.txt ${worksrcpath}/tests/CMakeLists.txt } @@ -32,4 +33,14 @@ test.run yes +pre-test { + # https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581750&group_i... + set python_installed_version [strsed [exec python --version 2>@1] {g/Python //}] + set python_minimum_version 2.6 + if {[vercmp ${python_installed_version} ${python_minimum_version}] < 0} { + ui_error "Testing ${name} requires Python ${python_minimum_version} or later but your \"python\" is version ${python_installed_version}." + return -code error "incompatible python version" + } +} + livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
participants (1)
-
ryandesign@macports.org