# $Id: Portfile,v 1.4 2004/12/31 16:57:02 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-gmpy
version			1.0alpha
revision		1
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		general MultiPrecision arithmetic module for Python
long_description	gmpy is a general MultiPrecision arithmetic module for \
				Python wrapping the GNU arbitrary precision arithmetic \
				library 'gmp'.

homepage		http://gmpy.sourceforge.net/
master_sites	sourceforge:gmpy
distname		gmpy-sources-10
checksums		md5 a34de2f217f89d82e8d9dd1abe4f1122
use_zip			yes

depends_lib-append	lib:libgmp:gmp

worksrcdir		gmpy

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

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} doc/gmpydoc.txt doc/index.html \
		README ${destroot}${prefix}/share/doc/${name}
}
