Add app-crypt/salty

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
Shin'ya Minazuki
2026-04-17 19:48:32 -03:00
parent a1280f545e
commit 870cd4c854
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# 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
}