Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/restic/
Date: Sat, 04 Jan 2020 17:48:19
Message-Id: 1578160012.866ec97c31a28ace6db6f4cd81e2e03cb6ff51bc.juippis@gentoo
1 commit: 866ec97c31a28ace6db6f4cd81e2e03cb6ff51bc
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Wed Dec 25 00:10:36 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 4 17:46:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=866ec97c
7
8 app-backup/restic: bump to 0.9.6
9
10 Closes: https://bugs.gentoo.org/703472
11 Package-Manager: Portage-2.3.82, Repoman-2.3.20
12 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/14119
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 app-backup/restic/Manifest | 1 +
17 app-backup/restic/restic-0.9.6.ebuild | 54 +++++++++++++++++++++++++++++++++++
18 2 files changed, 55 insertions(+)
19
20 diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
21 index 3b5caa578c3..843d171b033 100644
22 --- a/app-backup/restic/Manifest
23 +++ b/app-backup/restic/Manifest
24 @@ -1,2 +1,3 @@
25 DIST restic-0.9.4.tar.gz 26211163 BLAKE2B 950a8da8217500a910f0e5966787b668417f1168e81365ecda70469ef42c24fed876e97b6a44ed9dda89c07760db4678d791960d78760d68c8f1846c827cf340 SHA512 8e75a1da6ee9a364c2bf53ce8f9b014549e7065eae349dc6baf68b0e8a8e9736f83c0495b822aac87480751f448bd42da34c440290b5f0967aea7becda5c448b
26 DIST restic-0.9.5.tar.gz 26933971 BLAKE2B 7e6cb87c7ce0f860ed884a631b791d0dc44e770ffabf298f20c60197b32961a2a78380e2933ce3851215ec2e32bee95da67566bf7d2d30c3bb0dddda2c6ca804 SHA512 2541b4d70d23d28360c4398427d65ed08a5eea8c171b93be7b7d54baa7b06099f5473ff2fbe3d6b3d6691592300062ba1b240cc03772868d2a0adb1217c8a85f
27 +DIST restic-0.9.6.tar.gz 27008812 BLAKE2B 4c8982800d39bcd4c29067f2bad15df44b92758b009f5831efb16d211ea28cbb8cda94b9f6cc41a685942145fcfb71c59d0aa10fcb4bd1cd22d15ca812af4fd0 SHA512 f6f7797dc17644e8f0217d81f7194e8e6416f6e740bad0eb11bcf83ab72d1729025e59fd1b81eb9d57bdd60e98b3324026ddb2325c654eb1b51f8f30ed247089
28
29 diff --git a/app-backup/restic/restic-0.9.6.ebuild b/app-backup/restic/restic-0.9.6.ebuild
30 new file mode 100644
31 index 00000000000..4896858176f
32 --- /dev/null
33 +++ b/app-backup/restic/restic-0.9.6.ebuild
34 @@ -0,0 +1,54 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit bash-completion-r1 golang-vcs-snapshot
41 +
42 +DESCRIPTION="A backup program that is fast, efficient and secure"
43 +HOMEPAGE="https://restic.github.io/"
44 +SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +EGO_PN="github.com/restic/restic"
46 +
47 +LICENSE="Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE=""
51 +
52 +RDEPEND="sys-fs/fuse:0"
53 +DEPEND="${RDEPEND}"
54 +
55 +S="${WORKDIR}/${P}/src/${EGO_PN}"
56 +
57 +src_compile() {
58 + local mygoargs=(
59 + -v
60 + -work
61 + -x
62 + -tags release
63 + -ldflags "-X main.version=${PV}"
64 + -asmflags "-trimpath=${S}"
65 + -gcflags "-trimpath=${S}"
66 + -o restic ${EGO_PN}/cmd/restic
67 + )
68 +
69 + GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
70 + go build "${mygoargs[@]}" || die
71 +}
72 +
73 +src_test() {
74 + GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
75 + go test -timeout 30m -v -work -x ${EGO_PN}/cmd/... ${EGO_PN}/internal/... || die
76 +}
77 +
78 +src_install() {
79 + dobin restic
80 +
81 + newbashcomp doc/bash-completion.sh "${PN}"
82 +
83 + insinto /usr/share/zsh/site-functions
84 + newins doc/zsh-completion.zsh _restic
85 +
86 + doman doc/man/*
87 + dodoc doc/*.rst
88 +}