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 85423 2011-10-13 14:48:37Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name glade3 |
---|
7 | conflicts glade3-devel |
---|
8 | version 3.8.1 |
---|
9 | revision 1 |
---|
10 | license LGPL-2 GPL-2 |
---|
11 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
12 | description Glade is a RAD tool to enable quick & easy development of user interfaces \ |
---|
13 | for the GTK+ toolkit and the GNOME desktop environment. |
---|
14 | long_description ${description} |
---|
15 | maintainers devans |
---|
16 | categories devel gnome |
---|
17 | platforms darwin |
---|
18 | homepage http://glade.gnome.org/ |
---|
19 | master_sites gnome:sources/${name}/${branch}/ |
---|
20 | |
---|
21 | checksums sha1 6c05dd9b8a47837749400be8b9476d8f4135af78 \ |
---|
22 | rmd160 6972aa107b59ddb44910f6941b630836179a0164 |
---|
23 | |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | depends_skip_archcheck devhelp |
---|
27 | |
---|
28 | depends_build port:pkgconfig \ |
---|
29 | port:intltool \ |
---|
30 | port:gnome-doc-utils \ |
---|
31 | port:gtk-doc |
---|
32 | |
---|
33 | depends_lib port:libxml2 \ |
---|
34 | port:libgnomeui |
---|
35 | |
---|
36 | depends_run port:hicolor-icon-theme \ |
---|
37 | port:devhelp |
---|
38 | |
---|
39 | patchfiles patch-configure.diff |
---|
40 | |
---|
41 | configure.cmd ./autogen.sh |
---|
42 | configure.args --disable-scrollkeeper |
---|
43 | |
---|
44 | variant python25 conflicts python26 python27 description {Use python 2.5} { |
---|
45 | configure.python ${prefix}/bin/python2.5 |
---|
46 | depends_lib-append port:py25-gtk |
---|
47 | set python_framework ${frameworks_dir}/Python.framework/Versions/2.5 |
---|
48 | configure.pkg_config_path ${python_framework}/lib/pkgconfig |
---|
49 | } |
---|
50 | |
---|
51 | variant python26 conflicts python25 python27 description {Use python 2.6} { |
---|
52 | configure.python ${prefix}/bin/python2.6 |
---|
53 | depends_lib-append port:py26-gtk |
---|
54 | set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 |
---|
55 | configure.pkg_config_path ${python_framework}/lib/pkgconfig |
---|
56 | } |
---|
57 | |
---|
58 | variant python27 conflicts python25 python26 description {Use python 2.7} { |
---|
59 | configure.python ${prefix}/bin/python2.7 |
---|
60 | depends_lib-append port:py27-gtk |
---|
61 | set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 |
---|
62 | configure.pkg_config_path ${python_framework}/lib/pkgconfig |
---|
63 | } |
---|
64 | |
---|
65 | if {![variant_isset python25] && ![variant_isset python26]} { |
---|
66 | default_variants +python27 |
---|
67 | } |
---|
68 | |
---|
69 | variant disable_gnome description {Disable support for GNOME UI widgets} { |
---|
70 | configure.args-append --disable-gnome |
---|
71 | depends_lib-delete port:libgnomeui |
---|
72 | } |
---|
73 | |
---|
74 | # |
---|
75 | # ige-mac-integration is broken |
---|
76 | # |
---|
77 | # disable quartz variant until this is resolved |
---|
78 | # |
---|
79 | |
---|
80 | variant quartz { |
---|
81 | # depends_lib-append port:ige-mac-integration |
---|
82 | depends_run-delete port:devhelp |
---|
83 | patchfiles-append DisableMacIntegration.diff |
---|
84 | } |
---|
85 | |
---|
86 | post-activate { |
---|
87 | system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" |
---|
88 | } |
---|
89 | |
---|
90 | livecheck.type regex |
---|
91 | livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ |
---|
92 | livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|