/
Portfile
56 lines (46 loc) · 2.21 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- 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
name py-mupdf
# Keep synchronized with port:mupdf.
github.setup pymupdf PyMuPDF 1.23.5
github.tarball_from archive
revision 0
categories python graphics
maintainers nomaintainer
license AGPL-3+
description Python bindings for MuPDF, a lightweight PDF, XPS, and \
E-book viewer, renderer, and toolkit
long_description PyMuPDF adds Python bindings and abstractions to MuPDF, a \
lightweight PDF, XPS, and eBook viewer, renderer, and \
toolkit. Both PyMuPDF and MuPDF are maintained and \
developed by Artifex Software, Inc. \
\
MuPDF can access files in PDF, XPS, OpenXPS, CBZ, EPUB and \
FB2 (eBooks) formats, and it is known for its top \
performance and exceptional rendering quality. \
\
With PyMuPDF you can access files with extensions like \
.pdf, .xps, .oxps, .cbz, .fb2 or .epub. In addition, about \
10 popular image formats can also be handled like \
documents: .png, .jpg, .bmp, .tiff, etc.
homepage https://pymupdf.readthedocs.io/
checksums rmd160 d08fe823f29b7cb5860a00d733973ea8fa685e97 \
sha256 0c3fa40951d2f1455c944898df09cbb42a8f0dfb80f8ff7b70ae678426d3c7a0 \
size 14640909
python.versions 38 39 310 311 312
python.pep517 yes
if {${name} ne ${subport}} {
depends_build-append \
port:swig-python
depends_lib-append \
port:freetype \
port:mupdf
patchfiles patch-build.diff
build.env-append \
PYMUPDF_SETUP_MUPDF_BUILD= \
PYMUPDF_SETUP_IMPLEMENTATIONS=a \
PYMUPDF_INCLUDES=${prefix}/include:${prefix}/include/freetype2 \
PYMUPDF_MUPDF_LIB=${prefix}/lib
}