1 | # $Id: Portfile 86760 2011-11-03 02:32:41Z jmr@macports.org $ |
---|
2 | # -*- 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 |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-gobject3 |
---|
8 | set my_name pygobject |
---|
9 | version 3.2.2 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | categories python gnome |
---|
12 | license LGPL-2.1+ |
---|
13 | maintainers cal openmaintainer |
---|
14 | platforms darwin |
---|
15 | description Python bindings for GObject, version 3 |
---|
16 | |
---|
17 | long_description \ |
---|
18 | PyGObject is a Python dynamic module that enables developers to use the \ |
---|
19 | power of GObject, which is part of the GNOME platform. |
---|
20 | |
---|
21 | homepage https://live.gnome.org/PyGObject |
---|
22 | master_sites gnome:sources/${my_name}/${branch}/ |
---|
23 | distname ${my_name}-${version} |
---|
24 | use_xz yes |
---|
25 | |
---|
26 | checksums sha256 4653790baaff0176fd814b88cfb5378c45906a120b25d01be2554f423b726eb0 \ |
---|
27 | rmd160 090fa4941fa30e68882e25856d92230ebdd0cea9 |
---|
28 | |
---|
29 | python.versions 26 27 |
---|
30 | |
---|
31 | if {$subport != $name} { |
---|
32 | depends_build-append port:pkgconfig |
---|
33 | depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
34 | port:libffi \ |
---|
35 | port:py${python.version}-cairo |
---|
36 | |
---|
37 | use_configure yes |
---|
38 | configure.env-append PKG_CONFIG_PATH='${python.prefix}/lib/pkgconfig' |
---|
39 | configure.pre_args --prefix='${python.prefix}' |
---|
40 | configure.args --disable-glibtest |
---|
41 | |
---|
42 | build.cmd [portbuild::build_getmaketype] |
---|
43 | build.target |
---|
44 | |
---|
45 | destroot.cmd ${build.cmd} |
---|
46 | destroot.target install |
---|
47 | destroot.destdir DESTDIR=${destroot} |
---|
48 | |
---|
49 | test.run yes |
---|
50 | test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
---|
51 | test.target check |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | set docdir ${prefix}/share/doc/${subport} |
---|
55 | xinstall -d ${destroot}${docdir} |
---|
56 | xinstall -m 0644 -W ${worksrcpath} \ |
---|
57 | AUTHORS COPYING ChangeLog ChangeLog.pre-2.18 NEWS README \ |
---|
58 | ${destroot}${docdir} |
---|
59 | } |
---|
60 | } else { |
---|
61 | livecheck.type regex |
---|
62 | livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/ |
---|
63 | livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|
64 | } |
---|