# $Id: Portfile 92677 2012-05-03 20:09:21Z mww@macports.org $

PortSystem 1.0

name                mathomatic
version             15.8.3
categories          math
platforms           darwin
maintainers         mww
license             LGPL-2.1
description         small, portable symbolic math program
long_description    Mathomatic is a small, portable symbolic math program \
                    that can automatically solve, simplify, differentiate, \
                    combine, and compare algebraic equations, perform \
                    polynomial and complex arithmetic, etc.

homepage            http://www.mathomatic.org/math/
master_sites        http://mathomatic.org/
checksums           md5     df4296e27840ecafe87f16ff9cf181ac \
                    sha1    08d2134c673e154c9c881ebb3d9258067d539260 \
                    rmd160  601f68d13cf73f571f946cd401362ef1e3b3d510
use_bzip2           yes

depends_lib         port:readline

use_configure       no

build.args          prefix=${prefix} CC=${configure.cc} CC_OPTIMIZE=${configure.cflags}

test.run            yes

destroot.destdir    prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man docdir=${destroot}${prefix}/share/doc

livecheck.type      regex
livecheck.url       http://www.mathomatic.org/math/download.html
livecheck.regex     ${name}-(\[0-9\\.\]+\[0-9\])\.tar.bz2

