36 lines
722 B
Bash
36 lines
722 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
EAPI=8
|
|
|
|
inherit git-r3 go-module
|
|
|
|
DESCRIPTION="A command-line tool using the saltpack messaging format"
|
|
HOMEPAGE="https://git.mills.io/prologic/salty"
|
|
EGIT_REPO_URI="https://git.mills.io/prologic/salty.git"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
|
|
DOCS=( README.md )
|
|
|
|
src_unpack() {
|
|
git-r3_src_unpack
|
|
go-module_live_vendor
|
|
}
|
|
|
|
src_compile() {
|
|
export CGO_ENABLED=0
|
|
ego build -tags "netgo static_build" -installsuffix netgo ./cmd/salty/...
|
|
ego build -tags "netgo static_build" -installsuffix netgo ./cmd/salty-keygen/...
|
|
}
|
|
|
|
src_test() {
|
|
export CGO_ENABLED=1
|
|
ego test -v -cover -race -coverprofile=coverage.out ./...
|
|
}
|
|
|
|
src_install() {
|
|
dobin salty
|
|
dobin salty-keygen
|
|
}
|