aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/bluetuith/Manifest2
-rw-r--r--net-wireless/bluetuith/bluetuith-0.2.0.ebuild70
-rw-r--r--net-wireless/bluetuith/bluetuith-9999.ebuild2
3 files changed, 73 insertions, 1 deletions
diff --git a/net-wireless/bluetuith/Manifest b/net-wireless/bluetuith/Manifest
index 4d3e67fab..4944e0f03 100644
--- a/net-wireless/bluetuith/Manifest
+++ b/net-wireless/bluetuith/Manifest
@@ -6,4 +6,6 @@ DIST bluetuith-0.1.8-docs.tar.gz 2382735 BLAKE2B a1cf408cda2b115efdac1a1ab650d25
DIST bluetuith-0.1.8.tar.gz 1484790 BLAKE2B 9061502606aba7a23aa0ccfe812864f283c380d0d47dee38f54bcd0f360ce5b4aade5483bd884eb062d03de8f4d8249c7c362066adfcd495bd371f684ae06f14 SHA512 0905af9fc9abdad38150961b4de09d5c78ac0577ba5acc20e7ab5f0578d1c837ec5dc4ede099d36132f626e0fab2a6420a275f883e2be7eb2ac61ebea56d2a13
DIST bluetuith-0.1.9-deps.tar.xz 24086352 BLAKE2B bbb570bf9348474015db1723575ea7669b806f52a7360ca5ce3fc6b57243f35143e94022042b21e2584a1f23d8f2c3627a939d6dd954e28ed791d1560a208ee0 SHA512 44f9c8399cc1c1fb0d061d796d43d3e54dedabf0a85ed6ac868335fdccf6f926ae3522258440a2ccba896fa7bcd442b53f1288bee33d0c5ef179a7f1c2add7eb
DIST bluetuith-0.1.9.tar.gz 1482931 BLAKE2B dc6ca796c3b2cdad16e0a9788a598e305829394ce2267c6c4b8a5ab9371ac8a4cb084bf5de1731029616f576cc92eb43e2fddaa636614fb107cf3b75701f23b8 SHA512 2a6632ee73509e71ca446811fc09423e805f0f16a24e47bc96fbcd1b28ada02f25a12259519008ad4e06c78ca30bcae4066f3ed7c2dac536ebcf11e039a9ba5c
+DIST bluetuith-0.2.0-deps.tar.xz 24092520 BLAKE2B 3038def9cb8543aa84677be8d81d973338cde51514e33c4cd26d551c351161c7d31ab10161ba695608c1560a49f3d4e8b363941369cef04911aa13b514de7cf6 SHA512 6a71ec1cbcda98ac4be830f350a72e3d8da81dfdcbbb434c10dbb09f267142dd916469d3dbbc5f13181d74733723d945af2c394a14def29d09722b78034e9102
+DIST bluetuith-0.2.0.tar.gz 1483874 BLAKE2B 03321de6478feb5cb2d740d9db4c114cdbc791b7d4f4573c0b52a22d2c6040796bef9cb211134895cfa3233a91f2193c782fdda2bb5040eaa5ac019d0c5623f4 SHA512 bc17842adddcef3beb89708f1f9505035e2a71a9a9755894ad2ecdaac5ca90c823a57b90033b369f4c759b259830710d3e5a0b84fcd9bbc79c4b2697fb0234fd
DIST bluetuith-docs-3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b.tar.gz 2382735 BLAKE2B a1cf408cda2b115efdac1a1ab650d2564df5ac4b1f9e037a1c43bbe898b2e6b452b06c4dc634d3c1b124bd5c8e543d6a128a8e35eae89d7f87fb5cac929128f2 SHA512 a8b25e68936dbab717232d159669933d8055182193c4427d1a28fb0ed31a22cd1a80df8ea04824d2d9c95359f859cbd4c5bc8fac65ecac21c7ee9b5e6972d51e
diff --git a/net-wireless/bluetuith/bluetuith-0.2.0.ebuild b/net-wireless/bluetuith/bluetuith-0.2.0.ebuild
new file mode 100644
index 000000000..4c431789d
--- /dev/null
+++ b/net-wireless/bluetuith/bluetuith-0.2.0.ebuild
@@ -0,0 +1,70 @@
+# 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"
+
+# MAKE SURE to change these on every update
+[[ ${PV} != 9999* ]] && \
+GIT_COMMIT="ffe8681"
+GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
+
+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 -> ${PN}-docs-${GIT_DOCUMENTATION_COMMIT}.tar.gz"
+ KEYWORDS="~amd64 ~arm64"
+fi
+
+# main
+LICENSE="Apache-2.0"
+# deps
+LICENSE+=" 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() {
+ # mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml
+ [[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD)
+ ego build -ldflags "-X github.com/darkhz/bluetuith/cmd.Version=${PV}@${GIT_COMMIT}"
+}
+
+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
index 93dc6512a..4c431789d 100644
--- a/net-wireless/bluetuith/bluetuith-9999.ebuild
+++ b/net-wireless/bluetuith/bluetuith-9999.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://darkhz.github.io/bluetuith"
# MAKE SURE to change these on every update
[[ ${PV} != 9999* ]] && \
-GIT_COMMIT="28c0a9f"
+GIT_COMMIT="ffe8681"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then