summaryrefslogtreecommitdiff
path: root/dev-python/pypdfium2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pypdfium2')
-rw-r--r--dev-python/pypdfium2/Manifest6
-rw-r--r--dev-python/pypdfium2/files/run_cmd.patch11
-rw-r--r--dev-python/pypdfium2/metadata.xml12
-rw-r--r--dev-python/pypdfium2/pypdfium2-5.7.1.ebuild49
-rw-r--r--dev-python/pypdfium2/pypdfium2-5.8.0.ebuild49
5 files changed, 127 insertions, 0 deletions
diff --git a/dev-python/pypdfium2/Manifest b/dev-python/pypdfium2/Manifest
new file mode 100644
index 000000000000..4f1751f8fc26
--- /dev/null
+++ b/dev-python/pypdfium2/Manifest
@@ -0,0 +1,6 @@
+AUX run_cmd.patch 423 BLAKE2B 3441d4f140019301968909dc0346e05a70c6b1234b22363b87b1885a8ae404602ff6a68fe2553a176fbcc2c42284484c746f826cfdd9d165300509309b84c6f2 SHA512 cc548a05881820b4c9118c7f8e6f9dd5e419dd0791f6af788a78af0ebf399cdca368932ab48cd81f4bfc22f79c2aa2a87846f4e0d55d31be39ed418e29dfe98c
+DIST pypdfium2-5.7.1.gh.tar.gz 572130 BLAKE2B 0552d31eaae02d9b168acc9f11b9138dd863b67d860535e0245daa2d048af5cfc13d2ec57837b9d789a29fa42c53ce0108664464587ce347e098e0aa42971723 SHA512 9361a142cb9d4d84012c5d8dd45e5146be2d4c4a5317636238cc6f0db85829c61911ed6a2c37f02cc690f39d089d83e648711d6e1e28953e3583ccb65b64f559
+DIST pypdfium2-5.8.0.gh.tar.gz 578682 BLAKE2B 338169f7af3dec3258af32543e055afb1f5c25d8844b673310fb8df1b3a69fb1fcff680f00a5b5fe1583b598cac9d244478efe3aa19b42bf28201ddec804ded4 SHA512 a208f1761e39d5030daed7fec57c57795b1ea6c3d1b851043dc98f4e050e16a99a826cfa4f607d4fc80b749acdcd978740d8d4b2cae3c2be5f5a5e54bfcfded1
+EBUILD pypdfium2-5.7.1.ebuild 1122 BLAKE2B eb381e7922edc5e0c1bb4e6d13f5d7d3d2061b14619dca11c038ca30f2e2f9c3cdd1886c488e10394cee3da112be848ee3910fdae51b20bee704457cd8e05c8b SHA512 339b3a879073e3c958062d337f7c8bfd81494dec8d8afd8c9de845d27ddce87a217e3d6a2c4967d71f54dc4a37c0ae472256e901e1c4ec56c2474b8a685949c6
+EBUILD pypdfium2-5.8.0.ebuild 1122 BLAKE2B 890e6733e54773a63b0a44882ecb7d72be00ded7938fd5437631c98c7c36602c6f8a567f23a80c38d229e03dd9ed29c1af585e7b208deed2022e0898919cbe17 SHA512 e34e670438edf6ed49b1edf1e275c723a8392e0a6f0938ce9bec45194f99d0a6a37b9bef171f49b43ee8a42d211e77fd81fdd1b8711a54b38c1095fdc34de31a
+MISC metadata.xml 464 BLAKE2B 05bdd66b57a91952a3ca548bd428466ba6abb24a947b834f01d39ded739bd13f1e079dd704ba493ca00c835bb48dc820c8a968d03d85b5aef67cc58096a65cbc SHA512 84cd6df7d67cb4b51e299e98fd4318587bf4b716000cc8844387ec81766b6afec60c6047b0e018aa2e91597c6687cb5d6d55c9751a57116265d225747a532f53
diff --git a/dev-python/pypdfium2/files/run_cmd.patch b/dev-python/pypdfium2/files/run_cmd.patch
new file mode 100644
index 000000000000..f34d509787b7
--- /dev/null
+++ b/dev-python/pypdfium2/files/run_cmd.patch
@@ -0,0 +1,11 @@
+--- a/setupsrc/base.py 2026-03-10 23:18:27.497899682 +0100
++++ b/setupsrc/base.py 2026-03-10 23:19:24.051760735 +0100
+@@ -640,6 +640,8 @@
+ if stderr is not None:
+ # allow the caller to pass e.g. subprocess.STDOUT
+ kwargs["stderr"] = stderr
++ else:
++ kwargs["capture_output"] = True
+
+ comp_process = subprocess.run(command, cwd=cwd, check=check, **kwargs)
+ if capture:
diff --git a/dev-python/pypdfium2/metadata.xml b/dev-python/pypdfium2/metadata.xml
new file mode 100644
index 000000000000..eda3503786e5
--- /dev/null
+++ b/dev-python/pypdfium2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/pypdfium2-team/pypdfium2/issues</bugs-to>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/pypdfium2/pypdfium2-5.7.1.ebuild b/dev-python/pypdfium2/pypdfium2-5.7.1.ebuild
new file mode 100644
index 000000000000..77a00f35df37
--- /dev/null
+++ b/dev-python/pypdfium2/pypdfium2-5.7.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="pypdfium2 is an ABI-level Python 3 binding to PDFium"
+HOMEPAGE="https://github.com/pypdfium2-team/pypdfium2"
+SRC_URI="https://github.com/pypdfium2-team/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0 BSD CC-BY-4.0 LGPL-3 MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ =app-text/pdfium-7802
+"
+BDEPEND="
+ test? (
+ dev-python/pillow[jpeg,jpeg2k,lcms,tiff,truetype,zlib,${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )
+"
+PATCHES=(
+ "${FILESDIR}"/run_cmd.patch
+)
+
+DOCS=( README.md )
+
+EPYTEST_PLUGINS=( )
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/source \
+ dev-python/myst-parser \
+ dev-python/sphinx-issues \
+ dev-python/sphinx-rtd-theme \
+ dev-python/sphinxcontrib-programoutput
+
+EPYTEST_DESELECT=(
+ "tests/test_misc.py::test_const_converters[mapping11-True-items11]"
+)
+
+src_configure() {
+ export PDFIUM_PLATFORM="system-search"
+ distutils-r1_src_configure
+}
diff --git a/dev-python/pypdfium2/pypdfium2-5.8.0.ebuild b/dev-python/pypdfium2/pypdfium2-5.8.0.ebuild
new file mode 100644
index 000000000000..7742849acec4
--- /dev/null
+++ b/dev-python/pypdfium2/pypdfium2-5.8.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="pypdfium2 is an ABI-level Python 3 binding to PDFium"
+HOMEPAGE="https://github.com/pypdfium2-team/pypdfium2"
+SRC_URI="https://github.com/pypdfium2-team/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0 BSD CC-BY-4.0 LGPL-3 MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ =app-text/pdfium-7825
+"
+BDEPEND="
+ test? (
+ dev-python/pillow[jpeg,jpeg2k,lcms,tiff,truetype,zlib,${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )
+"
+PATCHES=(
+ "${FILESDIR}"/run_cmd.patch
+)
+
+DOCS=( README.md )
+
+EPYTEST_PLUGINS=( )
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/source \
+ dev-python/myst-parser \
+ dev-python/sphinx-issues \
+ dev-python/sphinx-rtd-theme \
+ dev-python/sphinxcontrib-programoutput
+
+EPYTEST_DESELECT=(
+ "tests/test_misc.py::test_const_converters[mapping11-True-items11]"
+)
+
+src_configure() {
+ export PDFIUM_PLATFORM="system-search"
+ distutils-r1_src_configure
+}