4 | | PortSystem 1.0 |
5 | | PortGroup python 1.0 |
6 | | |
7 | | name py-goocanvas |
8 | | license GPL-2+ |
9 | | version 0.14.1 |
10 | | python.versions 26 27 |
11 | | python.default_version 27 |
12 | | revision 4 |
13 | | |
14 | | description GooCanvas python bindings |
15 | | long_description \ |
16 | | PyGoocanvas are the python bindings for GooCanvas which is a canvas \ |
17 | | widget for GTK+ that uses the cairo 2D library for drawing. |
18 | | maintainers ucla.edu:alexander.afanasyev |
19 | | categories python gnome |
20 | | platforms darwin |
21 | | |
22 | | homepage http://live.gnome.org/PyGoocanvas |
23 | | set branch [join [lrange [split ${version} .] 0 1] .] |
24 | | master_sites gnome:sources/pygoocanvas/${branch}/ |
25 | | use_bzip2 no |
26 | | distname pygoocanvas-${version} |
27 | | checksums md5 d502dea5c0d2ac71d953895df81c32e8 \ |
28 | | sha1 ea1e10a24ef15a1d3880552fff6352d8b0621ef5 \ |
29 | | rmd160 162628947fd6a0d630bd20f9dec570c50fab2d23 |
| 4 | PortSystem 1.0 |
| 5 | PortGroup python 1.0 |
| 6 | |
| 7 | name py-goocanvas |
| 8 | homepage http://live.gnome.org/PyGoocanvas |
| 9 | license GPL-2+ |
| 10 | version 0.14.1 |
| 11 | revision 5 |
| 12 | |
| 13 | python.versions 24 25 26 27 31 32 |
| 14 | python.default_version 27 |
| 15 | |
| 16 | categories python gnome |
| 17 | platforms darwin |
| 18 | maintainers ucla.edu:alexander.afanasyev |
| 19 | |
| 20 | description GooCanvas python bindings |
| 21 | |
| 22 | long_description PyGoocanvas are the python bindings for GooCanvas which is a canvas \ |
| 23 | widget for GTK+ that uses the cairo 2D library for drawing. |
| 24 | |
| 25 | set branch [join [lrange [split ${version} .] 0 1] .] |
| 26 | master_sites gnome:sources/pygoocanvas/${branch}/ |
| 27 | distname pygoocanvas-${version} |
| 28 | use_bzip2 no |
| 29 | checksums md5 d502dea5c0d2ac71d953895df81c32e8 \ |
| 30 | sha1 ea1e10a24ef15a1d3880552fff6352d8b0621ef5 \ |
| 31 | rmd160 162628947fd6a0d630bd20f9dec570c50fab2d23 |
| 32 | |
| 33 | use_configure yes |
| 34 | depends_build-append port:docbook-xml-4.1.2 \ |
| 35 | port:docbook-xsl |
32 | | depends_build \ |
33 | | port:docbook-xml-4.1.2 \ |
34 | | port:docbook-xsl \ |
35 | | port:pkgconfig |
36 | | depends_lib-append \ |
37 | | port:goocanvas \ |
38 | | port:gtk2 \ |
39 | | port:py${python.version}-gtk \ |
40 | | port:py${python.version}-cairo \ |
41 | | port:py${python.version}-gobject |
42 | | |
43 | | patchfiles patch-configure.diff |
44 | | |
45 | | |
46 | | use_configure yes |
47 | | |
48 | | configure.compiler llvm-gcc-4.2 |
49 | | configure.python ${python.bin} |
50 | | configure.args "--prefix=${python.prefix}" |
51 | | configure.pkg_config_path ${python.prefix}/lib/pkgconfig |
52 | | |
53 | | build.cmd make |
54 | | build.target |
55 | | destroot.cmd make |
56 | | destroot.target install |
57 | | destroot.destdir "DESTDIR=${destroot}" |
| 38 | depends_lib-append port:goocanvas \ |
| 39 | port:gtk2 \ |
| 40 | port:py${python.version}-gtk \ |
| 41 | port:py${python.version}-cairo \ |
| 42 | port:py${python.version}-gobject |
| 43 | |
| 44 | patchfiles patch-configure.diff |
| 45 | |
| 46 | if {${python.version} != 24} { |
| 47 | set python.setup_prefix "${python.prefix}" |
| 48 | } else { |
| 49 | set python.setup_prefix "${prefix}" |
| 50 | } |
| 51 | |
| 52 | configure.python ${python.bin} |
| 53 | configure.args-append "--prefix=${python.setup_prefix}" |
| 54 | configure.pkg_config_path ${python.prefix}/lib/pkgconfig |
| 55 | |
| 56 | build.cmd make |
| 57 | build.target |
| 58 | destroot.cmd make |
| 59 | destroot.target install |
| 60 | destroot.destdir "DESTDIR=${destroot}" |