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

PortSystem 1.0
PortGroup python 1.0

name			py-pow
version			0.7
revision		1
categories-append	security
license			BSD
platforms		darwin
maintainers		nomaintainer
description		Python OpenSSL Wrappers is an interface to the openssl library
long_description	Python OpenSSL Wrappers(POW), a Python wrapper for \
				OpenSSL. X590v3 and CRL encoding is now also support \
				is now via a pure Python module, which will include \
				support for PKCS in the near future.

homepage		http://www.sourceforge.net/projects/pow/
master_sites	sourceforge:pow
distname		POW-${version}
checksums		md5 e2d83a9f564cfd0ea1e1aa6488a05247

python.versions	24

if {$subport != $name} {
    #depends_lib-append	lib:libssl:openssl

    build.env		CFLAGS=-I/usr/include LDFLAGS=-L/usr/lib \
                    CC=${configure.cc}

    pre-test	{
        system -W ${worksrcpath} "ln -sf build/lib*/POW"
    }
    test.run	no
    test.cmd	${python.bin} test/test.py
    test.target

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