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

PortSystem 1.0
PortGroup python24 1.0

name			py-rijndael
version			1.3
categories		python security
maintainers		nomaintainer
platforms		darwin freebsd
description		Rijndael encryption algorithm for python
long_description	A pure python implementation of the Rijndael \
				encryption algorithm. Useful for quick string encryption in \
				python programs but probably is not fast enough for anything \
				too big.

homepage		http://jclement.ca/software/pyrijndael/
master_sites	${homepage}
distname		pyrijndael-${version}-src
checksums		md5 770b44d8b7e5505587079580c456a5bc

worksrcdir		pyrijndael-${version}

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

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} LICENSE.BSD project.xml readme.html \
		${destroot}${prefix}/share/doc/${name}
}
