Install this version:
emerge -a =dev-python/pypdfium2-5.15.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/pypdfium2-5.15.2
Or alternatively:
emerge --autounmask-write -a =dev-python/pypdfium2-5.15.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 5.15.2 | 8 | ~amd64 | 0 |
# 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_{10..14} )
inherit distutils-r1 git-r3
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"
# pypdfium2 generates its bindings from the installed pdfium headers via
# ctypesgen at build time and records the detected version (SONAME/pkg-config),
# so any pdfium >= the release's pinned build works; the floor blocks pdfium
# builds too old for 5.15.x's API expectations. The := operator (with pdfium's
# version subslot) triggers a rebuild — and thus binding regeneration — on
# every pdfium change, since pdfium makes no ABI stability guarantees.
RDEPEND="
>=app-text/pdfium-8138:=
"
BDEPEND="
test? (
dev-python/pillow[jpeg,jpeg2k,lcms,tiff,truetype,zlib,${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}"/run_cmd2.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
src_unpack() {
default
# ctypesgen
EGIT_BRANCH="pypdfium2"
EGIT_REPO_URI="https://github.com/pypdfium2-team/ctypesgen"
EGIT_CHECKOUT_DIR="${S}/deps/ctypesgen"
git-r3_src_unpack
# remove ctypesges tests
rm -rf "${S}/deps/ctypesgen/tests" || die
}
src_configure() {
export PDFIUM_PLATFORM="system-search"
distutils-r1_src_configure
}
>=app-text/pdfium-8138:=
test? ( dev-python/pillow[jpeg,jpeg2k,lcms,tiff,truetype,zlib,] dev-python/numpy[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pypdfium2-5.15.2.gh.tar.gz | 638574 bytes | https://github.com/pypdfium2-team/pypdfium2/archive/5.15.2.tar.gz |