Files
macports-ports/python/py-pdfrw/Portfile
T
2025-10-30 13:52:53 -04:00

43 lines
1.6 KiB
Tcl

# -*- 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 github 1.0
PortGroup python 1.0
github.setup pmaupin pdfrw 0.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name py-pdfrw
categories-append graphics
platforms {darwin any}
supported_archs noarch
license MIT
maintainers {guenael.com:macports @numeratus} \
openmaintainer
description Pure Python PDF file reader/writer library
long_description pdfrw lets you read and write PDF files, including \
compositing multiple pages together (e.g. to do \
watermarking, or to copy an image or diagram from \
one PDF to another), and can output by itself, or \
in conjunction with reportlab.
checksums rmd160 cd7d040e33848bec36110a81fa75df44e85ef379 \
sha256 0d613f9b619db532aa82fc977764d938d3916c664545e93cc5b4d0f372852690 \
size 72544
python.versions 311
if {${name} ne ${subport}} {
post-destroot {
xinstall -m 755 -d \
${destroot}${prefix}/share/doc/${subport} \
${destroot}${prefix}/share/examples
xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.rst \
${destroot}${prefix}/share/doc/${subport}
copy ${worksrcpath}/examples \
${destroot}${prefix}/share/examples/${subport}
}
}