# $Id: Portfile 80815 2011-07-18 18:00:17Z jmr@macports.org $

PortSystem 1.0

name                    py26-libxslt
epoch                   1
version                 1.1.26
categories              python textproc
license                 MIT
platforms               darwin
maintainers             nomaintainer
description             Python bindings for libxslt
long_description        ${description}

homepage                http://xmlsoft.org/XSLT/
master_sites            ftp://fr.rpmfind.net/pub/libxml/ \
                        ftp://gd.tuwien.ac.at/pub/libxml/ \
                        http://xmlsoft.org/sources/ \
                        ftp://xmlsoft.org/libxslt/
distname                libxslt-${version}
dist_subdir             libxslt
checksums               md5 e61d0364a30146aaa3001296f853b2b9 \
                        sha1 69f74df8228b504a87e2b257c2d5238281c65154 \
                        rmd160 fc7630352ae5772d25fc8132a373d477fb8d8d5f

depends_lib-append      port:libxslt \
                        port:py26-libxml2

configure.python        ${prefix}/bin/python2.6
configure.args          --mandir=${prefix}/share/man \
                        --enable-static \
                        --with-libxml-prefix=${prefix} \
                        --with-python \
                        --without-crypto

destroot.dir            ${worksrcpath}/python
destroot.args           PYTHON_SITE_PACKAGES="${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages"
post-destroot {
    move ${destroot}${prefix}/share/doc/libxslt-python-${version} \
         ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${homepage}news.html
livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
