| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | amd64 x86 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v3
EAPI=8
inherit go-module
DESCRIPTION="A terminal based Matrix client written in Go"
HOMEPAGE="https://maunium.net/go/gomuks/"
if [[ "${PV}" != 9999 ]] ; then
SRC_URI="
https://github.com/tulir/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitea.com/catfromplan9/overlay-files/releases/download/${P}/${P}-vendor.tar.xz
https://codeberg.org/catfromplan9/overlay-files/releases/download/${P}/${P}-vendor.tar.xz
"
S="${WORKDIR}/${P}"
KEYWORDS="amd64 x86"
RESTRICT="mirror"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/tulir/${PN}"
EGIT_BRANCH="master"
fi
LICENSE="AGPL-3"
SLOT="0"
IUSE="+encryption"
DEPEND="encryption? ( dev-libs/olm )"
RDEPEND="${DEPEND}"
BDEPEND="dev-lang/go"
src_unpack() {
if [[ "${PV}" != 9999 ]] ; then
default
else
git-r3_src_unpack
go-module_live_vendor
fi
}
src_compile() {
use encryption || export CGO_ENABLED=0
ego build
}
src_install() {
dobin ${PN}
}
encryption? ( dev-libs/olm )
encryption? ( dev-libs/olm )
dev-lang/go