diff --git a/sysutils/krename/Makefile b/sysutils/krename/Makefile index b84ca5ab7422..dcf1e2ea9b58 100644 --- a/sysutils/krename/Makefile +++ b/sysutils/krename/Makefile @@ -1,32 +1,32 @@ PORTNAME= krename DISTVERSION= 5.0.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src MAINTAINER= kde@FreeBSD.org COMMENT= Powerful batch file renamer for KDE WWW= https://userbase.kde.org/KRename LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libtag.so:audio/taglib \ libexiv2.so:graphics/exiv2 \ libpodofo09.so:graphics/podofo09 \ libfreetype.so:print/freetype2 USES= cmake compiler:c++11-lang gettext kde:5 pkgconfig qt:5 tar:xz xorg USE_KDE= auth bookmarks codecs completion config configwidgets \ coreaddons crash i18n iconthemes itemviews jobwidgets \ kio service solid widgetsaddons windowsystem xmlgui USE_QT= concurrent core dbus declarative gui network xml widgets \ buildtools:build qmake:build USE_XORG= x11 # Patch sources to force using include files installed by graphics/podofo09 post-patch: @${REINPLACE_CMD} -e '/^#include/s|podofo/podofo.h|podofo09/podofo.h|' \ ${WRKSRC}/src/podofoplugin.cpp \ .include diff --git a/sysutils/krename/files/patch-src_exiv2plugin.cpp b/sysutils/krename/files/patch-src_exiv2plugin.cpp new file mode 100644 index 000000000000..9491f90bdfd8 --- /dev/null +++ b/sysutils/krename/files/patch-src_exiv2plugin.cpp @@ -0,0 +1,11 @@ +--- src/exiv2plugin.cpp.orig 2022-08-31 21:22:21 UTC ++++ src/exiv2plugin.cpp +@@ -395,7 +395,7 @@ QString Exiv2Plugin::processFile(BatchRenamer *b, int + std::string strFilename(asc.constData(), asc.length()); + + try { +- Image::AutoPtr image = Exiv2::ImageFactory::open(strFilename); ++ Image::UniquePtr image = Exiv2::ImageFactory::open(strFilename); + if (image.get() != nullptr && image->good()) { + image->readMetadata(); +