1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 93824 2012-06-01 03:40:42Z rmstonecipher@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name py27-gobject3 |
---|
7 | platforms darwin |
---|
8 | set my_name pygobject |
---|
9 | version 3.2.2 |
---|
10 | revision 3 |
---|
11 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
12 | categories python gnome |
---|
13 | license LGPL-2.1+ |
---|
14 | maintainers mcalhoun jwa openmaintainer |
---|
15 | description Python bindings for GObject. |
---|
16 | |
---|
17 | long_description \ |
---|
18 | PyGObject provides a convenient wrapper for the GObject+ library \ |
---|
19 | for use in Python programs, and takes care of many of the boring details \ |
---|
20 | such as managing memory and type casting. \ |
---|
21 | When combined with PyGTK, PyORBit and gnome-python, \ |
---|
22 | it can be used to write full featured Gnome applications. |
---|
23 | |
---|
24 | homepage http://www.gnome.org/ |
---|
25 | master_sites gnome:sources/${my_name}/${branch}/ |
---|
26 | distname ${my_name}-${version} |
---|
27 | use_xz yes |
---|
28 | dist_subdir py-gobject3 |
---|
29 | |
---|
30 | checksums sha256 4653790baaff0176fd814b88cfb5378c45906a120b25d01be2554f423b726eb0 \ |
---|
31 | rmd160 090fa4941fa30e68882e25856d92230ebdd0cea9 |
---|
32 | |
---|
33 | depends_build port:pkgconfig |
---|
34 | depends_lib path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
35 | # port:libxslt \ |
---|
36 | # port:gettext \ |
---|
37 | # port:libiconv \ |
---|
38 | # port:libffi \ |
---|
39 | port:python27 |
---|
40 | |
---|
41 | # patchfiles patch-gi_pygi.h patch-gio_gio-types.defs |
---|
42 | |
---|
43 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7 |
---|
44 | |
---|
45 | # configure.pre_args-delete --prefix=${prefix} |
---|
46 | # configure.pre_args-append --prefix=${python_prefix} |
---|
47 | # configure.args-append \ |
---|
48 | # --includedir=${python_prefix}/include/python2.7 \ |
---|
49 | |
---|
50 | configure.python ${prefix}/bin/python2.7 |
---|
51 | |
---|
52 | post-destroot { |
---|
53 | set docdir ${prefix}/share/doc/${name} |
---|
54 | xinstall -d ${destroot}${docdir} |
---|
55 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ |
---|
56 | ${destroot}${docdir} |
---|
57 | xinstall -d ${destroot}${prefix}/share/gtk-doc/html |
---|
58 | system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}27" |
---|
59 | # devhelp requires gtk-doc/html directory name and .devhelp file name (less the .devhelp) to match |
---|
60 | file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \ |
---|
61 | ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}27.devhelp |
---|
62 | system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}27" |
---|
63 | } |
---|
64 | |
---|
65 | livecheck.type regex |
---|
66 | livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/ |
---|
67 | livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|