# -*- 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 148420 2016-05-07 22:39:03Z devans@macports.org $ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name gnome-calculator version 3.20.1 license GPL-3 set branch [join [lrange [split ${version} .] 0 1] .] description Calculator with financial and scientific modes. long_description Calculator is an application that solves mathematical equations \ and is suitable as a default application in a Desktop environment. maintainers devans openmaintainer categories gnome platforms darwin homepage https://wiki.gnome.org/Apps/Calculator master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 1523acb5842791cb6270813da75ed6541e5117a0 \ sha256 02edcf99857599ac10ecd2faaf33ad20a9f11f7c5a89a52ee1b511d99b594b90 depends_build port:pkgconfig \ port:intltool \ port:itstool \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gtk3 \ port:gtksourceview3 \ port:libxml2 \ port:mpfr \ port:vala depends_run port:gnome-themes-standard \ port:yelp # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh # blacklist compilers that do not support C11 (redefinition of typedef ‘GtkSourceTag’ at gtksourceview/gtksourcetag.h:35) compiler.blacklist *gcc* {clang < 300} configure.args --disable-schemas-compile \ --disable-silent-rules 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