pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

krusader: fix folder view for zip archives



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Wed Sep 3 11:28:15 2025 +0200
Changeset:	87e556432e6cba2895b5cff0308a94ecca4370b7

Modified Files:
	krusader/Makefile
	krusader/distinfo
Added Files:
	krusader/patches/patch-plugins_krarc_krarc.cpp

Log Message:
krusader: fix folder view for zip archives

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=87e556432e6cba2895b5cff0308a94ecca4370b7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 krusader/Makefile                              |  9 ++++++++-
 krusader/distinfo                              |  1 +
 krusader/patches/patch-plugins_krarc_krarc.cpp | 23 +++++++++++++++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

diffs:
diff --git a/krusader/Makefile b/krusader/Makefile
index 238641111e..255c2db7b7 100644
--- a/krusader/Makefile
+++ b/krusader/Makefile
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.99 2025/08/30 22:46:19 wiz Exp $
 
 DISTNAME=	krusader-2.9.0
-PKGREVISION=	3
+PKGREVISION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_KDE:=krusader/${PKGVERSION_NOREV}/}
 LICENSE=	gnu-gpl-v2
@@ -18,12 +18,19 @@ SUBST_MESSAGE.xdg=	Install via examples dir.
 SUBST_FILES.xdg=	plugins/iso/CMakeLists.txt
 SUBST_SED.xdg=		-e 's:{KDE_INSTALL_CONFDIR}:{KDE_INSTALL_XDG_EX_DIR}:'
 
+SUBST_CLASSES+=		path
+SUBST_STAGE.path=	pre-configure
+SUBST_MESSAGE.path=	Fixing pathes
+SUBST_FILES.path+=	plugins/krarc/krarc.cpp
+SUBST_VARS.path+=	PREFIX
+
 MAKE_DIRS+=	${PKG_SYSCONFBASE}/xdg
 CONF_FILES+=	${PREFIX}/share/examples/kde-xdg/kio_isorc \
 		${PKG_SYSCONFBASE}/xdg/kio_isorc
 BUILD_DEFS+=	PKG_SYSCONFBASE
 
 DEPENDS+=	oxygen-icons-[0-9]*:../../graphics/oxygen-icons
+DEPENDS+=	unzip-[0-9]*:../../archivers/unzip
 
 .include "../../devel/kf6-kparts/buildlink3.mk"
 .include "../../devel/qt6-qt5compat/buildlink3.mk"
diff --git a/krusader/distinfo b/krusader/distinfo
index 3577ec8eed..9b3b93a366 100644
--- a/krusader/distinfo
+++ b/krusader/distinfo
@@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.17 2025/02/13 22:16:59 wiz Exp $
 BLAKE2s (krusader-2.9.0.tar.xz) = 831efedb361cb58dd05f1cabd620fdb813262fe3586ce51e9f58d05a97ac060a
 SHA512 (krusader-2.9.0.tar.xz) = 9f0fd1f1d85accdd2df46cda128f30660fcd6d8601a889fb003f1d959221ea5c850c3e523e6163cbf30997f7df607051030cb2bca076eedb895c1fc336c338ce
 Size (krusader-2.9.0.tar.xz) = 3221844 bytes
+SHA1 (patch-plugins_krarc_krarc.cpp) = 2bcf25d80367f1c176ded26dd27bc88377a7f038
diff --git a/krusader/patches/patch-plugins_krarc_krarc.cpp b/krusader/patches/patch-plugins_krarc_krarc.cpp
new file mode 100644
index 0000000000..8219d5441b
--- /dev/null
+++ b/krusader/patches/patch-plugins_krarc_krarc.cpp
@@ -0,0 +1,23 @@
+$NetBSD$
+
+* Fix folder view for zip archives
+  Parch imported from FreeBSD,
+  https://github.com/freebsd/freebsd-ports/commit/cb09c762742f00418056761ba8e7dc769473beef
+
+--- plugins/krarc/krarc.cpp.orig	2025-09-03 09:00:22.473890009 +0000
++++ plugins/krarc/krarc.cpp
+@@ -1568,10 +1568,10 @@ KIO::WorkerResult kio_krarcProtocol::ini
+ 
+     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("@PREFIX@/bin/unzip");
++        listCmd << cmd << "-ZTs-z-t-h";
++        getCmd << cmd << "-p";
++        copyCmd << cmd << "-jo";
+ 
+         if (QStandardPaths::findExecutable(QStringLiteral("zip")).isEmpty()) {
+             delCmd = QStringList();


Home | Main Index | Thread Index | Old Index