From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1482164-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5F1FA15800F
	for <garchives@archives.gentoo.org>; Mon, 30 Jan 2023 10:29:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2E9ABE0959;
	Mon, 30 Jan 2023 10:29:36 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 17F41E0958
	for <gentoo-commits@lists.gentoo.org>; Mon, 30 Jan 2023 10:29:36 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5C6C5340DF2
	for <gentoo-commits@lists.gentoo.org>; Mon, 30 Jan 2023 10:29:35 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B79868AB
	for <gentoo-commits@lists.gentoo.org>; Mon, 30 Jan 2023 10:29:31 +0000 (UTC)
From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" <ceamac@gentoo.org>
Message-ID: <1675034907.ba0666b962ededc7b65dcfdf0aebf5b72b55efd8.ceamac@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-client/nyxt/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: www-client/nyxt/nyxt-9999.ebuild
X-VCS-Directories: www-client/nyxt/
X-VCS-Committer: ceamac
X-VCS-Committer-Name: Viorel Munteanu
X-VCS-Revision: ba0666b962ededc7b65dcfdf0aebf5b72b55efd8
X-VCS-Branch: master
Date: Mon, 30 Jan 2023 10:29:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c8995354-ed85-452b-be8f-3018c59da424
X-Archives-Hash: 115719dee475dae64ff1a9a7ffd93f37

commit:     ba0666b962ededc7b65dcfdf0aebf5b72b55efd8
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Jan 29 23:28:27 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Jan 29 23:28:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ba0666b9

www-client/nyxt: add 9999

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 www-client/nyxt/nyxt-9999.ebuild | 94 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)

diff --git a/www-client/nyxt/nyxt-9999.ebuild b/www-client/nyxt/nyxt-9999.ebuild
new file mode 100644
index 000000000..57939d4ba
--- /dev/null
+++ b/www-client/nyxt/nyxt-9999.ebuild
@@ -0,0 +1,94 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop optfeature xdg-utils
+
+DESCRIPTION="Nyxt - the hacker's power-browser"
+HOMEPAGE="https://nyxt.atlas.engineer/"
+
+if [[ "${PV}" = *9999* ]]
+then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/atlas-engineer/${PN}.git"
+else
+	KEYWORDS="~amd64"
+	NYXTCOMMIT="27612fee394f80dee6480c045ec7da5cd1f82196"
+	S="${WORKDIR}/${PN}-${NYXTCOMMIT}"
+
+	# Specify commits for each submodules
+	# Some regex substitutions allows to automate this process...
+	# Commit hashes are obtained from -9999 version on ${NYXTCOMMIT}
+	# Full list can be found here: https://github.com/atlas-engineer/nyxt/tree/master/_build
+	# Removed the commits to reduce useless lines in -9999 version
+
+	SRC_URI="https://github.com/atlas-engineer/${PN}/archive/${NYXTCOMMIT}.tar.gz -> ${P}.gh.tar.gz"
+	# Removed the submodules SRC_URIs to reduce useless lines in -9999 version
+fi
+
+# Portage replaces the nyxt binary with scbl when stripping
+RESTRICT="mirror strip"
+
+LICENSE="BSD CC-BY-SA-3.0"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="
+	dev-libs/gobject-introspection
+	gnome-base/gsettings-desktop-schemas
+	net-libs/glib-networking
+	net-libs/webkit-gtk:4.1
+	sys-libs/libfixposix
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	>=dev-lisp/sbcl-2.0.0
+	!!net-libs/webkit-gtk:5
+"
+# If webkit-gtk:5 is installed, nyxt won't compile
+# https://github.com/atlas-engineer/nyxt/issues/2743
+
+src_unpack() {
+	default
+
+	# Unpack the submodules in the _build directory
+	if [[ "${PV}" != *9999* ]]
+	then
+		# Removed src_unpack to reduce useless lines in -9999
+		true
+	fi
+}
+
+src_compile() {
+	emake all
+	use doc && emake doc
+}
+
+src_install(){
+	dobin "${S}/nyxt"
+
+	if [ "$(use doc)" ]
+	then
+		docinto "/usr/share/doc/${P}"
+		dodoc "${S}/manual.html"
+	fi
+
+	doicon "${S}/assets/icon_512x512.png.ico"
+	domenu "${S}/assets/nyxt.desktop"
+}
+
+pkg_postinst() {
+	xdg_mimeinfo_database_update
+	xdg_desktop_database_update
+	xdg_icon_cache_update
+	optfeature "for X11 clipboard support" "x11-misc/xclip"
+	optfeature "for spellchecking" "app-text/enchant"
+}
+
+pkg_postrm() {
+	xdg_mimeinfo_database_update
+	xdg_desktop_database_update
+	xdg_icon_cache_update
+}