From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21F0E13933E for ; Mon, 12 Jul 2021 15:32:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AA3CE0D7E; Mon, 12 Jul 2021 15:32:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1BD1AE0D62 for ; Mon, 12 Jul 2021 15:32:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 113F2342B95 for ; Mon, 12 Jul 2021 15:32:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93C795C4 for ; Mon, 12 Jul 2021 15:32:20 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1626103932.f57556a029ef32d4f7d7aaef7b430ae4cb78aca6.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/surf/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/surf/surf-9999.ebuild X-VCS-Directories: www-client/surf/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: f57556a029ef32d4f7d7aaef7b430ae4cb78aca6 X-VCS-Branch: master Date: Mon, 12 Jul 2021 15:32:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ea9caa46-e3e7-42f2-8955-1d04a4367c82 X-Archives-Hash: d42602ac9c2c62b32b7b351f6dab64ce commit: f57556a029ef32d4f7d7aaef7b430ae4cb78aca6 Author: jakeogh v6y net> AuthorDate: Mon Jul 12 00:56:25 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Jul 12 15:32:12 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57556a0 www-client/surf: add xdg desktop entry Closes: https://bugs.gentoo.org/694768 Signed-off-by: Justin Keogh v6y.net> Signed-off-by: Joonas Niilola gentoo.org> www-client/surf/surf-9999.ebuild | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/www-client/surf/surf-9999.ebuild b/www-client/surf/surf-9999.ebuild index 2b48a07f1c2..9dce31f4128 100644 --- a/www-client/surf/surf-9999.ebuild +++ b/www-client/surf/surf-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit savedconfig toolchain-funcs +inherit savedconfig toolchain-funcs desktop xdg DESCRIPTION="a simple web browser based on WebKit/GTK+" HOMEPAGE="https://surf.suckless.org/" @@ -73,4 +73,25 @@ src_install() { fi save_config config.h + + newicon "${S}"/"${PN}".png "${PN}".png + + local mime_types="text/html;text/xml;application/xhtml+xml;" + mime_types+="x-scheme-handler/http;x-scheme-handler/https;" + make_desktop_entry \ + "surf" \ + "Surf" \ + "surf" \ + "Network;WebBrowser" \ + "MimeType=${mime_types}\nStartupWMClass=surf" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update }