# -*- 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 # $Id: Portfile 115615 2014-01-07 00:28:17Z cal@macports.org $ PortSystem 1.0 name glade version 3.16.1 license LGPL-2+ GPL-2+ set branch [join [lrange [split ${version} .] 0 1] .] description Glade is a RAD tool to enable quick & easy development of user interfaces \ for the GTK+ 3.* toolkit and the GNOME desktop environment. long_description ${description} maintainers devans openmaintainer categories devel gnome platforms darwin homepage https://wiki.gnome.org/Apps/Glade master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 80d315f8c749bff750eee5085c93d5a2db0a5e8f \ sha256 994ac258bc100d3907ed40a2880c3144f13997b324477253e812d59f2716523f depends_skip_archcheck devhelp depends_build port:pkgconfig \ port:intltool \ port:itstool \ port:gnome-doc-utils depends_lib path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ port:gobject-introspection \ port:libxml2 depends_run port:desktop-file-utils \ port:devhelp patchfiles patch-configure.diff # # disable optimization which (at least with clang) # causes glade to segfault on startup # after displaying main window # configure.optflags -O0 configure.args --enable-introspection=yes \ --enable-gladeui \ --enable-debug configure.cflags-append \ -Wno-format-nonliteral variant python26 conflicts python27 description {Use python 2.6} { configure.python ${prefix}/bin/python2.6 depends_lib-append port:py26-gobject3 set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 configure.pkg_config_path ${python_framework}/lib/pkgconfig } variant python27 conflicts python26 description {Use python 2.7} { configure.python ${prefix}/bin/python2.7 depends_lib-append port:py27-gobject3 set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 configure.pkg_config_path ${python_framework}/lib/pkgconfig } if {![variant_isset python26]} { default_variants +python27 } post-activate { system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" } livecheck.type gnome