# $Id: Portfile 58260 2009-09-25 00:56:08Z raimue@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                    py-openssl
version                 0.9
categories              python devel security
maintainers             raimue openmaintainer
platforms               darwin freebsd
description             python wrapper around the OpenSSL library
long_description        This python module is a rather thin wrapper around (a \
                                subset of) the OpenSSL library. With thin wrapper a lot of the \
                                object methods do nothing more than calling a corresponding \
                                function in the OpenSSL library.

homepage                http://pyopenssl.sourceforge.net/
master_sites            sourceforge:pyopenssl
distname                pyOpenSSL-${version}

checksums               md5     5bf282b2d6a03af921920c34079580f2 \
                        sha1    d39eeb26c73e4b96804e1e403e2136062910b6c2 \
                        rmd160  fec72e02a922ffb37a9c66ed809c573b778138db

depends_lib-append      port:openssl

patch   {
        reinplace "s|/sw/|${prefix}/|g" ${worksrcpath}/setup.py
}

post-destroot   {
        xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog INSTALL README \
                TODO ${destroot}${prefix}/share/doc/${name}
}
