# $Id: Portfile,v 1.14 2006/03/01 23:28:47 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-numarray
version			1.5.1
categories		python devel math
platforms		darwin
maintainers		mww@opendarwin.org
description		array manipulation and computational library for python
long_description	Numarray provides array manipulation and computational \
				capabilities similar to those found in IDL, Matlab, or \
				Octave. Using numarray, it is possible to write many \
				efficient numerical data processing applications \
				directly in Python without using any C, C++ or Fortran \
				code.

homepage		http://www.stsci.edu/resources/software_hardware/numarray
master_sites	sourceforge:numpy
distname		numarray-${version}
checksums		sha1 f3f2efe18f117d94b71ee8d04a904d2a28644d8f

build.args		--gencode

platform darwin 8 {
	build.env		CC=/usr/bin/gcc-4.0
}

variant smp	{
	build.args		--smp
	destroot.args	--smp
}

post-destroot {
	xinstall -m 644 -W ${worksrcpath} Doc/Announce.txt \
		Doc/Repackaging.txt Doc/INSTALL.txt Doc/Design.txt \
		Doc/UsersGuide.txt LICENSE.txt README.txt \
		${destroot}${prefix}/share/doc/${name}
	file delete ${destroot}${prefix}/share/doc/${name}/examples
	file copy ${worksrcpath}/Examples \
		${destroot}${prefix}/share/doc/${name}/examples
}

