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

PortSystem 1.0
PortGroup python 1.0

name			py-ezpycrypto
version			0.1.1
revision		1
categories-append	security
license			GPL
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		high-level encryption python module building upon py-crypto
long_description	ezPyCrypto is a high-level encryption library for \
				Python that makes your job of securing data easy and \
				effortless. As a reaction to some other crypto \
				libraries, which can be painfully complex to \
				understand and use, ezPyCrypto has been designed from \
				the ground up for absolute ease of use, without \
				compromising security.

homepage		http://freenet.mcnabhosting.com/python/ezPyCrypto/
master_sites	${homepage}
distname		ezPyCrypto-${version}
checksums		md5 6e30f9e6a16aca849431568e1a5b0ee1

python.versions	24

if {$subport != $name} {
    depends_lib-append	port:py${python.version}-crypto

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

    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} CHANGELOG INSTALL README \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} example1.py example2.py example3.py \
            example4.py example5.py example6.py example7.py example8.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
