# $Id: Portfile 55407 2009-08-10 10:08:18Z mww@macports.org $

PortSystem 1.0

name			mathomatic
version			14.5.3
categories		math
platforms		darwin
maintainers		mww
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           md5     71651fed9f4fb1e4f591c0ea514e99ef \
                    sha1    e4fb5353759c4fdc15c6ddda579bf7d435358170 \
                    rmd160  a13013363b8034c1bda3be0f475dfafb58817622
use_bzip2		yes
patchfiles		patch-makefile.diff

depends_lib		port:readline

post-extract {
	xinstall -m 755 ${filespath}/configure ${worksrcpath}
}

configure.pre_args	${prefix}

test.run		yes

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

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

