diff options
Diffstat (limited to 'x11-fm/krusader2')
-rw-r--r-- | x11-fm/krusader2/Makefile | 5 | ||||
-rw-r--r-- | x11-fm/krusader2/files/patch-plugins_krarc_krarc.cpp | 17 |
2 files changed, 22 insertions, 0 deletions
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,5 +1,6 @@ PORTNAME= krusader DISTVERSION= 2.9.0 +PORTREVISION= 1 CATEGORIES= x11-fm kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/ @@ -22,4 +23,8 @@ USE_KDE= archive bookmarks codecs completion config coreaddons \ 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 <bsd.port.mk> 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(); |