# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 147435 2016-04-03 17:04:17Z devans@macports.org $ PortSystem 1.0 PortGroup gobject_introspection 1.0 name gnome-dictionary version 3.20.0 license GPL-2 GFDL-1.1 LGPL-2.1 set branch [join [lrange [split ${version} .] 0 1] .] description GNOME dictionary application. long_description GNOME Dictionary can look for the definition or translation \ of a word in existing databases over the Internet. maintainers juanrgar devans openmaintainer categories gnome platforms darwin homepage https://www.gnome.org master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 763b9cdc31185161887557554b45edb782fc2e51 \ sha256 efb36377d46eff9291d3b8fec37baab2355f9dc8bc7edb791b6a625574716121 depends_build port:pkgconfig \ port:intltool \ port:itstool \ port:yelp-tools \ port:gtk-doc \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gtk3 depends_run port:gnome-themes-standard \ port:yelp gobject_introspection yes # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.args --disable-schemas-compile \ --disable-silent-rules # if port gnome-utils is installed # and gnome-dictionary binary exists # and port gnome-dictionary is NOT installed # deactivate outdated port gnome-utils pre-activate { if {![catch {registry_active gnome-utils}]} { if {[file exists ${prefix}/bin/gnome-dictionary]} { if {[catch {registry_active gnome-dictionary}]} { registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1] } } } } # port installs desktop application file, and gschemas post-activate { system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } livecheck.type gnome