diff --git a/x11-fm/krusader2/Makefile b/x11-fm/krusader2/Makefile index 44486aae19e2..470830fa8b8b 100644 --- a/x11-fm/krusader2/Makefile +++ b/x11-fm/krusader2/Makefile @@ -1,25 +1,30 @@ PORTNAME= krusader DISTVERSION= 2.9.0 +PORTREVISION= 1 CATEGORIES= x11-fm kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/ MAINTAINER= kde@FreeBSD.org COMMENT= Twin panel file manager for KDE, like midnight or norton commander WWW= https://krusader.org/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSES/GPL-2.0-or-later.txt RUN_DEPENDS= ${LOCALBASE}/bin/unzip:archivers/unzip USES= cmake compiler:c++17-lang cpe desktop-file-utils gettext kde:6 \ qt:6 tar:xz xorg USE_KDE= archive bookmarks codecs completion config coreaddons \ doctools globalaccel guiaddons i18n iconthemes itemviews \ kio notifications parts solid statusnotifieritem \ textwidgets wallet widgetsaddons windowsystem xmlgui \ ecm:build USE_QT= 5compat base USE_XORG= x11 +post-patch: +# Prefer unzip from ports to the base bsdunzip. + ${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/plugins/krarc/krarc.cpp + .include diff --git a/x11-fm/krusader2/files/patch-plugins_krarc_krarc.cpp b/x11-fm/krusader2/files/patch-plugins_krarc_krarc.cpp new file mode 100644 index 000000000000..2c23e15c75fc --- /dev/null +++ b/x11-fm/krusader2/files/patch-plugins_krarc_krarc.cpp @@ -0,0 +1,17 @@ +--- plugins/krarc/krarc.cpp.orig 2025-07-16 12:16:19 UTC ++++ plugins/krarc/krarc.cpp +@@ -1568,10 +1568,10 @@ KIO::WorkerResult kio_krarcProtocol::initArcParameters + + if (arcType == "zip") { + noencoding = true; +- cmd = fullPathName("unzip"); +- listCmd << fullPathName("unzip") << "-ZTs-z-t-h"; +- getCmd << fullPathName("unzip") << "-p"; +- copyCmd << fullPathName("unzip") << "-jo"; ++ cmd = QString("%%LOCALBASE%%/bin/unzip"); ++ listCmd << cmd << "-ZTs-z-t-h"; ++ getCmd << cmd << "-p"; ++ copyCmd << cmd << "-jo"; + + if (QStandardPaths::findExecutable(QStringLiteral("zip")).isEmpty()) { + delCmd = QStringList();