mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
net-wireless/bluetuith: update to 0.2.7
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
@@ -4,5 +4,7 @@ DIST bluetuith-0.2.3-deps.tar.xz 2749068 BLAKE2B 8073174fbc5208441503a6ab043b693
|
||||
DIST bluetuith-0.2.3.tar.gz 1486491 BLAKE2B 2263fb27cef0342c85ad69c162e5d002c8d6b3d810144ace7230912276402902d96b46f86025bc46dbaf3785bba03b5a2d8ade11e9ba9a81e6be6af5c4c24b61 SHA512 be8c0aa7ba330d60f3a7988ec755ce557f9053c2a9fe8b3a647054cb8b3bbbb99b263e22da9ec35f083f24efb86df8cefa2de1ee0a7426672dab7f3380c7237d
|
||||
DIST bluetuith-0.2.6-deps.tar.xz 2973108 BLAKE2B c8144303ea5980ce95f061fbe743ffd313311878191527587e3499a544e625c7323e5a7b34808ac62d32bcb6ba442abc31c38f8441ca5019ed2c7d6abdd86dec SHA512 7964e9a0142782df577152f151ecb014188893ea47158d0ebe19f26f8e80e0a6fc0542d485523cb71859e4c4c6f5b27191da290ffe869bf59be0f36a0db648d4
|
||||
DIST bluetuith-0.2.6.tar.gz 1471306 BLAKE2B 0c767867ac2913a9e08daf098389d653c008f6620817476f01d1b93db78558752d55072169671e19bab1a6acf23a90d750df1415b63e91841df99d9593a0e2a0 SHA512 495f5a2066fedf8f069ea5854c9c8d70ff9f8e66fb7c2c537b9c44f1320e91566ad148b1dfb9c551d6d45067ddaf4267f3198f5b92b53a0fd18aa03bf1e143b3
|
||||
DIST bluetuith-0.2.7-deps.tar.xz 2973176 BLAKE2B 51bbd649b30a3676ed87aff429e7fe19bef3fa89a8ea35c8c65751200a6b4c3b58800143f5d95e2c7b78525cafd74fd8cdad32652179d7e788cca4855e6dc5b4 SHA512 251753887e71e366807ce9b9343f88c2be297d1dfc67a2196223c37407f00f4a6e55f808b5188c977fbd213aed254376466a476c7167ad4c5f962f59d8dd794e
|
||||
DIST bluetuith-0.2.7.tar.gz 1472713 BLAKE2B 03ad0deb23ae45da382c6ef2ab59931472b17d39b55f403d726bb7649fdca7b9bba7b5fd4c6e9c1b3651ecc5e1dd70a31bcac496073fd1ef4ebbf91cf8ca137c SHA512 429106599c74e69cbbde76bb87f640abed586c34691e5e0440cfd4579c67d3da4321844f62d164ef50c73b782b60eba89bd0888da38b5921df594515a422d7aa
|
||||
DIST bluetuith-docs-1b0523eeb344b70b0511bb65a442f21b8a33b65f.tar.gz 2259035 BLAKE2B 00f36776569747ccfb902cd37ddc1a1e365e823ba3f118e582888179e684461bb7ff1882943f94acf5cfdd199b5a2dde71e96eb1cf983cbea88a6aa177de29c5 SHA512 e9f8345ec89456bd2e64c1dbbcba1e1f7ba980011e5194b45a9bdd97b04e2ed1d8af695c9fd3b80ce028179e7be44f801c5bed5369fd3d78feda771160b94eeb
|
||||
DIST bluetuith-docs-3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b.tar.gz 2382735 BLAKE2B a1cf408cda2b115efdac1a1ab650d2564df5ac4b1f9e037a1c43bbe898b2e6b452b06c4dc634d3c1b124bd5c8e543d6a128a8e35eae89d7f87fb5cac929128f2 SHA512 a8b25e68936dbab717232d159669933d8055182193c4427d1a28fb0ed31a22cd1a80df8ea04824d2d9c95359f859cbd4c5bc8fac65ecac21c7ee9b5e6972d51e
|
||||
|
||||
68
net-wireless/bluetuith/bluetuith-0.2.7.ebuild
Normal file
68
net-wireless/bluetuith/bluetuith-0.2.7.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2026 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://bluetuith-org.github.io/bluetuith/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bluetuith-org/bluetuith.git"
|
||||
else
|
||||
GIT_COMMIT="02e0634"
|
||||
GIT_DOCUMENTATION_COMMIT="1b0523eeb344b70b0511bb65a442f21b8a33b65f"
|
||||
SRC_URI="https://github.com/bluetuith-org/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/bluetuith-org/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
|
||||
"
|
||||
BDEPEND=">=dev-lang/go-1.25.0"
|
||||
|
||||
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/*
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -12,7 +12,7 @@ if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bluetuith-org/bluetuith.git"
|
||||
else
|
||||
GIT_COMMIT="5aea8bf"
|
||||
GIT_COMMIT="02e0634"
|
||||
GIT_DOCUMENTATION_COMMIT="1b0523eeb344b70b0511bb65a442f21b8a33b65f"
|
||||
SRC_URI="https://github.com/bluetuith-org/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"
|
||||
@@ -31,6 +31,7 @@ RESTRICT="test"
|
||||
RDEPEND="
|
||||
net-wireless/bluez
|
||||
"
|
||||
BDEPEND=">=dev-lang/go-1.25.0"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
@@ -45,14 +46,10 @@ src_unpack() {
|
||||
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
go-module_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)
|
||||
|
||||
Reference in New Issue
Block a user