aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahil Bhimjiani <rahil3108@gmail.com>2023-09-23 02:13:39 +0530
committerRahil Bhimjiani <rahil3108@gmail.com>2023-09-30 10:55:27 +0530
commite0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f (patch)
tree8fba4335833b822e3d75449447c4646d3842af9c
parentgames-arcade/shiromino: new package, add 0.2.1 (diff)
downloadguru-e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f.tar.gz
guru-e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f.tar.bz2
guru-e0a4662b85bf77ad55ca5b6e0fbd87c8c07c1a0f.zip
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@gmail.com>
-rw-r--r--net-wireless/bluetuith/Manifest3
-rw-r--r--net-wireless/bluetuith/bluetuith-0.1.7.ebuild62
-rw-r--r--net-wireless/bluetuith/bluetuith-9999.ebuild62
-rw-r--r--net-wireless/bluetuith/metadata.xml16
4 files changed, 143 insertions, 0 deletions
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>