# 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
|
|
17 | 17 | long_description ${description} |
18 | 18 | |
19 | 19 | homepage http://cairographics.org/pycairo/ |
20 | 20 | master_sites http://cairographics.org/releases/ |
21 | 21 | |
| 22 | # for python 3; python 2.5 is different, as well as 2.6 and 2.7 |
22 | 23 | checksums rmd160 7d1c1c05113e5bbad32dbe96c65c918b170cac33 \ |
23 | 24 | sha256 9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be |
24 | 25 | |
25 | 26 | python.versions 25 26 27 31 32 33 |
26 | 27 | python.default_version 27 |
… |
… |
|
31 | 32 | if {${python.version} > 25} { |
32 | 33 | use_bzip2 yes |
33 | 34 | patchfiles-append setup.py.patch |
34 | 35 | } |
35 | 36 | |
| 37 | # fixes ticket 37254; can remove when we drop py25-*gtk* |
| 38 | subport 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 | |
36 | 49 | if {${name} != ${subport}} { |
37 | 50 | depends_build-append port:py${python.version}-numpy |
38 | 51 | |
39 | 52 | # pycairo distributes python 2.x versions as py2cairo |
40 | | if {${python.version} < 31} { |
| 53 | if {${python.version} < 31 && ${python.version} > 25} { |
41 | 54 | set my_name py2cairo |
42 | 55 | |
43 | 56 | checksums rmd160 ce75db9af32ef1a3e90f6aaa649cbb2493a941a4 \ |
44 | 57 | sha256 d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431 |
45 | 58 | |