# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-unum
version			4.0
categories		python
platforms		darwin
maintainers		nomaintainer
description		python module for using numbers with units, like volts, meters
long_description	Unum stands for unit-numbers. It is a Python module \
				that allows defining and manipulating true quantities, \
				i.e. numbers with units like volts, hours, \
				meter-per-second. Consistency between units is checked \
				at each expression evaluation\; unit conversion and \
				unit output formatting are performed automatically \
				when needed.

homepage		http://home.tiscali.be/be052320/Unum.html
master_sites	http://home.tiscali.be/be052320/unum0400/
distname		Unum-${version}
checksums		md5 45fc2f8fdec624fbd7cb88b20b744778
use_zip			yes

test.run		yes
test.env		PYTHONPATH=${worksrcpath}/build/lib
test.cmd		${python.bin} unum/tools/test.py
test.target

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