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>
This commit is contained in:
Rahil Bhimjiani
2023-09-23 02:13:39 +05:30
parent 09dc039874
commit e0a4662b85
4 changed files with 143 additions and 0 deletions

View File

@@ -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

View File

@@ -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/*
}

View File

@@ -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/*
}

View File

@@ -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>