# $Id: Portfile 106416 2013-05-25 15:43:04Z mww@macports.org $

PortSystem 1.0

name                mathomatic
version             16.0.5
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           rmd160  7ede75ba73213d17d7a49f75c1ff293981737d07 \
                    sha256  976e6fed1014586bcd584e417c074fa86e4ca6a0fcc2950254da2efde99084ca
use_bzip2           yes

depends_lib         port:libedit

patchfiles          patch-makefile.diff

use_configure       no

build.args          prefix=${prefix} CC=${configure.cc} CC_OPTIMIZE=${configure.cflags} CPPFLAGS=${configure.cppflags} LDFLAGS=${configure.ldflags} READLINE=1

test.run            yes

destroot.args       prefix=${prefix}

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

