nanmi-overlay

nanmi's Gentoo overlay
git clone git://xn--q9jzb1c.xn--q9jyb4c/nanmi-overlay
Log | Files | Refs | README

commit 54ff08545d104c5ebd30e8d07d1678a13fadd86d
parent 39630ec3a9f6d9dbba8c00e127b2ef88767e79c8
Author: nanmi <nanmi@member.fsf.org>
Date:   Fri, 16 Dec 2022 03:39:49 +0900

Add gomuks

Diffstat:
Anet-im/gomuks/Manifest | 1+
Anet-im/gomuks/gomuks-9999.ebuild | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/net-im/gomuks/Manifest b/net-im/gomuks/Manifest @@ -0,0 +1 @@ +EBUILD gomuks-9999.ebuild 684 BLAKE2B 1892b2551c6e4588f0cbedc4907aad9f28982343708133d2d135553e8df562fbf59e54fb04aa6103e8c3f1e28be54443c0dfce73ea18c0427d631f8f744bc892 SHA512 903ad862ec4ed9c10de7b75b995ae210b4d40f783ae41ed697dc1cab22ff9bb8cfdbe2a583dc3c22223ffbae799b6e3964f2e12c6f66ae161fd5439134213869 diff --git a/net-im/gomuks/gomuks-9999.ebuild b/net-im/gomuks/gomuks-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-build + +DESCRIPTION="A terminal based Matrix client written in Go" +HOMEPAGE="https://github.com/tulir/gomuks" + +if [[ "${PV}" != 9999 ]] ; then + SRC_URI="https://github.com/tulir/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${P}" + KEYWORDS="~arm64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/tulir/${PN}" +fi + +LICENSE="AGPL-3" +SLOT="0" +IUSE="+encryption" + +DEPEND="encryption? ( dev-libs/olm )" +RDEPEND="${DEPEND}" +BDEPEND="dev-lang/go" + +src_compile() { + use encryption || export CGO_ENABLED=0 + go build +} + +src_install() { + dobin ${PN} +}