# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-xhtml2pdf
version                 0.0.4
maintainers             perry openmaintainer
platforms               darwin
supported_archs         noarch

description             HTML/CSS to PDF converter based on Python
long_description        ${description}
license                 Apache-2
homepage                http://pypi.python.org/pypi/xhtml2pdf/

livecheck.regex         {>xhtml2pdf (.+) :}
livecheck.type          regex
livecheck.url           ${homepage}

distname                xhtml2pdf-${version}
master_sites            http://pypi.python.org/packages/source/x/xhtml2pdf/

checksums               rmd160  7196b4a8aec1569c8a72fc74fb151c3ce4404f2e \
                        sha256  2a533f80874338069739d013737b2fd35f0143a46366097ad907fb24ee881233

python.default_version  27
python.versions         26 27

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-html5lib \
                            port:py${python.version}-pil \
                            port:py${python.version}-pypdf \
                            port:py${python.version}-reportlab
}
