# -*- 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 PortSystem 1.0 PortGroup python 1.0 name py-xhtml2pdf version 0.2.13 revision 0 categories-append textproc supported_archs noarch platforms {darwin any} license Apache-2 maintainers nomaintainer description HTML/CSS to PDF converter based on Python long_description {*}${description} homepage https://github.com/xhtml2pdf/xhtml2pdf checksums rmd160 05994496de37265b723cc1c6ecbef9f2244364d9 \ sha256 ab48cb6482e441a0d117f34ffab605181d2689e56a5e54a24d97f2b9d9a8776b \ size 117512 python.versions 39 310 311 312 if {${name} ne ${subport}} { depends_lib-append \ port:py${python.version}-arabic-reshaper \ port:py${python.version}-bidi \ port:py${python.version}-html5lib \ port:py${python.version}-hanko \ port:py${python.version}-Pillow \ port:py${python.version}-pypdf \ port:py${python.version}-reportlab \ port:py${python.version}-six \ port:py${python.version}-svglib post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \ ${destroot}${docdir} } if {${python.version} < 311} { depends_test-append \ port:py${python.version}-tomli } test.run yes }