# -*- 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 115644 2014-01-07 19:50:17Z cal@macports.org $

PortSystem      1.0

name            gcalctool
version         6.6.2
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A GNOME desktop calculator.
long_description \
                gcalctool is the desktop calculator that has been proposed \
                for GNOME. It has Basic, Financial and Scientific modes.
maintainers     nomaintainer
categories      gnome math
license         GPL-2+
platforms       darwin
homepage        http://calctool.sourceforge.net/
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  44c8392e27a078c2e4dff35067baff18569c263b \
                sha256  e708a16cc758c3a9fcb07e9c3e45989f7d9d64e2993f440e99707fcea3e1b76c

depends_build   port:pkgconfig \
                port:intltool \
                port:itstool

depends_lib     port:desktop-file-utils \
                port:gtk3 \
                port:libxml2

depends_run     port:gnome-settings-daemon \
                port:yelp

configure.args  --disable-schemas-compile

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
