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