diff options
author | 2024-02-19 17:53:41 +0100 | |
---|---|---|
committer | 2024-02-19 17:54:31 +0100 | |
commit | 91da733fb14a4c2a2fdbb2a1671dc4b60d407a02 (patch) | |
tree | 02e9f4464b7730d6355e7e8d7b4a450e3e816423 /app-crypt/age | |
parent | app-crypt/age: drop 1.0.0 (diff) | |
download | gentoo-91da733fb14a4c2a2fdbb2a1671dc4b60d407a02.tar.gz gentoo-91da733fb14a4c2a2fdbb2a1671dc4b60d407a02.tar.bz2 gentoo-91da733fb14a4c2a2fdbb2a1671dc4b60d407a02.zip |
app-crypt/age: modernize ebuild
Use the ego wrappers.
Drop the unused gox dependency.
Closes: https://bugs.gentoo.org/924933
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-crypt/age')
-rw-r--r-- | app-crypt/age/age-1.1.1-r1.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-crypt/age/age-1.1.1-r1.ebuild b/app-crypt/age/age-1.1.1-r1.ebuild new file mode 100644 index 000000000000..4e5c92a415c1 --- /dev/null +++ b/app-crypt/age/age-1.1.1-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +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/~graaff/age/${P}-deps.tar.xz" + +S="${WORKDIR}/age-${PV}" + +LICENSE="BSD" +#RESTRICT+=" test" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +src_compile() { + ego build -ldflags "-X main.Version=${PV}" -o . filippo.io/age/cmd/... || die +} + +src_test() { + ego test filippo.io/age/cmd/... || die +} + +src_install() { + dobin age age-keygen + doman doc/age.1 doc/age-keygen.1 + dodoc README.md +} |