# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v3

EAPI=8

inherit desktop xdg

DESCRIPTION="A non-web browser, designed for a growing list of protocols"
HOMEPAGE="https://bombadillo.colorfield.space/"

if [[ "${PV}" != 9999 ]] ; then
	SRC_URI="https://tildegit.org/sloum/bombadillo/archive/${PV}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/${PN}"
	KEYWORDS="amd64 x86"
	RESTRICT="mirror"
else
	inherit git-r3
	EGIT_REPO_URI="https://tildegit.org/sloum/bombadillo"
fi

LICENSE="GPL-3"
SLOT="0"

DEPEND="sys-libs/ncurses"
BDEPEND=">=dev-lang/go-1.11"

src_install() {
	doicon bombadillo-icon.png
	domenu bombadillo.desktop
	doman bombadillo.1
	dobin bombadillo
}