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

name                gexpr
conflicts           coreutils
version             2.0.2
categories          math
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         A shell calculator

long_description    Gexpr is a shell calculator with floating point, standard \
                    C functions, relational operators, and output in base 2/8/10/16. \
                    It is a light alternative to bc(1). It can also be used to add \
                    floating point math to shell scripts.

homepage            http://gexpr.sourceforge.net/
master_sites        http://www.ibiblio.org/pub/Linux/apps/math/calc/ freebsd

checksums           md5     e4cb9b62b1f363bbf788f455ef144885

use_configure       no

variant universal {}

configure.cflags-append -Wall

build.args          CC="${configure.cc}" \
                    OPTS="${configure.cflags} [get_canonical_archflags cc]"

destroot {
    xinstall -m 755 ${worksrcpath}/gexpr ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/gexpr.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} README COPYING \
        ${destroot}${prefix}/share/doc/${name}
}
