app-crypt/gpa: fix icon install directory

Bug: https://bugs.gentoo.org/966859
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert 2025-11-30 16:01:01 -05:00
parent 117b0ab1e8
commit e240e34daa
No known key found for this signature in database
GPG Key ID: 7E58A298F42F9CCD
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From c37e514a51d365640a55973d77cf5e8885c1a520 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Sun, 30 Nov 2025 15:47:29 -0500
Subject: [PATCH] Makefile.am: revert icondir to previous value
Setting icondir to src/ results in gpa.png being installed to
$(DESTDIR)src/gpa.png. This is likely a mistake.
Partially reverts f6dfae5e822b8079a2a68c5185fedf0721ce8090.
Bug: https://bugs.gentoo.org/966859
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index c6be8c7..bf6265c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,8 +45,8 @@ DISTCLEANFILES = gpadefs.h
desktopdir = $(datadir)/applications/
desktop_DATA = gpa.desktop
+icondir = $(datadir)/pixmaps
icon_DATA = gpa.png
-icondir = src/
pkgdata_DATA = gpa.png
--
2.52.0

View File

@ -3,7 +3,7 @@
EAPI=8
inherit xdg
inherit autotools xdg
DESCRIPTION="GNU Privacy Assistant (GPA): a graphical user interface for GnuPG"
HOMEPAGE="https://gnupg.org/software/gpa/"
@ -30,10 +30,14 @@ BDEPEND="
PATCHES=(
# Backports, drop on bump
"${FILESDIR}"/${PV}
# https://bugs.gentoo.org/966859
"${FILESDIR}"/gpa-0.11.0-icondir.patch
)
src_prepare() {
default
eautoreconf
sed -i 's/Application;//' gpa.desktop || die
}