aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Longros <chris.longros@gmail.com>2026-08-18 14:56:26 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2026-08-18 15:00:25 +0000
commitbb862b9011aa982312ceeb44d499c449b4d870b3 (patch)
treebed90797ffa3bb1793567a82eabfa1751b6304a3
parentd72502dfc6e0c04b517b55b7ef94f67a4327c902 (diff)
graphics/py-exiv2: Update 0.18.1 => 0.19.0, take maintainership
Changelog: 1/ Add exiv2.XmpParser.encode() to Python interface. 2/ Fix crash when getting strings of malformed values. 3/ Python 3.15 compatibility. https://github.com/jim-easterbrook/python-exiv2/releases/tag/0.19.0 https://github.com/jim-easterbrook/python-exiv2/blob/0.19.0/CHANGELOG.txt - Add STRIP_CMD in post-install. PR: 297603 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> MFH: 2026Q3 (cherry picked from commit 59d9d76281846c9e3427ebecd3da6b28aea5f631)
-rw-r--r--graphics/py-exiv2/Makefile9
-rw-r--r--graphics/py-exiv2/distinfo6
-rw-r--r--graphics/py-exiv2/files/patch-pyproject.toml20
-rw-r--r--graphics/py-exiv2/files/patch-tests_test__value.py4
4 files changed, 31 insertions, 8 deletions
diff --git a/graphics/py-exiv2/Makefile b/graphics/py-exiv2/Makefile
index 8367f22bc0d3..cad3ffdeb0c5 100644
--- a/graphics/py-exiv2/Makefile
+++ b/graphics/py-exiv2/Makefile
@@ -1,10 +1,10 @@
PORTNAME= exiv2
-PORTVERSION= 0.18.1
+DISTVERSION= 0.19.0
CATEGORIES= graphics python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= chris.longros@gmail.com
COMMENT= Low-level Python binding to the exiv2 C++ library
WWW= https://github.com/jim-easterbrook/python-exiv2
@@ -21,9 +21,12 @@ USE_PYTHON= pep517 autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_*${PYTHON_TAG}.so
+
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -p no:xdist tests
-# tests as of 0.18.1: 58 passed, 4 skipped in 0.87s
+# tests as of 0.19.0: 60 passed, 2 skipped in 0.37s
.include <bsd.port.mk>
diff --git a/graphics/py-exiv2/distinfo b/graphics/py-exiv2/distinfo
index bb10a6d77b99..7c61b2fe664a 100644
--- a/graphics/py-exiv2/distinfo
+++ b/graphics/py-exiv2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1778827250
-SHA256 (exiv2-0.18.1.tar.gz) = 89d41befbccac2274a71ba2e0620153cd4ccf1a0121f7c6374cc473a747485bf
-SIZE (exiv2-0.18.1.tar.gz) = 2655813
+TIMESTAMP = 1786914502
+SHA256 (exiv2-0.19.0.tar.gz) = e30d0b017e9eb50e893d41cb7013a63482865295488c823ce89c7e3a2bc03387
+SIZE (exiv2-0.19.0.tar.gz) = 2664526
diff --git a/graphics/py-exiv2/files/patch-pyproject.toml b/graphics/py-exiv2/files/patch-pyproject.toml
new file mode 100644
index 000000000000..1b4cff0e04fb
--- /dev/null
+++ b/graphics/py-exiv2/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2026-03-21 10:15:41 UTC
++++ pyproject.toml
+@@ -20,7 +20,7 @@ requires = [
+ [build-system]
+ requires = [
+ "setuptools >= 59.6, < 61.0; python_version < '3.9'",
+- "setuptools >= 77.0; python_version >= '3.9'",
++ "setuptools >= 59.6; python_version >= '3.9'",
+ "toml; python_version < '3.9'"
+ ]
+ build-backend = "setuptools.build_meta"
+@@ -29,7 +29,7 @@ readme = "README.rst"
+ name = "exiv2"
+ description = "Python interface to libexiv2"
+ readme = "README.rst"
+-license = "GPL-3.0-or-later"
++license = {text = "GPL-3.0-or-later"}
+ authors = [
+ {name = "Jim Easterbrook", email = "jim@jim-easterbrook.me.uk"}
+ ]
diff --git a/graphics/py-exiv2/files/patch-tests_test__value.py b/graphics/py-exiv2/files/patch-tests_test__value.py
index 8a167e2cc09c..e8ca8375c03a 100644
--- a/graphics/py-exiv2/files/patch-tests_test__value.py
+++ b/graphics/py-exiv2/files/patch-tests_test__value.py
@@ -1,8 +1,8 @@
-- Skip failing 2039 date test which might be due to Y2038 or timezone issues.
---- tests/test_value.py.orig 2026-05-15 06:49:00 UTC
+--- tests/test_value.py.orig 2026-07-30 08:14:17 UTC
+++ tests/test_value.py
-@@ -425,7 +425,7 @@ class TestValueModule(unittest.TestCase):
+@@ -440,7 +440,7 @@ class TestValueModule(unittest.TestCase):
date = datetime.date(2024, 7, 4)
with self.subTest(date=date):
self.do_test_DateValue(date)