Ticket #20608: Portfile.2

File Portfile.2, 2.3 KB (added by neric27@…, 14 years ago)

updated portfile with explicit path to py-gtk-codegen-2.0

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem             1.0
5
6name                   gnome-python26-extras
7version                2.25.3
8
9categories             gnome python
10platforms          darwin
11maintainers            wanadoo.fr:neric27 openmaintainer
12
13description            "Extra" Python modules for some GNOME Desktop libraries.
14long_description        ${description}
15
16homepage                http://www.pygtk.org/
17
18set myname          gnome-python-extras
19set branch          [join [lrange [split ${version} .] 0 1] .]
20
21master_sites        gnome:sources/${myname}/${branch}
22distfiles           ${myname}-${version}.tar.bz2
23
24checksums           md5     9f3b7ec5c57130b96061cb486b79c076 \
25                    sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
26                    rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46
27
28use_bzip2               yes
29
30depends_lib             port:py26-gnome \
31                            port:gdl \
32                    port:libgda4 \
33                    port:libgtkhtml \
34                    port:gtkspell2
35
36patchfiles          patch-pygobject \
37                    patch-configure.diff
38
39worksrcdir          ${myname}-${version}
40
41set python.branch   2.6
42set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
43set python.bin      ${python.prefix}/bin/python${python.branch}
44
45configure.args-append  --prefix=${python.prefix}
46configure.pkg_config_path  ${python.prefix}/lib/pkgconfig
47
48configure.python    ${python.bin}
49configure.env-append PYGTK_CODEGEN=${frameworks_dir}/Python.framework/Versions/2.6/bin/pygtk-codegen-2.0
50
51platform darwin 9 {
52    post-patch {
53        reinplace "s|-export-symbols-regex.*||g" \
54            ${worksrcpath}/egg/recent/Makefile.in \
55            ${worksrcpath}/egg/tray/Makefile.in \
56            ${worksrcpath}/gda/Makefile.in \
57            ${worksrcpath}/gdl/Makefile.in \
58            ${worksrcpath}/gksu/Makefile.in \
59            ${worksrcpath}/gksu2/Makefile.in \
60            ${worksrcpath}/gtkhtml2/Makefile.in \
61            ${worksrcpath}/gtkspell/Makefile.in
62        reinplace "s|-export-symbols-regex.*|\\\\|g" \
63            ${worksrcpath}/gtkmozembed/Makefile.in
64    }
65}
66
67livecheck.check     regex
68livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${myname}/${branch}/
69livecheck.regex     {LATEST-IS-(\d+(?:\.\d+)*)}