Changeset 99242


Ignore:
Timestamp:
Oct 30, 2012, 8:44:59 AM (12 years ago)
Author:
ryandesign@…
Message:

graphite2: update to 1.2.0 and ensure python >= 2.6 is installed before the tests are run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/graphite2/Portfile

    r99239 r99242  
    66
    77name                graphite2
    8 version             1.1.3
     8version             1.2.0
    99categories          graphics
    1010platforms           darwin
     
    2222extract.suffix      .tgz
    2323
    24 checksums           rmd160  f6858b233753020b83624fe5c8b3e98c3ea1802b \
    25                     sha256  0eb19282a1941bdd5e6d7165718c5d4692d62bac6c1eea56d9e522715cb144f7
     24checksums           rmd160  fe630b134be3c7f4da019827272c1ce9d09039f3 \
     25                    sha256  630fba251c7e570f2b0c4a0c63a7abb4d45b0246d390f53188b1a9b73de7b96e
    2626
    2727if {${configure.compiler} == "gcc-4.0"} {
     28    # https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581749&group_id=66144
    2829    post-patch {
    2930        reinplace "s|-fdiagnostics-show-option||g" ${worksrcpath}/src/CMakeLists.txt ${worksrcpath}/tests/CMakeLists.txt
     
    3334test.run            yes
    3435
     36pre-test {
     37    # https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581750&group_id=66144
     38    set python_installed_version [strsed [exec python --version 2>@1] {g/Python //}]
     39    set python_minimum_version 2.6
     40    if {[vercmp ${python_installed_version} ${python_minimum_version}] < 0} {
     41        ui_error "Testing ${name} requires Python ${python_minimum_version} or later but your \"python\" is version ${python_installed_version}."
     42        return -code error "incompatible python version"
     43    }
     44}
     45
    3546livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.