Ticket #34914: Portfile

File Portfile, 2.7 KB (added by Themanwithoutaplan, 12 years ago)
Line 
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
4PortSystem      1.0
5
6name            py27-gobject3
7platforms       darwin
8set my_name     pygobject
9version         3.2.2
10revision        3
11set branch      [join [lrange [split ${version} .] 0 1] .]
12categories      python gnome
13license         LGPL-2.1+
14maintainers     mcalhoun jwa openmaintainer
15description     Python bindings for GObject.
16
17long_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
24homepage        http://www.gnome.org/
25master_sites    gnome:sources/${my_name}/${branch}/
26distname        ${my_name}-${version}
27use_xz          yes
28dist_subdir     py-gobject3
29
30checksums       sha256    4653790baaff0176fd814b88cfb5378c45906a120b25d01be2554f423b726eb0 \
31                rmd160  090fa4941fa30e68882e25856d92230ebdd0cea9
32
33depends_build   port:pkgconfig
34depends_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
43set 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
50configure.python    ${prefix}/bin/python2.7
51
52post-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
65livecheck.type  regex
66livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
67livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}