# -*- 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

PortSystem          1.0
PortGroup           github 1.0

github.setup        qalculate qalculate-gtk 5.0.0 v
github.tarball_from releases
revision            0

categories          math
platforms           darwin
license             GPL-2+
maintainers         {gmail.com:jjstickel @jjstickel} \
                    {judaew @judaew} \
                    openmaintainer

description         Qalculate! is a multi-purpose desktop calculator
long_description    Qalculate! is a multi-purpose desktop calculator. \
                    It is small and simple to use but with much \
                    power and versatility underneath. Features include \
                    customizable functions, units, arbitrary precision, \
                    plotting, and a user-friendly interface.

checksums           rmd160  10196e3b17523268c866fcca474b6ecfc04451db \
                    sha256  4fb840a42a2246a98db81431baf4622504a226b1d3cbbe36da5649926ad177a9 \
                    size    2855414

# autoreconf to reconfigure for intltool
use_autoreconf      yes
autoreconf.args     -fvi

depends_build-append \
                    port:intltool \
                    port:pkgconfig

depends_lib-append \
                    port:libqalculate \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3

notes-append "Graphical plotting is enabled by installing gnuplot.\n"
