# $Id: Portfile 50285 2009-04-28 18:59:38Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-pow
version			0.7
revision		1
categories		python security
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

#depends_lib-append	lib:libssl:openssl

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

pre-test	{
	system "cd ${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/${name}
}
