1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
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 |
---|
36 | |
---|
37 | if {$subport != $name} { |
---|
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}" |
---|
61 | } |
---|