Ticket #31441: Portfile

File Portfile, 3.0 KB (added by gellule.xg@…, 13 years ago)

Resulting new Portfile

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