33 lines
585 B
Bash
33 lines
585 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module mercurial
|
|
|
|
PROPERTIES="live"
|
|
DESCRIPTION="A simple server that implements the nex protocol"
|
|
|
|
HOMEPAGE="https://hg.sr.ht/~m15o/nexd"
|
|
EHG_REPO_URI="https://hg.sr.ht/~m15o/nexd"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
|
|
RDEPEND=( "acct-user/nexd"
|
|
"acct-group/nexd" )
|
|
DEPEND=">=dev-lang/go-1.18"
|
|
|
|
src_unpack() {
|
|
mercurial_src_unpack
|
|
go-module_live_vendor
|
|
}
|
|
|
|
src_compile() {
|
|
ego build ${GOFLAGS}
|
|
}
|
|
|
|
src_install() {
|
|
dobin nexd
|
|
newinitd "${FILESDIR}/nexd.initd" nexd
|
|
}
|