Ticket #39401: Portfile

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