# $Id: Portfile 46467 2009-02-05 08:57:44Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-numarray
version			1.5.2
categories		python devel math
platforms		darwin
maintainers		nomaintainer
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 17f6c4bb5f0d97e93923b8ca4f55fccc1ee985e9

build.args		--gencode

variant smp description {Specify this to try to exploit multiple processors. A work in progress ...} {
	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
}

livecheck.regex "<title>Old Numarray (.*) released.*</title>"
