# -*- 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
PortGroup               github 1.0

github.setup            mstamy2 PyPDF2 1.26.0
name                    py-pypdf2
categories-append       devel
platforms               darwin
supported_archs         noarch
license                 BSD
maintainers             {reneeotten @reneeotten} openmaintainer

description             A utility to read and write pdfs with Python
long_description        A Pure-Python PDF toolkit. It is capable of \
                        extracting document information, splitting \
                        documents page by page, merging documents page \
                        by page, cropping pages, merging multiple pages \
                        into a single page, and encrypting and \
                        decrypting PDF files.

checksums               rmd160  04256188413724d3bdbaeaecb923966145014958 \
                        sha256  3d5531d5bb456fdb1881356352035059a878dea4a5548c4a57e01d82075870df \
                        size    199567

python.versions         27 34 35 36 37

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} CHANGELOG LICENSE README.md \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
}