# -*- 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
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 {devans @dbevans} openmaintainer
homepage https://www.gnome.org
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 2cc3598c4edc75e0fce395d272b86470dc595633 \
sha256 16b8bc248dcf68987826d5e39234b1bb7fd24a2607fcdbf4258fde88f012f300 \
depends_lib port:desktop-file-utils \
port:gobject-introspection \
depends_run port:adwaita-icon-theme \
# if port gnome-utils is installed
# and gnome-dictionary binary exists
# and port gnome-dictionary is NOT installed
# deactivate outdated port gnome-utils
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
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"