# 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
|
|
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 | | use_bzip2 yes |
23 | | |
24 | 22 | checksums rmd160 7d1c1c05113e5bbad32dbe96c65c918b170cac33 \ |
25 | 23 | sha256 9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be |
26 | 24 | |
27 | 25 | python.versions 25 26 27 31 32 33 |
28 | 26 | python.default_version 27 |
29 | 27 | |
30 | 28 | depends_build port:pkgconfig |
31 | 29 | depends_lib path:lib/pkgconfig/cairo.pc:cairo |
32 | 30 | |
33 | | patchfiles-append setup.py.patch |
| 31 | if {${python.version} > 25} { |
| 32 | use_bzip2 yes |
| 33 | patchfiles-append setup.py.patch |
| 34 | } |
34 | 35 | |
35 | 36 | if {${name} != ${subport}} { |
36 | 37 | depends_build-append port:py${python.version}-numpy |
37 | 38 | |
38 | 39 | # pycairo distributes python 2.x versions as py2cairo |