diff --git a/graphics/py-pypdfium2/Makefile b/graphics/py-pypdfium2/Makefile index cc95aff596b8..4534a515f7d7 100644 --- a/graphics/py-pypdfium2/Makefile +++ b/graphics/py-pypdfium2/Makefile @@ -1,38 +1,43 @@ PORTNAME= pypdfium2 -PORTVERSION= 5.6.0 +PORTVERSION= 5.7.1 CATEGORIES= graphics python -MASTER_SITES= PYPI +#MASTER_SITES= PYPI # no tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python bindings to the PDFium PDF rendering library WWW= https://github.com/pypdfium2-team/pypdfium2 LICENSE= APACHE20 BSD3CLAUSE MIT LICENSE_COMB= multi LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSES/Apache-2.0.txt LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSES/BSD-3-Clause.txt LICENSE_FILE_MIT= ${WRKSRC}/LICENSES/MIT.txt BUILD_DEPENDS= ${LO_PDFIUM}:editors/libreoffice \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${LO_PDFIUM}:editors/libreoffice USES= python -USE_PYTHON= autoplist concurrent pep517 +USE_PYTHON= pep517 concurrent autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= pypdfium2-team # pdfium version bundled with LibreOffice (editors/libreoffice) PDFIUM_VER= 7471 PDFIUM_FULL_VER= 143.0.7471.0 LO_PDFIUM= ${LOCALBASE}/lib/libreoffice/program/libpdfiumlo.so # Use pre-generated reference bindings (bundled in the source tree) to avoid # network access during the build phase. Provide the full pdfium version so # PdfiumVer.to_full() does not do a git ls-remote to chromium.googlesource.com. MAKE_ENV= PDFIUM_BINDINGS=reference \ PDFIUM_PLATFORM=system-search:${PDFIUM_VER} \ GIVEN_FULLVER=${PDFIUM_FULL_VER} +# tests as of 5.7.1: 8 failed, 160 passed, 3 skipped, 3 warnings in 5.73s (failures are possibly due to the custom ctypesgen commented out) + .include diff --git a/graphics/py-pypdfium2/distinfo b/graphics/py-pypdfium2/distinfo index a152a3adcd69..2b221398fc18 100644 --- a/graphics/py-pypdfium2/distinfo +++ b/graphics/py-pypdfium2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1775414292 -SHA256 (pypdfium2-5.6.0.tar.gz) = bcb9368acfe3547054698abbdae68ba0cbd2d3bda8e8ee437e061deef061976d -SIZE (pypdfium2-5.6.0.tar.gz) = 270714 +TIMESTAMP = 1776872387 +SHA256 (pypdfium2-team-pypdfium2-5.7.1_GH0.tar.gz) = 01a363371945790e15d85970955efbb3ede6adce50edf85fa0bc5be7bf46a9e1 +SIZE (pypdfium2-team-pypdfium2-5.7.1_GH0.tar.gz) = 572130 diff --git a/graphics/py-pypdfium2/files/patch-pyproject.toml b/graphics/py-pypdfium2/files/patch-pyproject.toml index aa3b7adadbaf..d3c976f086da 100644 --- a/graphics/py-pypdfium2/files/patch-pyproject.toml +++ b/graphics/py-pypdfium2/files/patch-pyproject.toml @@ -1,11 +1,11 @@ ---- pyproject.toml.orig 2026-04-05 21:42:40 UTC +--- pyproject.toml.orig 2026-04-20 14:33:01 UTC +++ pyproject.toml @@ -9,7 +9,7 @@ requires = [ "packaging", # XXX dependence on wheel is historical, with setuptools >= v70.1.0 this is not needed anymore "wheel !=0.38.0, !=0.38.1", -- "ctypesgen @ git+https://github.com/pypdfium2-team/ctypesgen@8ab382671a113cb7b9123e1d5ae5a554d4cb52e6", -+ # ctypesgen (pypdfium2 fork) is not required when PDFIUM_BINDINGS=reference +- "ctypesgen @ git+https://github.com/pypdfium2-team/ctypesgen@pypdfium2", ++ #"ctypesgen @ git+https://github.com/pypdfium2-team/ctypesgen@pypdfium2", ] [tool.cibuildwheel]