# $Id: Portfile 62866 2010-01-19 15:23:13Z mww@macports.org $

PortSystem 1.0

name			mathomatic
version			15.0.4
categories		math
platforms		darwin
maintainers		mww
license			GPLv2
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     efc6e171fcab87d471638fe89db38e7a \
                    sha1    8b6a5f9d8ce327cea7af9a2fa2eb86595dc62071 \
                    rmd160  d5e925b5cad633cd8797367c4db1463051f3f7cc
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.type	regex
livecheck.url	http://www.panix.com/~gesslein/?C=M\;O=D
livecheck.regex	${name}-(\[0-9\\.\]+\[0-9\])\.

