# $Id: Portfile 84239 2011-09-21 10:47:22Z jmr@macports.org $

PortSystem 1.0

name             gunits
version          1.88
categories       math
license          GPL-3+
maintainers      nomaintainer
description      Unit conversion and calculation
long_description \
    GNU units converts quantities expressed in various scales to \
    their equivalents in other scales.
homepage         http://www.gnu.org/software/units/
platforms        darwin
master_sites     gnu:units
distname         units-${version}
checksums        md5     9b2ee6e7e0e9c62741944cf33fc8a656 \
                 sha1    0b65e9d9542d0c20082b0e9562fea42b1b02825e \
                 rmd160  567caeb52e741cccd260e16fcdf9d7998de0f95b

depends_lib      port:readline

eval configure.cflags-append ${configure.cppflags}
configure.args   --program-prefix=g \
                 --mandir=\\\${prefix}/share/man \
                 --infodir=\\\${prefix}/share/info

livecheck.type  regex
livecheck.url   http://ftp.gnu.org/gnu/units/?C=M&O=D
livecheck.regex units-(\\d+\\.\\d+)
