# $Id: Portfile 100055 2012-11-25 14:18:53Z ciserlohn@macports.org $

PortSystem 1.0

name             gunits
version          2.01
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        rmd160  2d3670658414ae77ae885c133880c515991d28ad \
                 sha256  138b12c70bffa0e484fdfe579927412b1ac573e8351c17d8938592f9ba9a88f2

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+)
