commit:     d111a3ef381e17b4b0c4a78a9074c011da5a4b88
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Mon Sep 22 14:58:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 23 13:43:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d111a3ef

app-backup/restic: add 0.18.1

Signed-off-by: David Roman <droman <AT> ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/43892
Closes: https://github.com/gentoo/gentoo/pull/43892
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-backup/restic/Manifest             |  3 ++
 app-backup/restic/restic-0.18.1.ebuild | 61 ++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
index d1e2a4ef5f93..322610bbef82 100644
--- a/app-backup/restic/Manifest
+++ b/app-backup/restic/Manifest
@@ -1,3 +1,6 @@
 DIST restic-0.18.0-deps.tar.xz 182448840 BLAKE2B 
f28d1555ef18d79d5ba62c3477f82aed882b9fd166ffab67dfb8580be9855d4b9ecc3c50055ad58c6257bd1cddae50b9ef087f341b17ec2fd315eb5c184c5788
 SHA512 
6bdb41688c132534510fd23290149e8ebd8bfad194656c30201866af462bef97485821b24edb20a91c30a0baa3dc84241f04641162a06b2f0a08922bc96b057a
 DIST restic-0.18.0.tar.gz 24095281 BLAKE2B 
dba64ce3c3471f8981dd6810396f3f4687286d7c968fa3d826e622113d0412b5198f3741eb834d34373a7c7de42cb6bb78640892b206689b91b039326c7fa00e
 SHA512 
964422cd52abd68e2a860eb18ce277da7b0093657244deb56849f656e9c7f0f29de5478b0124644a7b5aceb39fa83feab0686f9634a5f48ac38614f1d73d02f4
 DIST restic-0.18.0.tar.gz.asc 833 BLAKE2B 
90b2c15d5f2f6b2545c63a08f1717a558cc1766654baee61ad2631ccef01a273df7ede93c00a3ca1607d83c844c01e1d81d1cca90db1aecbe685e09a859f0c18
 SHA512 
e9b92541a6075ceda61b9f666e08898246291997ad36cf63b9492d83eb6453121fa274cf9a3867016932fa87b0c75569aad3f399b50e5af8dd32c8fc81aff933
+DIST restic-0.18.1-deps.tar.xz 188040996 BLAKE2B 
be1d11cf8f1b01f75cae60d6634720910a86ce7c5bad53111e60fb49a63ab331f5d32cd337162bdbf6882b0a33fa8f70fe23decdf92a7561cb021f22347ebc9b
 SHA512 
adad438bf6c1f201fa602e2dfe9a912302db430fdf98d20b0019638ebf5e10e1f265ccca78f2dc54926f8a88b2bc43763c1b92b76a33309da53f606c7f9fb98c
+DIST restic-0.18.1.tar.gz 24102654 BLAKE2B 
3a062c09a2fb4e961d2e70fc5fff615af3a9a4aee24c3e31b63e2f11e9f334019dcc0c4271c134dda988b0b9563babdfdb7428c884207a1950d8add1fb44f83f
 SHA512 
7a0eb6bec02555b50ec7073cc631c1ec2e11ca2369b3c33d8b1d17086f2fedb14ac0025d004f19114537a0aab034df999bce7199594979bbefedb15116cce4e7
+DIST restic-0.18.1.tar.gz.asc 833 BLAKE2B 
e549f3ae1da58dd269a59530a912ab90ca43a2ab3b064ffdb1cc1730ef12af286c08e09c5f0ff7b954d02aad845419429c31bcd1340470e2276d1ae01f0ab851
 SHA512 
7b8e123ee814d34cdba0c93933f50afd42c97a02757351418c1d915c70722e2638abb8fcf3d1032456ed5939681a832b9589b0efe2a3c443f27ce3e9f297c8a4

diff --git a/app-backup/restic/restic-0.18.1.ebuild 
b/app-backup/restic/restic-0.18.1.ebuild
new file mode 100644
index 000000000000..9009070d8f7c
--- /dev/null
+++ b/app-backup/restic/restic-0.18.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/alexanderneumann.asc
+inherit go-module shell-completion verify-sig
+
+DESCRIPTION="A backup program that is fast, efficient and secure"
+HOMEPAGE="https://restic.net/";
+SRC_URI="
+       https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       verify-sig? ( 
https://github.com/restic/restic/releases/download/v${PV}/${P}.tar.gz.asc )
+"
+
+SRC_URI+=" https://gentoo.kropotkin.rocks/go-pkgs/${P}-deps.tar.xz";
+
+LICENSE="Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+RDEPEND="sys-fs/fuse:0"
+DEPEND="${RDEPEND}"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-alexanderneumann )"
+
+src_unpack() {
+       if use verify-sig; then
+               verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz 
"${DISTDIR}"/${P}.tar.gz.asc
+       fi
+
+       default
+}
+
+src_compile() {
+       local mygoargs=(
+               -tags release
+               -ldflags "-X main.version=${PV}"
+               -asmflags "-trimpath=${S}"
+               -gcflags "-trimpath=${S}"
+       )
+
+       ego build "${mygoargs[@]}" -o restic ./cmd/restic
+}
+
+src_test() {
+       addwrite /dev/fuse
+       # a number of the ./cmd/... tests fail
+       # ego test -timeout 30m ./cmd/... ./internal/...
+       RESTIC_TEST_FUSE=0 ego test -timeout 30m ./internal/...
+}
+
+src_install() {
+       dobin restic
+
+       newbashcomp doc/bash-completion.sh "${PN}"
+       newzshcomp doc/zsh-completion.zsh _restic
+       newfishcomp doc/fish-completion.fish "${PN}.fish"
+
+       doman doc/man/*
+       dodoc doc/*.rst
+}

Reply via email to