The python-pymupdf and mupdf packages do not follow the exact same version numbers anymore. There is no specific mention of version compatibilities in the upstream package, so update our comment to just say that both should be "compatible" (to try to avoid one being updated without the other). The hardcoded paths we used to remove from setup.py are no longer present, so the post-patch hook is removed. The new setup.py instead uses new environment variables which we now provide. This new python-pymupdf version fails at runtime when mupdf builds static libraries. Note also that python-pymupdf is gradually switching to a new implementation that requires mupdf to be built with python bindings. For now, both implementations are still available but we only compile the old one. The runtime test is adapted accordingly as the legacy implementation has to be imported with "fitz_old". While at it, the dependencies are also split to one per line to make them easier to diff in the future. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [Raphaël: - fix cross-compilation - remove unneeded dependencies - update to 1.23.22 - update the commit message ] Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
21 lines
721 B
Plaintext
21 lines
721 B
Plaintext
config BR2_PACKAGE_PYTHON_PYMUPDF
|
|
bool "python-pymupdf"
|
|
depends on BR2_INSTALL_LIBSTDCPP # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # mupdf -> harfbuzz
|
|
depends on !BR2_STATIC_LIBS # runtime failure
|
|
select BR2_PACKAGE_HOST_SWIG
|
|
select BR2_PACKAGE_FREETYPE
|
|
select BR2_PACKAGE_MUPDF
|
|
select BR2_PACKAGE_PYTHON3_ZLIB # runtime
|
|
help
|
|
Python bindings for the PDF rendering library MuPDF.
|
|
|
|
https://github.com/pymupdf/PyMuPDF
|
|
|
|
comment "python-pymupdf needs a toolchain w/ C++, gcc >= 4.9, dynamic library"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
|
BR2_STATIC_LIBS
|