source: trunk/dports/python/py27-gnome/Portfile

Last change on this file was 115042, checked in by devans@…, 4 years ago

some ports that reference libpng15: increment revision to rebuild with libpng 1.6.*

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
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 115042 2013-12-23 06:18:24Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            py27-gnome
7set my_name     gnome-python
8version         2.28.1
9revision        7
10set branch      [join [lrange [split $version .] 0 1] .]
11categories      python gnome
12license         LGPL-2.1+
13platforms       darwin
14maintainers     nomaintainer
15description     gnome-python is a set of python interfaces to gnome-libs.
16long_description    ${description}
17
18homepage        http://www.pygtk.org/
19master_sites    gnome:sources/$my_name/$branch/
20use_bzip2       yes
21distname        $my_name-$version
22
23checksums       md5     a17ad952813ed86f520de8e07194a2bf \
24                sha1    de7e66aff141c4c64bc25cdb85193fab0899b983 \
25                rmd160  92d6536ed28ae760ea1519fea68565d29249dd33
26
27depends_build   port:pkgconfig
28
29depends_lib     port:libgnomeui \
30                port:py27-pygtk \
31                port:py27-orbit \
32                port:libgnome \
33                port:python27 \
34                port:libgnomecanvas \
35                port:gnome-vfs \
36                port:gconf \
37                port:libbonobo \
38                port:libbonoboui
39
40
41set python.branch   2.7
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.env-append    PYGOBJECT_CODEGEN=${python.prefix}/bin/pygobject-codegen-2.0
47configure.pkg_config_path  ${python.prefix}/lib/pkgconfig
48
49configure.python    ${python.bin}
50
51use_parallel_build  yes
52
53# fix an import error of bonobo.ui
54# when gtk quartz is in use
55variant quartz {
56        patchfiles-append bonobo.diff
57}
58
59platform darwin 9 {
60    post-patch {
61        reinplace "s| -export-symbols-regex.*||g" \
62            ${worksrcpath}/bonobo/Makefile.in \
63            ${worksrcpath}/gconf/Makefile.in \
64            ${worksrcpath}/gnome/Makefile.in \
65            ${worksrcpath}/gnomecanvas/Makefile.in \
66            ${worksrcpath}/gnomevfs/Makefile.in
67    }
68}
69
70post-destroot {
71# add link to gtk-doc in devhelp search path (${prefix}/share/gtk-doc/html/*)
72# devhelp requires gtk-doc/html directory name  and .devhelp file name (less the .devhelp) to match
73    file rename ${destroot}${python.prefix}/share/gtk-doc/html/pygnomevfs/pygnomevfs.devhelp \
74                ${destroot}${python.prefix}/share/gtk-doc/html/pygnomevfs/pygnomevfs27.devhelp
75    xinstall -d ${destroot}${prefix}/share/gtk-doc/html
76    ln -s ${python.prefix}/share/gtk-doc/html/pygnomevfs ${destroot}${prefix}/share/gtk-doc/html/pygnomevfs27
77}
78
79livecheck.type  gnome
80livecheck.name  ${my_name}
Note: See TracBrowser for help on using the repository browser.