Skip to content
Permalink
Browse files

py-xhtml2pdf: update to 0.2.3, add py37

- update homepage
- use default PyPI livecheck
- install files in post-destroot
  • Loading branch information
reneeotten committed Apr 18, 2019
1 parent cc797ba commit 7d7b2f1afdde9c103fb4724ff978e0bbc776d9b9
Showing with 17 additions and 12 deletions.
  1. +17 −12 python/py-xhtml2pdf/Portfile
@@ -4,35 +4,40 @@ PortSystem 1.0
PortGroup python 1.0

name py-xhtml2pdf
version 0.0.6
revision 1
version 0.2.3
revision 0
maintainers nomaintainer
platforms darwin
supported_archs noarch

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

distname xhtml2pdf-${version}
master_sites pypi:x/xhtml2pdf/

checksums rmd160 37c26819a1b3e3aa5adb571c5d2f1cadeee5c74b \
sha256 29dbf7da8943ccef4afb958747cd0084762821546e3cc62d23115fd7470d95f0
checksums rmd160 c4f15229b1cbae876a49b01794cdde798cb84109 \
sha256 86a37e78d7a8d8bb2761746c3d559e12284d92c4d531b3a8a0f8fd632b436f82 \
size 99510

python.versions 27
python.versions 27 37

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

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \
${destroot}${docdir}
}

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

0 comments on commit 7d7b2f1

Please sign in to comment.
You can’t perform that action at this time.