Add app-crypt/salty
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
a1280f545e
commit
870cd4c854
2 changed files with 43 additions and 0 deletions
8
app-crypt/salty/metadata.xml
Normal file
8
app-crypt/salty/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>shinyoukai@laidback.moe</email>
|
||||
<name>Shin'ya Minazuki</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
35
app-crypt/salty/salty-9999.ebuild
Normal file
35
app-crypt/salty/salty-9999.ebuild
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue