From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1518824-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 3E22E15810D
	for <garchives@archives.gentoo.org>; Tue, 16 May 2023 05:08:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 794E4E08F7;
	Tue, 16 May 2023 05:08:20 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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 5BF6AE08F7
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 05:08:20 +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 9ABB6340D58
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 05:08:19 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D7D73A74
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 05:08:16 +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: <1684154780.560cc96fdde4881b899b2d561614a87f6c0b811a.ceamac@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-devel/gdb-dashboard/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: sys-devel/gdb-dashboard/Manifest sys-devel/gdb-dashboard/gdb-dashboard-0.17.2.ebuild
X-VCS-Directories: sys-devel/gdb-dashboard/
X-VCS-Committer: ceamac
X-VCS-Committer-Name: Viorel Munteanu
X-VCS-Revision: 560cc96fdde4881b899b2d561614a87f6c0b811a
X-VCS-Branch: master
Date: Tue, 16 May 2023 05:08:16 +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: 6c74758b-6fc3-4973-b308-b2c937d6950b
X-Archives-Hash: c3212088922d649744d0bfc45d0cbd15

commit:     560cc96fdde4881b899b2d561614a87f6c0b811a
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Mon May 15 12:46:20 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon May 15 12:46:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=560cc96f

sys-devel/gdb-dashboard: init new package

ebuild mostly inspired/stolen from pentoo, but a couple things have been
changed to fit EAPI8 + some minor improvements (e.g using optfeature for
optional syntax highlighting).

Signed-off-by: NRK <nrk <AT> disroot.org>

 sys-devel/gdb-dashboard/Manifest                   |  1 +
 .../gdb-dashboard/gdb-dashboard-0.17.2.ebuild      | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/sys-devel/gdb-dashboard/Manifest b/sys-devel/gdb-dashboard/Manifest
new file mode 100644
index 000000000..b38215757
--- /dev/null
+++ b/sys-devel/gdb-dashboard/Manifest
@@ -0,0 +1 @@
+DIST gdb-dashboard-0.17.2.tar.gz 23275 BLAKE2B 6c7cfd2ac5ffa686629bbfa628bfcf1b383e44d632c3acf1205a7e0e01192f167744e54f2e145644c1e2f8479f9021ca05a39481a4f4c07f0ca2db75946392cd SHA512 caa723479b8539f01e9c46e2c95731fed2fe16087d495aa9eddacf93ffbf5f61f59166a106157ea099e0e2d90d1d0e97b7d2b6b3addb776506ce809438871006

diff --git a/sys-devel/gdb-dashboard/gdb-dashboard-0.17.2.ebuild b/sys-devel/gdb-dashboard/gdb-dashboard-0.17.2.ebuild
new file mode 100644
index 000000000..e25cff86d
--- /dev/null
+++ b/sys-devel/gdb-dashboard/gdb-dashboard-0.17.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit python-single-r1 optfeature wrapper
+
+DESCRIPTION="Modular visual interface for GDB in Python"
+HOMEPAGE="https://github.com/cyrus-and/gdb-dashboard"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/cyrus-and/gdb-dashboard"
+else
+	SRC_URI="https://github.com/cyrus-and/gdb-dashboard/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="sys-devel/gdb[python]"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+pkg_setup() {
+	python-single-r1_pkg_setup
+}
+
+src_install() {
+	insinto "/usr/share/${PN}"
+	newins .gdbinit "${PN}"
+
+	# install a convenient wrapper. disables any typical .gdbinit (-nh) to
+	# get a clean state without interference. -q to disable annoying
+	# copyright message at startup.
+	make_wrapper "$PN" "gdb -q -nh -iex 'source /usr/share/${PN}/${PN}'"
+
+	dodoc README.md
+}
+
+pkg_postinst() {
+	einfo "To use ${PN}:"
+	einfo "    Either use the installed '${PN}' wrapper script directly."
+	einfo "    Or put 'source /usr/share/${PN}/${PN}' in your .gdbinit file."
+	einfo ""
+
+	optfeature "syntax highlighting" "dev-python/pygments"
+}