# $Id: Portfile 54602 2009-07-30 06:29:03Z toby@macports.org $

PortSystem 1.0

name		GiNaC
version		1.4.4
categories	math
platforms	darwin
maintainers	gwright
description	GiNaC is Not a Computer algebra system
long_description	\
		Currently, GiNaC's capabilities include:		\
									\
		1. Very fast manipulation of large integers and		\
		   rationals owing to the CLN library (for instance,	\
		   it uses Karatsuba multiplication and			\
		   Schoenhage-Strassen multiplication for very large	\
		   integers).						\
		2. Efficient handling of multivariate polynomials and	\
		   rational functions.					\
		3. Support for linear algebra includes symbolic		\
		   matrices, vectors and solving equations.		\
		4. Very fast heuristic polynomial GCD.			\
		5. Many built in functions (sin, cos, atan, sinh,	\
		   factorial, etc.)					\
		6. Symbolic differentiation and series expansion of	\
		   all built-in functions.				\
		7. Several forms of output (also as optimized C++,	\
		   for numerical postprocessing).			\
		8. Memory-efficiency and -safety through the internal	\
		   use of reference counting for all expressions.

use_bzip2	yes
distname	ginac-${version}

homepage	http://www.ginac.de/
master_sites	${homepage}

checksums       md5     60d38b352258473e3cc4de75c0d6f88e		\
                sha1    00f2b7e4bd214d54f68cf581b3f2128d250d1b78	\
                rmd160  6dfaf8e8606ff85a2014286da00a18cebb99786a

depends_lib	port:readline	\
		port:cln

platform darwin 7 {
		pre-fetch {
			return -code error "${name} is not supported on Panther (OS X 10.3.x)."
		}
}

configure.args	--infodir=${prefix}/share/info	\
		--mandir=${prefix}/share/man

default_variants	+test
variant test description {run testsuite} {
	          test.run	yes
		  test.target	check
}
