# $Id: Portfile 85543 2011-10-14 08:03:24Z mww@macports.org $

PortSystem 1.0

name                bc
version             1.06
revision            1
categories          math
maintainers         mww
license             GPL-2
description      arbitrary precision numeric processing language
long_description \
    bc is an arbitrary precision numeric processing language. \
    Syntax is similar to C, but differs in many substantial \
    areas. It supports interactive execution of statements. \
    bc is a utility included in the POSIX P1003.2/D11 draft \
    standard.
homepage            http://www.gnu.org/software/bc/
platforms           darwin
master_sites        gnu
checksums           md5     d44b5dddebd8a7a7309aea6c36fda117 \
                    sha1    c8f258a7355b40a485007c40865480349c157292 \
                    rmd160  e0394a090ad42f289a80de1dd26d2cf591f88481

variant universal {}

configure.args      --infodir=${prefix}/share/info \
                    --mandir=${prefix}/share/man \
                    --with-libedit

post-destroot {
    file delete -force ${destroot}${prefix}/share/info/dir
}

livecheck.type      regex
livecheck.url       http://ftp.gnu.org/gnu/bc/?C=M&O=D
livecheck.regex     bc-(\[0-9\.\]+\[0-9\])\\.

