# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-rijndael
version			1.3
categories-append	security
license			BSD
maintainers		nomaintainer
platforms		darwin freebsd
supported_archs	noarch
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}

python.versions	24

if {$subport != $name} {
    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/${subport}
    }
}
