1 | # $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py26-gnome |
---|
6 | set my_name gnome-python |
---|
7 | version 2.26.1 |
---|
8 | set branch [join [lrange [split $version .] 0 1] .] |
---|
9 | categories python gnome |
---|
10 | platforms darwin |
---|
11 | maintainers wanadoo.fr:neric27 openmaintainer |
---|
12 | description gnome-python is a set of python interfaces to gnome-libs. |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage http://www.pygtk.org/ |
---|
16 | master_sites gnome:sources/$my_name/$branch/ |
---|
17 | use_bzip2 yes |
---|
18 | distname $my_name-$version |
---|
19 | |
---|
20 | checksums md5 e5dcae40b2c291126843680dbed924a8 \ |
---|
21 | sha1 789627d4107aa50cd7fc763c4de015032346524e \ |
---|
22 | rmd160 054901ecd209953225ccfa725fdd9164447fbb49 |
---|
23 | |
---|
24 | depends_build port:pkgconfig |
---|
25 | |
---|
26 | depends_lib port:libgnomeui \ |
---|
27 | port:py26-gtk \ |
---|
28 | port:py26-orbit \ |
---|
29 | port:libgnome \ |
---|
30 | port:python26 \ |
---|
31 | port:libgnomecanvas \ |
---|
32 | port:gnome-vfs \ |
---|
33 | port:gconf \ |
---|
34 | port:libbonobo \ |
---|
35 | port:libbonoboui |
---|
36 | |
---|
37 | |
---|
38 | set python.branch 2.6 |
---|
39 | set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} |
---|
40 | set python.bin ${python.prefix}/bin/python${python.branch} |
---|
41 | |
---|
42 | configure.args-append --prefix=${python.prefix} |
---|
43 | configure.pkg_config_path ${python.prefix}/lib/pkgconfig |
---|
44 | |
---|
45 | configure.python ${python.bin} |
---|
46 | |
---|
47 | use_parallel_build yes |
---|
48 | |
---|
49 | # fix an import error of bonobo.ui |
---|
50 | # when gtk quartz is in use |
---|
51 | variant quartz description {fix bonobo import error when gtk +quartz is used} { |
---|
52 | patchfiles-append bonobo.diff |
---|
53 | } |
---|
54 | |
---|
55 | platform darwin 9 { |
---|
56 | post-patch { |
---|
57 | reinplace "s| -export-symbols-regex.*||g" \ |
---|
58 | ${worksrcpath}/bonobo/Makefile.in \ |
---|
59 | ${worksrcpath}/gconf/Makefile.in \ |
---|
60 | ${worksrcpath}/gnome/Makefile.in \ |
---|
61 | ${worksrcpath}/gnomecanvas/Makefile.in \ |
---|
62 | ${worksrcpath}/gnomevfs/Makefile.in |
---|
63 | } |
---|
64 | } |
---|
65 | |
---|
66 | livecheck.check regex |
---|
67 | livecheck.url http://ftp.gnome.org/pub/gnome/sources/$my_name/$branch/ |
---|
68 | livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|