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

PortSystem 1.0
PortGroup python24 1.0

name			py-uid
version			1.0.2
revision		1
categories		python
platforms		darwin
maintainers		nomaintainer
description		unique ID generator python module and program
long_description	Provided is an implementation of a unique ID (UID) \
				generator in Python. The implementation does not \
				follow UUID or GUID standards, but rather uses \
				available system, host, user, shell environment, \
				process, and other ephemeral information fed into a \
				hasher to generate the UID.

homepage		http://www.alcyone.com/software/uid/
master_sites	${homepage}
distname		uid-${version}
checksums		md5 79868221e3baa21ae189ebcecd1ad9e6

post-extract	{
	file copy ${filespath}/setup.py ${worksrcpath}
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 755 ${filespath}/uid ${destroot}${prefix}/bin
	reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/uid
	xinstall -m 644 -W ${worksrcpath} COPYING README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/doc index.html uid.py.html \
		uid_Hash.py.html uid_HashGenerator.py.html \
		uid_IdentityHash.py.html uid_UIDGenerator.py.html \
		${destroot}${prefix}/share/doc/${name}
}
