public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rahil Bhimjiani" <rahil3108@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-wireless/bluetuith/
Date: Sat, 30 Sep 2023 05:25:48 +0000 (UTC)	[thread overview]
Message-ID: <1696051527.e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f.rahilarious@gentoo> (raw)

commit:     e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f
Author:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
AuthorDate: Fri Sep 22 20:43:39 2023 +0000
Commit:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
CommitDate: Sat Sep 30 05:25:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e0a4662b

net-wireless/bluetuith: add 0.1.7 and live

TUI bluetooth manager written in Go

Closes: https://bugs.gentoo.org/913757
Signed-off-by: Rahil Bhimjiani <rahil3108 <AT> gmail.com>

 net-wireless/bluetuith/Manifest               |  3 ++
 net-wireless/bluetuith/bluetuith-0.1.7.ebuild | 62 +++++++++++++++++++++++++++
 net-wireless/bluetuith/bluetuith-9999.ebuild  | 62 +++++++++++++++++++++++++++
 net-wireless/bluetuith/metadata.xml           | 16 +++++++
 4 files changed, 143 insertions(+)

diff --git a/net-wireless/bluetuith/Manifest b/net-wireless/bluetuith/Manifest
new file mode 100644
index 0000000000..b3c2d3a0a7
--- /dev/null
+++ b/net-wireless/bluetuith/Manifest
@@ -0,0 +1,3 @@
+DIST bluetuith-0.1.7-deps.tar.xz 23522828 BLAKE2B e154a25c1cb87eea8c8ecae262ce3518d2736280d6f74ea38cce95016dd70f63d023310d80418511c2989f66bff84873838cfef07437cf9986c9ed4d8eaa79a6 SHA512 c276d28954f53de68d8664275976d448ced101aa5480e71afc4d96d2b84b84907eb0b1351405c051a71d0aeb39e78b2c20b6a37222ae506270dd44f6d298d6c4
+DIST bluetuith-0.1.7-docs.tar.gz 2347918 BLAKE2B 17fd92feb5ad39fca00ae47e704b71a3ac421dbc5abdedbb9079775ed4f10a294c7899564b2101ac4ac73b7c8f8128dd1382abb01276c3258d4d4ca99e51a586 SHA512 7a5124e62383470e7f82d66fb1632c19e3e6085b4cd9bbe38088004a21743e9b65ae2bb5a1a837f15e2ca00d6ea3304311eeb0ecd7acf0e62eac1ccfc30c703b
+DIST bluetuith-0.1.7.tar.gz 1481408 BLAKE2B 3973aa911fa845416f9d7d2085bddd7e94d7a8f377dfc9214c8fe943be3be2dae3e5ae92e30eb164f3fa96f4cbe9d6299f86c4b3adaef1bd00ae53554c5d9bf5 SHA512 431fc89073562dd0e163759d7a97c38d378e51276c0233f26d8ba455fe346fcfc2c4e9fa102500ff1cfa0ba2b69adb820fd4b11bce2739ce65cfe296cd936a3b

diff --git a/net-wireless/bluetuith/bluetuith-0.1.7.ebuild b/net-wireless/bluetuith/bluetuith-0.1.7.ebuild
new file mode 100644
index 0000000000..fc51ac60f0
--- /dev/null
+++ b/net-wireless/bluetuith/bluetuith-0.1.7.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
+HOMEPAGE="https://darkhz.github.io/bluetuith"
+
+GIT_DOCUMENTATION_COMMIT="9c215bb1a64bdbf0f88060db4de6701215799033"
+
+if [[ ${PV} == *9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/darkhz/bluetuith.git"
+else
+	SRC_URI="https://github.com/darkhz/bluetuith/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz"
+	SRC_URI+=" https://github.com/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="Apache-2.0 BSD-2 BSD MIT"
+SLOT="0"
+
+IUSE="doc"
+RESTRICT="test"
+RDEPEND="
+	net-wireless/bluez
+"
+
+src_unpack() {
+	if [[ ${PV} == *9999* ]]; then
+		# unpack code
+		git-r3_src_unpack
+
+		# unpack docs
+		EGIT_BRANCH="documentation"
+		git-r3_fetch
+		EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${GIT_DOCUMENTATION_COMMIT}"
+		git-r3_checkout
+
+		go-module_live_vendor
+	else
+		go-module_src_unpack
+	fi
+}
+
+src_compile() {
+	ego build
+}
+
+src_test() {
+	ego test ./...
+}
+
+src_install() {
+	default
+	dobin "${PN}"
+	dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/documentation/*.md
+	use doc && docinto html && dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/docs/*
+}

diff --git a/net-wireless/bluetuith/bluetuith-9999.ebuild b/net-wireless/bluetuith/bluetuith-9999.ebuild
new file mode 100644
index 0000000000..fc51ac60f0
--- /dev/null
+++ b/net-wireless/bluetuith/bluetuith-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
+HOMEPAGE="https://darkhz.github.io/bluetuith"
+
+GIT_DOCUMENTATION_COMMIT="9c215bb1a64bdbf0f88060db4de6701215799033"
+
+if [[ ${PV} == *9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/darkhz/bluetuith.git"
+else
+	SRC_URI="https://github.com/darkhz/bluetuith/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz"
+	SRC_URI+=" https://github.com/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="Apache-2.0 BSD-2 BSD MIT"
+SLOT="0"
+
+IUSE="doc"
+RESTRICT="test"
+RDEPEND="
+	net-wireless/bluez
+"
+
+src_unpack() {
+	if [[ ${PV} == *9999* ]]; then
+		# unpack code
+		git-r3_src_unpack
+
+		# unpack docs
+		EGIT_BRANCH="documentation"
+		git-r3_fetch
+		EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${GIT_DOCUMENTATION_COMMIT}"
+		git-r3_checkout
+
+		go-module_live_vendor
+	else
+		go-module_src_unpack
+	fi
+}
+
+src_compile() {
+	ego build
+}
+
+src_test() {
+	ego test ./...
+}
+
+src_install() {
+	default
+	dobin "${PN}"
+	dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/documentation/*.md
+	use doc && docinto html && dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/docs/*
+}

diff --git a/net-wireless/bluetuith/metadata.xml b/net-wireless/bluetuith/metadata.xml
new file mode 100644
index 0000000000..31b56f21cd
--- /dev/null
+++ b/net-wireless/bluetuith/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>rahil3108@gmail.com</email>
+    <name>Rahil Bhimjiani</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">darkhz/bluetuith</remote-id>
+    <bugs-to>https://github.com/darkhz/bluetuith/issues</bugs-to>
+    <doc>https://darkhz.github.io/bluetuith</doc>
+  </upstream>
+  <use>
+    <flag name="doc">Install html docs</flag>
+  </use>
+</pkgmetadata>


             reply	other threads:[~2023-09-30  5:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-30  5:25 Rahil Bhimjiani [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-26  2:48 [gentoo-commits] repo/proj/guru:dev commit in: net-wireless/bluetuith/ Rahil Bhimjiani
2023-11-06  2:04 Rahil Bhimjiani
2023-11-06  3:09 Rahil Bhimjiani
2023-11-19  0:12 Rahil Bhimjiani
2023-12-30  2:30 Rahil Bhimjiani
2023-12-30 16:16 Rahil Bhimjiani
2023-12-30 16:16 Rahil Bhimjiani
2024-02-03  6:37 Rahil Bhimjiani
2024-04-08 11:53 Rahil Bhimjiani
2024-04-09  8:57 Rahil Bhimjiani

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=1696051527.e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f.rahilarious@gentoo \
    --to=rahil3108@gmail.com \
    --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