From cd996a4e8bbb98e64e7f04e34df5a64e2e7ffab9 Mon Sep 17 00:00:00 2001 From: Zakk Date: Fri, 2 Oct 2026 09:49:09 +1000 Subject: [PATCH] net-misc/another-redis-desktop-manager-bin: extract the AppImage The AppImage loads NSS, NSPR, GTK and the other Electron libraries from the host, but RDEPEND only listed sys-fs/fuse, so those libraries were never pulled in. Extract the AppImage into /opt/another-redis-desktop-manager like app-office/joplin-desktop in ::gentoo, and declare the libraries its ELF files link or dlopen. Signed-off-by: Zakk --- ...-redis-desktop-manager-bin-1.7.4-r1.ebuild | 73 +++++++++++++++++++ ...her-redis-desktop-manager-bin-1.7.4.ebuild | 29 -------- 2 files changed, 73 insertions(+), 29 deletions(-) create mode 100644 net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4-r1.ebuild delete mode 100644 net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4.ebuild diff --git a/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4-r1.ebuild b/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4-r1.ebuild new file mode 100644 index 0000000000..86ca12d72e --- /dev/null +++ b/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +MY_PN="${PN%-bin}" + +DESCRIPTION="A faster, better and more stable Redis desktop manager [GUI client]" +HOMEPAGE="https://github.com/qishibo/AnotherRedisDesktopManager" +SRC_URI="https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v${PV}/Another-Redis-Desktop-Manager-linux-${PV}-x86_64.AppImage -> ${P}.AppImage" +S="${WORKDIR}/squashfs-root" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa[opengl] + net-print/cups + sys-apps/dbus + virtual/libudev + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/libxshmfence + x11-libs/pango +" + +QA_PREBUILT="opt/${MY_PN}/*" + +src_unpack() { + cp "${DISTDIR}/${P}.AppImage" "${MY_PN}" || die + chmod +x "${MY_PN}" || die + ./"${MY_PN}" --appimage-extract > /dev/null || die +} + +src_prepare() { + default + find . -type d -exec chmod a+rx {} + || die +} + +src_install() { + rm -r AppRun .DirIcon "${MY_PN}".{desktop,png} usr || die + + dodir /opt/${MY_PN} + cp -r . "${ED}"/opt/${MY_PN} || die + fperms 4711 /opt/${MY_PN}/chrome-sandbox + dosym -r /opt/${MY_PN}/${MY_PN} /usr/bin/${MY_PN} + + domenu "${FILESDIR}/${MY_PN}.desktop" + doicon -s scalable "${FILESDIR}/${MY_PN}.svg" +} diff --git a/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4.ebuild b/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4.ebuild deleted file mode 100644 index 765eee9213..0000000000 --- a/net-misc/another-redis-desktop-manager-bin/another-redis-desktop-manager-bin-1.7.4.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop xdg - -DESCRIPTION="A faster, better and more stable Redis desktop manager [GUI client]" -HOMEPAGE="https://github.com/qishibo/AnotherRedisDesktopManager" -SRC_URI="https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v${PV}/Another-Redis-Desktop-Manager-linux-${PV}-x86_64.AppImage -> ${P}.AppImage" -S="${WORKDIR}" -LICENSE="MIT" - -SLOT="0" -KEYWORDS="~amd64" - -RESTRICT="strip" - -RDEPEND="sys-fs/fuse:0" - -src_unpack() { - cp "${DISTDIR}/${P}.AppImage" another-redis-desktop-manager || die -} - -src_install() { - dobin another-redis-desktop-manager - domenu "${FILESDIR}/another-redis-desktop-manager.desktop" - doicon -s scalable "${FILESDIR}/another-redis-desktop-manager.svg" -}