From 62bc6fb1517f17afd5529c62a0f903730134c54a Mon Sep 17 00:00:00 2001 From: PF4Public Date: Sat, 10 Feb 2024 01:13:54 +0300 Subject: [PATCH] www-client/ungoogled-chromium-bin: fix sed --- .../ungoogled-chromium-bin-121.0.6167.139.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-121.0.6167.139.ebuild b/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-121.0.6167.139.ebuild index 8deb0eaf7..fe0e5c2ef 100644 --- a/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-121.0.6167.139.ebuild +++ b/www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-121.0.6167.139.ebuild @@ -171,7 +171,8 @@ src_install() { # Install GNOME default application entry (bug #303100). insinto /usr/share/gnome-control-center/default-apps - sed -e "/chromium-browser/chromium-browser-bin/" -i ./usr/share/gnome-control-center/default-apps/chromium-browser.xml || die + sed -i '/chromium-browser/{s++chromium-browser-bin+;h};${x;/./{x;q0};x;q1}' \ + ./usr/share/gnome-control-center/default-apps/chromium-browser.xml || die doins ./usr/share/gnome-control-center/default-apps/chromium-browser.xml readme.gentoo_create_doc