Portfile

# $Id: Portfile 22553 2007-03-04 20:55:57Z mww@macports.org $

PortSystem 1.0

name mathomatic
version 12.6.10
categories math
platforms darwin
maintainers mww@macports.org
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://mathomatic.orgserve.de/math/
master_sites http://www.panix.com/~gesslein/
checksums sha1 dc1abbcd50015c556e6f760329765dd642651c2b
use_bzip2 yes

depends_lib port:readline

use_configure no

build.env READLINE=1 CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

test.run yes

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

platform darwin 8 {
build.args CC=/usr/bin/gcc-4.0
}

livecheck.check regex
livecheck.url http://www.panix.com/~gesslein/?M=D
livecheck.regex ${name}-(\[0-9\\.\]+)\\.