Ticket #37254: 37254-2-if-block-movement.patch

File 37254-2-if-block-movement.patch, 1.2 KB (added by seanfarley (Sean Farley), 12 years ago)

py-cairo: move use_bzip2 and patchfiles to if block for > python2.5

  • dports/python/py-cairo/Portfile

    # HG changeset patch
    # User Sean Farley <sean.michael.farley@gmail.com>
    # Date 1355161951 21600
    # Node ID d7b673197976b6e92ee72081e4f52bf87222ae1e
    # Parent  9be7b6db71c3e1de3a8d6a1abcd40811522d17ed
    py-cairo: move use_bzip2 and patchfiles to if block for > python2.5
    
    diff --git a/dports/python/py-cairo/Portfile b/dports/python/py-cairo/Portfile
    a b  
    1717long_description        ${description}
    1818
    1919homepage                http://cairographics.org/pycairo/
    2020master_sites            http://cairographics.org/releases/
    2121
    22 use_bzip2               yes
    23 
    2422checksums               rmd160  7d1c1c05113e5bbad32dbe96c65c918b170cac33 \
    2523                        sha256  9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be
    2624
    2725python.versions         25 26 27 31 32 33
    2826python.default_version  27
    2927
    3028depends_build           port:pkgconfig
    3129depends_lib             path:lib/pkgconfig/cairo.pc:cairo
    3230
    33 patchfiles-append       setup.py.patch
     31if {${python.version} > 25} {
     32    use_bzip2           yes
     33    patchfiles-append   setup.py.patch
     34}
    3435
    3536if {${name} != ${subport}} {
    3637    depends_build-append port:py${python.version}-numpy
    3738
    3839    # pycairo distributes python 2.x versions as py2cairo