# $Id: Portfile 37958 2008-06-30 22:12:34Z raimue@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                    py-openssl
version                 0.7
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     1924edc58c1e99f27763971d9959ea15 \
                        sha1    bd072fef8eb36241852d25a9161282a051f0a63e \
                        rmd160  a3d208705bd9d495eb7c20f9306e568b71fe95fc

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}
}
