From 8154427bc1124772c72a26063839bef2f6200e4c Mon Sep 17 00:00:00 2001 From: odrling Date: Thu, 21 Mar 2024 21:36:55 +0100 Subject: [PATCH] app-crypt/sops: update ebuild --- app-crypt/sops/metadata.xml | 11 +++++++++ app-crypt/sops/sops-3.8.1.ebuild | 40 ++++++++++---------------------- 2 files changed, 23 insertions(+), 28 deletions(-) create mode 100644 app-crypt/sops/metadata.xml diff --git a/app-crypt/sops/metadata.xml b/app-crypt/sops/metadata.xml new file mode 100644 index 0000000..412512e --- /dev/null +++ b/app-crypt/sops/metadata.xml @@ -0,0 +1,11 @@ + + + + + florianbadie@odrling.xyz + odrling + + + getsops/sops + + diff --git a/app-crypt/sops/sops-3.8.1.ebuild b/app-crypt/sops/sops-3.8.1.ebuild index e19e7fc..8e8a240 100644 --- a/app-crypt/sops/sops-3.8.1.ebuild +++ b/app-crypt/sops/sops-3.8.1.ebuild @@ -1,49 +1,33 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module -if [[ ${PV} == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/mozilla/${PN}.git" - #KEYWORDS="" - RESTRICT="network-sandbox" -else - SRC_URI=" - https://github.com/mozilla/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://hikari.butaishoujo.moe/b/67314ee3/${P}-vendor.tar.xz - " - KEYWORDS="~amd64 ~arm ~arm64" - RESTRICT="mirror" -fi - DESCRIPTION="Simple and flexible tool for managing secrets" -HOMEPAGE="https://github.com/mozilla/sops" - +HOMEPAGE="https://github.com/getsops/sops" +SRC_URI=" + https://github.com/getsops/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://hikari.butaishoujo.moe/b/67314ee3/${P}-vendor.tar.xz +" LICENSE="MPL-2.0" + SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +RESTRICT="mirror" DOCS=( {CHANGELOG,README}.rst ) -if [[ ${PV} == "9999" ]]; then - src_unpack() { - git-r3_src_unpack - go-module_live_vendor - } -fi - src_compile() { - CGO_ENABLED=0 \ - go build -v -ldflags "-s -w" -o "${PN}" ./cmd/sops + ego build } src_test() { - go test -work || die "test failed" + ego test || die "test failed" } src_install() { einstalldocs - dobin ${PN} + dobin sops }