# $Id: Portfile,v 1.9 2006/04/20 20:52:51 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-ctypes
version			0.9.9.6
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		create and manipulate C data types in Python
long_description	ctypes is a Python package to create and manipulate C \
				data types in Python, and to call functions in dynamic \
				link libraries/shared dlls. It allows wrapping these \
				libraries in pure Python.

homepage		http://starship.python.net/crew/theller/ctypes/
master_sites	sourceforge:ctypes
checksums		sha1 831a731eebf8950a3dd3eb4cc18dbde8c7a859f5
distname		ctypes-${version}

depends_lib-append	port:libffi

test.run		yes
test.cmd		${build.cmd}
test.target		test

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

platform darwin 8 {
	configure.env-append	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}
