Ticket #37254: 37254-3-python-2.5-fix.patch

File 37254-3-python-2.5-fix.patch, 1.9 KB (added by seanfarley (Sean Farley), 12 years ago)

py-cairo: update python 2.5 to compatible version; fixes ticket #37254

  • dports/python/py-cairo/Portfile

    # HG changeset patch
    # User Sean Farley <sean.michael.farley@gmail.com>
    # Date 1355165856 21600
    # Node ID 12eaeea381a164c26aa4e04f8ef7ad928575ae1f
    # Parent  d7b673197976b6e92ee72081e4f52bf87222ae1e
    py-cairo: update python 2.5 to compatible version; fixes ticket #37254
    
    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# for python 3; python 2.5 is different, as well as 2.6 and 2.7
    2223checksums               rmd160  7d1c1c05113e5bbad32dbe96c65c918b170cac33 \
    2324                        sha256  9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be
    2425
    2526python.versions         25 26 27 31 32 33
    2627python.default_version  27
     
    3132if {${python.version} > 25} {
    3233    use_bzip2           yes
    3334    patchfiles-append   setup.py.patch
    3435}
    3536
     37# fixes ticket 37254; can remove when we drop py25-*gtk*
     38subport py25-cairo {
     39    version             1.8.2
     40
     41    checksums           rmd160  ce48a6b71b802f07d0e0d3cfa140fd39ab5fe4d7 \
     42                        sha256  77a8cbe388fd66825056744f2fc5c58b3afc247748bc2c777751cc0c2eb30a2f
     43
     44    test.run            yes
     45    test.cmd            "cd test && python2.5"
     46    test.target         test.py
     47}
     48
    3649if {${name} != ${subport}} {
    3750    depends_build-append port:py${python.version}-numpy
    3851
    3952    # pycairo distributes python 2.x versions as py2cairo
    40     if {${python.version} < 31} {
     53    if {${python.version} < 31 && ${python.version} > 25} {
    4154        set my_name     py2cairo
    4255
    4356        checksums       rmd160  ce75db9af32ef1a3e90f6aaa649cbb2493a941a4 \
    4457                        sha256  d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
    4558