git: 5e7242d99af0 - main - deskutils/pinot: make compatible with exiv2 0.28

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sun, 09 Jul 2023 22:09:45 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e7242d99af0988c1a6d12cac50f75e0ba9d63dc

commit 5e7242d99af0988c1a6d12cac50f75e0ba9d63dc
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-07-02 21:47:18 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-07-09 22:08:11 +0000

    deskutils/pinot: make compatible with exiv2 0.28
    
    PR:             272311
---
 deskutils/pinot/Makefile                             |  2 +-
 .../files/patch-Tokenize_filters_Exiv2ImageFilter.cc | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/deskutils/pinot/Makefile b/deskutils/pinot/Makefile
index 43e07259ea10..1a67b04c177f 100644
--- a/deskutils/pinot/Makefile
+++ b/deskutils/pinot/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	pinot
 PORTVERSION=	1.21
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	deskutils
 
 MAINTAINER=	thierry@FreeBSD.org
diff --git a/deskutils/pinot/files/patch-Tokenize_filters_Exiv2ImageFilter.cc b/deskutils/pinot/files/patch-Tokenize_filters_Exiv2ImageFilter.cc
new file mode 100644
index 000000000000..6feb36bc6a12
--- /dev/null
+++ b/deskutils/pinot/files/patch-Tokenize_filters_Exiv2ImageFilter.cc
@@ -0,0 +1,20 @@
+--- Tokenize/filters/Exiv2ImageFilter.cc.orig	2022-02-22 20:31:11 UTC
++++ Tokenize/filters/Exiv2ImageFilter.cc
+@@ -236,7 +236,7 @@ bool Exiv2ImageFilter::next_document(void)
+ 
+ 	try
+ 	{
+-		Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(m_filePath);
++		Exiv2::Image::UniquePtr image { Exiv2::ImageFactory::open(m_filePath) };
+ 		if (image.get() == NULL)
+ 		{
+ 			clog << m_filePath.c_str() << " is not an image" << endl;
+@@ -388,7 +388,7 @@ bool Exiv2ImageFilter::next_document(void)
+ 			}
+ 		}
+ 	}
+-	catch (Exiv2::AnyError &e)
++	catch (Exiv2::Error &e)
+ 	{
+ 		clog << "Caught exiv2 exception: " << e << endl;
+ 		foundData = false;