You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
53 lines
1.8 KiB
Tcl
53 lines
1.8 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 python 1.0
|
|
|
|
name py-pypdf
|
|
version 6.14.2
|
|
revision 0
|
|
|
|
categories-append devel
|
|
platforms {darwin any}
|
|
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.
|
|
|
|
homepage https://github.com/py-pdf/pypdf
|
|
|
|
checksums rmd160 8b0597dfc7963b96cbcc4760e84b94816126ef3d \
|
|
sha256 7873f502fe4385e79539b21d872392dc0c4e3714327c15881cbc7fbfd1f95b25 \
|
|
size 6491182
|
|
|
|
python.versions 310 311 312 313 314
|
|
python.pep517_backend flit
|
|
|
|
if {${name} ne ${subport}} {
|
|
if {${python.version} < 311} {
|
|
depends_lib-append \
|
|
port:py${python.version}-typing_extensions
|
|
}
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/share/doc/${subport}
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
|
|
${destroot}${prefix}/share/doc/${subport}
|
|
}
|
|
|
|
depends_test-append \
|
|
port:py${python.version}-pytest-timeout \
|
|
port:py${python.version}-yaml
|
|
test.run yes
|
|
|
|
# Don't run tests that rely on test data not included in the distfile.
|
|
test.args -o addopts="-m 'not enable_socket and not samples'"
|
|
}
|