net-wireless/bluetuith - 0.2.7 (guru)

Search

Install

Install this version:

emerge -a =net-wireless/bluetuith-0.2.7

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-wireless/bluetuith-0.2.7

Or alternatively:

emerge --autounmask-write -a =net-wireless/bluetuith-0.2.7

Package Information

Description:
A TUI bluetooth manager for Linux written in Go
Homepage:
https://bluetuith-org.github.io/bluetuith/
License:
Apache-2.0 BSD-2 BSD MIT

Ebuild Details

Version EAPI Keywords Slot
0.2.7 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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/*
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-wireless/bluetuith | euse -E <flag> -p net-wireless/bluetuith | euse -D <flag> -p net-wireless/bluetuith

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

RDEPEND

	net-wireless/bluez

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 0.2.7

Type File Size Source URLs
DIST bluetuith-0.2.7-deps.tar.xz 2973176 bytes https://github.com/rahilarious/gentoo-distfiles/releases/download/bluetuith-0.2.7/deps.tar.xz
DIST bluetuith-0.2.7.tar.gz 1472713 bytes https://github.com/bluetuith-org/bluetuith/archive/v0.2.7.tar.gz
DIST bluetuith-docs-1b0523eeb344b70b0511bb65a442f21b8a33b65f.tar.gz 2259035 bytes https://github.com/bluetuith-org/bluetuith/archive/1b0523eeb344b70b0511bb65a442f21b8a33b65f.tar.gz