commit:     95573b15afeae4d899a131972fcae6c0a3312395
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Mon Mar 31 10:06:08 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Apr 19 20:07:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95573b15

app-backup/restic: add 0.18.0

Signed-off-by: David Roman <droman <AT> ifae.es>
Closes: https://github.com/gentoo/gentoo/pull/41400
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

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

diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
index 55479eb2d70d..86b8d499f825 100644
--- a/app-backup/restic/Manifest
+++ b/app-backup/restic/Manifest
@@ -3,3 +3,6 @@ DIST restic-0.16.5.tar.gz 23990221 BLAKE2B 
ffdbcbcd5cbd2c22009c7d9c58cbc943c542c
 DIST restic-0.17.3-deps.tar.xz 62516448 BLAKE2B 
21874e8cf6dd2be669e6d2ad13bde02073ec25920214a758e01f16869abce964fa29e6bcd9c91ba5d47edf47673975e0c0ffe8161547f8e5d854462d402aa2e5
 SHA512 
3869e4aec35bd04b323b0b0ba86eebdf5b2dfd89011cae5f47888a6dc027e7e35ec01a3fad45fb5fc2b7c41a24b2c82a234b3a74e09fadcb82fa803c7acca174
 DIST restic-0.17.3.tar.gz 24109574 BLAKE2B 
0ef828207a2c925246d780377e531b47254c3afcd89231f4dda7aad063c5335134c87e8747b138a725a8b2b5deafddef09eaccce67ae508b0b3c82369d878ea7
 SHA512 
d2efc27588f4b08120f68ba4e72d007c49b340c66928aaa261312a9caa32ec44c80d562c69ae25d2e7be1b5fa3600b3239fc49651a8c8be50581bfd73ae59036
 DIST restic-0.17.3.tar.gz.asc 833 BLAKE2B 
f703e66d3637e254020c9cc34b92b8b12fcb860e0f505aa89f0c8f8b682ef0bf16a6321233a83d8ddbb30ccae6c9cbdba1e8a60136513d3158c97949fd1033f7
 SHA512 
8daa8a70fe2de292dce67a8a2ceea3856d0332975234d46dc12bd79208b3aa129064e303a1e4ff32cea37765cc63ed3f8d1fb080737e4ef6b2d9b9073593fd85
+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

diff --git a/app-backup/restic/restic-0.18.0.ebuild 
b/app-backup/restic/restic-0.18.0.ebuild
new file mode 100644
index 000000000000..af9be36dd72c
--- /dev/null
+++ b/app-backup/restic/restic-0.18.0.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.github.io/";
+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