aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahil Bhimjiani <me@rahil.rocks>2024-04-08 10:25:24 +0530
committerRahil Bhimjiani <me@rahil.rocks>2024-04-08 17:23:43 +0530
commit4e0c4bac373654bcd807f3d4d3f64f5024d9e7c4 (patch)
treee5b08f25d80dcfc06704b14fee033e194490d7cb /net-wireless
parentdev-libs/libsignal-ffi: fix if condition (diff)
downloadguru-4e0c4bac373654bcd807f3d4d3f64f5024d9e7c4.tar.gz
guru-4e0c4bac373654bcd807f3d4d3f64f5024d9e7c4.tar.bz2
guru-4e0c4bac373654bcd807f3d4d3f64f5024d9e7c4.zip
net-wireless/bluetuith: update to 0.2.2, smaller deps tar, xz->zstd
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/bluetuith/Manifest2
-rw-r--r--net-wireless/bluetuith/bluetuith-0.2.2.ebuild74
-rw-r--r--net-wireless/bluetuith/bluetuith-9999.ebuild14
3 files changed, 85 insertions, 5 deletions
diff --git a/net-wireless/bluetuith/Manifest b/net-wireless/bluetuith/Manifest
index 582c4cefc..3ac70d624 100644
--- a/net-wireless/bluetuith/Manifest
+++ b/net-wireless/bluetuith/Manifest
@@ -4,4 +4,6 @@ DIST bluetuith-0.2.0-deps.tar.xz 24092520 BLAKE2B 3038def9cb8543aa84677be8d81d97
DIST bluetuith-0.2.0.tar.gz 1483874 BLAKE2B 03321de6478feb5cb2d740d9db4c114cdbc791b7d4f4573c0b52a22d2c6040796bef9cb211134895cfa3233a91f2193c782fdda2bb5040eaa5ac019d0c5623f4 SHA512 bc17842adddcef3beb89708f1f9505035e2a71a9a9755894ad2ecdaac5ca90c823a57b90033b369f4c759b259830710d3e5a0b84fcd9bbc79c4b2697fb0234fd
DIST bluetuith-0.2.1-deps.tar.xz 24112984 BLAKE2B 2ceec0ea5962ee94eda4f30f15f33c5d7e1e226d2d6bc337201066377eeba03bc9bff9ae80e08649f4a77c5bf40d4a857e86f6a5511ca2bc1781179112e1d924 SHA512 58b6595c599cca2f116bd7f56ee2bff26fdf179e118ea8df6e0bd05d88840c362e05c3cfdb21ccf4589850a680929ccd314a1774a8d4d0f372b6e783ab1abab5
DIST bluetuith-0.2.1.tar.gz 1485063 BLAKE2B 543576faba4350682434e8bdc4b765afdf22839a8b525c782f7d4a179863a831b7bc107dd44d27c62949ae5d8c0fd447bc3a63dbd28d344ed01a83bee8212f9e SHA512 9cd40881b18a4e109e76aaaee4db375eda123e9dc8caf6b1d7ec17c4da67debfd2d1892109ae28d6483067838a168769a4caa2c9c4dd9bd4107417183021018b
+DIST bluetuith-0.2.2-deps.tar.zst 3487605 BLAKE2B 02fac84e97a27471b8feadf1d48fbcc7c8f68542388f54ea744ff9b7a433675c7d2578b76032a71117b0c0c0a04705f2bd1250922c7ee315bc27a78cdb5e4db5 SHA512 f6ad7f31e1f18c886950ff1b10e9a6179468792bdc1387f8ba3e74edb1ba11a8edf7c8ac267eac0ece51318cae5487762aa80b49f6baadf97ca1c4a677754945
+DIST bluetuith-0.2.2.tar.gz 1485216 BLAKE2B e347fbea07564866144de266156ba98d4e722c8d8c216a3696c4bb938f8cbcccdb424b28c5461b94ad67cb4b20b9dd6440a614adb24a6e9acaf8862fb6087aa0 SHA512 5b943ab1a4f5cac1b3da0ac64bea18013f4ba7fe2246c6e33011d18e7a0f384363c9e06558b25131b6ccc4ea3910961178821d24fb21f38c551b18a6500830d4
DIST bluetuith-docs-3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b.tar.gz 2382735 BLAKE2B a1cf408cda2b115efdac1a1ab650d2564df5ac4b1f9e037a1c43bbe898b2e6b452b06c4dc634d3c1b124bd5c8e543d6a128a8e35eae89d7f87fb5cac929128f2 SHA512 a8b25e68936dbab717232d159669933d8055182193c4427d1a28fb0ed31a22cd1a80df8ea04824d2d9c95359f859cbd4c5bc8fac65ecac21c7ee9b5e6972d51e
diff --git a/net-wireless/bluetuith/bluetuith-0.2.2.ebuild b/net-wireless/bluetuith/bluetuith-0.2.2.ebuild
new file mode 100644
index 000000000..98aec6b46
--- /dev/null
+++ b/net-wireless/bluetuith/bluetuith-0.2.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module unpacker
+
+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="dd21a9c"
+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.zst -> ${P}-deps.tar.zst"
+ 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
+ unpacker_src_unpack
+ fi
+}
+
+src_prepare() {
+ [[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
+ default
+}
+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 4c431789d..98aec6b46 100644
--- a/net-wireless/bluetuith/bluetuith-9999.ebuild
+++ b/net-wireless/bluetuith/bluetuith-9999.ebuild
@@ -1,16 +1,16 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit go-module
+inherit go-module unpacker
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_COMMIT="dd21a9c"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then
@@ -18,7 +18,7 @@ if [[ ${PV} == 9999* ]]; then
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/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.zst -> ${P}-deps.tar.zst"
SRC_URI+=" https://github.com/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${PN}-docs-${GIT_DOCUMENTATION_COMMIT}.tar.gz"
KEYWORDS="~amd64 ~arm64"
fi
@@ -48,10 +48,14 @@ src_unpack() {
go-module_live_vendor
else
- go-module_src_unpack
+ unpacker_src_unpack
fi
}
+src_prepare() {
+ [[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
+ default
+}
src_compile() {
# mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml
[[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD)