public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Itai Ferber" <itai@itaiferber.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/via/
Date: Thu, 18 Jul 2024 12:25:44 +0000 (UTC)	[thread overview]
Message-ID: <1721305483.337dbc747bcb2d8f80afe329e337219c44ad55e2.itai@gentoo> (raw)

commit:     337dbc747bcb2d8f80afe329e337219c44ad55e2
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Thu Jul 18 12:24:43 2024 +0000
Commit:     Itai Ferber <itai <AT> itaiferber <DOT> net>
CommitDate: Thu Jul 18 12:24:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=337dbc74

app-misc/via: fix installation error

Signed-off-by: Itai Ferber <itai <AT> itaiferber.net>

 app-misc/via/via-3.0.0.ebuild | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/app-misc/via/via-3.0.0.ebuild b/app-misc/via/via-3.0.0.ebuild
index 62be413b7..2e1b715b4 100644
--- a/app-misc/via/via-3.0.0.ebuild
+++ b/app-misc/via/via-3.0.0.ebuild
@@ -14,6 +14,10 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 
+# Stripping AppImage binaries causes them to no longer recognize their internal
+# filesystem.
+RESTRICT="strip"
+
 # These dependencies were extracted from the shared libraries required by the
 # via-nativia executable; it's not clear whether these are all _actually_
 # required, or whether the list is extensive because the executable is an
@@ -41,21 +45,13 @@ RDEPEND="
 	x11-libs/pango
 "
 
-src_unpack() {
-	# The AppImage is self-contained so we'll install it as a binary directly,
-	# but it also contains a `.desktop` file and app icons that we want; we can
-	# move it into "${S}", and also extract its contents into there.
-	mkdir -p "${S}" \
-	    && mv "${DISTDIR}/${P}.AppImage" "${S}" \
-	    && chmod +x "${S}/${P}.AppImage" \
-		&& pushd "${S}" \
-	    && "${S}/${P}.AppImage" --appimage-extract \
-	    && popd \
-		|| die
-}
-
 src_install() {
-	newbin "${S}/${P}.AppImage" via
+	newbin "${DISTDIR}/${P}.AppImage" via
+
+	# The AppImage is self-contained and is installed as a binary directly, but
+	# it also contains a `.desktop` file and app icons that we want; we can
+	# extract those from its contents.
+	"${ED}/usr/bin/via" --appimage-extract
 
 	local size
 	for size in 16 24 32 48 64 96 128 256 512 1024; do
@@ -65,6 +61,6 @@ src_install() {
 	# The inner `.desktop` file points to an internal binary; we can use the
 	# file but point it to the installed binary path.
 	local menu_path="${S}/squashfs-root/via-nativia.desktop"
-	sed -i '' -e 's|^Exec=.*$|Exec=/usr/bin/via|' "${menu_path}"
+	sed -ie "s|^Exec=.*$|Exec=${EPREFIX}/usr/bin/via|" "${menu_path}" || die
 	domenu "${menu_path}"
 }


             reply	other threads:[~2024-07-18 12:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-18 12:25 Itai Ferber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-18 16:39 [gentoo-commits] repo/proj/guru:master commit in: app-misc/via/ Lucio Sauer
2024-07-18 16:36 ` [gentoo-commits] repo/proj/guru:dev " Lucio Sauer
2024-07-18 16:39 [gentoo-commits] repo/proj/guru:master " Lucio Sauer
2024-07-18 16:34 ` [gentoo-commits] repo/proj/guru:dev " Lucio Sauer
2024-07-18 16:39 [gentoo-commits] repo/proj/guru:master " Lucio Sauer
2024-07-18 15:49 ` [gentoo-commits] repo/proj/guru:dev " Lucio Sauer
2024-07-18 16:39 [gentoo-commits] repo/proj/guru:master " Lucio Sauer
2024-07-18 15:49 ` [gentoo-commits] repo/proj/guru:dev " Lucio Sauer
2024-07-18 15:49 Lucio Sauer
2024-07-18 15:49 Lucio Sauer
2024-07-17  1:13 Lucio Sauer
2024-07-16 23:19 Itai Ferber
2024-07-16 16:50 Itai Ferber
2024-07-16  2:37 Itai Ferber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1721305483.337dbc747bcb2d8f80afe329e337219c44ad55e2.itai@gentoo \
    --to=itai@itaiferber.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox