blob: 882d42ea70a055d47b3f9827da9dec97eb8f3a72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
DESCRIPTION="A simple, modern and secure encryption tool (and Go library)"
HOMEPAGE="https://github.com/FiloSottile/age"
SRC_URI="https://github.com/FiloSottile/age/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
S="${WORKDIR}/age-${PV}"
LICENSE="BSD"
#RESTRICT+=" test"
SLOT="0"
KEYWORDS="amd64"
BDEPEND="dev-go/gox"
src_compile() {
go build -ldflags "-X main.Version=${PV}" -o . filippo.io/age/cmd/... || die
}
src_test() {
go test -race filippo.io/age/cmd/... || die
}
src_install() {
dobin age age-keygen
doman doc/age.1 doc/age-keygen.1
dodoc README.md
}
|