# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-xmlsec
version			0.3.0
revision		1
categories-append	security textproc
license			GPL-2+
platforms		darwin
maintainers		nomaintainer
description		a set of Python bindings for the XML Security Library.
long_description	${description}

homepage		http://pyxmlsec.labs.libre-entreprise.org/
master_sites	http://labs.libre-entreprise.org/download.php/430/
distname		pyxmlsec-${version}
checksums		md5     150631f634654804076f73a0859fea1a \
				sha1    4752ced5316d676a800230eca0408dd204ffe2b4 \
				rmd160  aa945ca704ea92747e3ad46041c03b0d37380147

python.versions	24 26

if {${name} ne ${subport}} {
    patchfiles		patch-setup.py
    
    depends_lib-append	port:py${python.version}-libxml2 \
                    port:openssl \
                    port:xmlsec
    
    post-destroot	{
        file delete ${destroot}${prefix}/share/doc/${subport}/examples
        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}/
        file copy ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${subport}/
        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
            PKG-INFO README TODO ${destroot}${prefix}/share/doc/${subport}
    }
}
