Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/restic/
Date: Wed, 13 Jun 2018 12:15:38
Message-Id: 1528892126.3455620e01cd3c1c2f510b73cff0349226b1f778.mgorny@gentoo
1 commit: 3455620e01cd3c1c2f510b73cff0349226b1f778
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 12 20:34:01 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 13 12:15:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3455620e
7
8 app-backup/restic: verbump to 0.9.1
9
10 app-backup/restic/Manifest | 1 +
11 app-backup/restic/restic-0.9.1.ebuild | 54 +++++++++++++++++++++++++++++++++++
12 2 files changed, 55 insertions(+)
13
14 diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
15 index f9126665d28..21fcc07f010 100644
16 --- a/app-backup/restic/Manifest
17 +++ b/app-backup/restic/Manifest
18 @@ -1,3 +1,4 @@
19 DIST restic-0.8.1.tar.gz 40330154 BLAKE2B 6758ae4cd7b3caf1bb58b9b95ddd9b99422f2a5997f37317381ec2714a4bc369331e1ba5accb791a2733eddcebdb056256a25b837cad6926f86ec61265d95324 SHA512 02d45b70b94514d3491297dcd34f26db854b6153a1aa297aaa9c938e09d65429fbe0dedb3c028ad38c769049f814c7a923481adfe9962a35dc39a7477a80fdab
20 DIST restic-0.8.3.tar.gz 48746281 BLAKE2B 4161326068165b5ba19e9ee0e6386aa1df29a961a42509a2cb7924958100b9412abd1dd27d299d1eef76fdd4731d4a56f0a68e796a46071229a3e6767d3a6bb7 SHA512 758b2c69af8aad6bb62dc750141d5f5a1954ca2b51350ef59c35fd10afefaddc4d8d0cdd5914f249594946db6138124a48fba531b8a24353f022ccea773a240c
21 DIST restic-0.9.0.tar.gz 51049118 BLAKE2B 4089a0eafe0f3778d540ffb87d5d773f1bb4296c3cb7a085a38cc1ac54742392790ccf61145ed3ff19a7e35b358e0b40c7f3edf6ee661e22ffd00efafa2bdee1 SHA512 c01e8450c7afbea59d86a53a5491e562ba5d1ab7fe3e96e0e5b53d96f4df2cf051d7abaef742ff2ecce759e2cd97386566e1c19260f0d74ae678edbe200aa885
22 +DIST restic-0.9.1.tar.gz 51056544 BLAKE2B eb66381e284c94b17b0fa31f824f41b24a52d04555af6798fa9ac2f1dd0ca168d5e8a9fde922b205c420288002743b86a49a16a939c07a0f3fd942348f0348b6 SHA512 9d365bdcb561255e2103d7170d02e850e5cf767bc2e02e099d57ec9aad719ebd4319446f5162e64437ca9a8e1fdca273fd1c6cc4314013ca07b5ebdbeef93c2a
23
24 diff --git a/app-backup/restic/restic-0.9.1.ebuild b/app-backup/restic/restic-0.9.1.ebuild
25 new file mode 100644
26 index 00000000000..89515ce18d0
27 --- /dev/null
28 +++ b/app-backup/restic/restic-0.9.1.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit bash-completion-r1 golang-vcs-snapshot
36 +
37 +DESCRIPTION="A backup program that is fast, efficient and secure"
38 +HOMEPAGE="https://restic.github.io/"
39 +SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +EGO_PN="github.com/restic/restic"
41 +
42 +LICENSE="BSD-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~x86"
45 +IUSE="test"
46 +
47 +RDEPEND="sys-fs/fuse:0"
48 +DEPEND="${RDEPEND}"
49 +
50 +S="${WORKDIR}/${P}/src/${EGO_PN}"
51 +
52 +src_compile() {
53 + local mygoargs=(
54 + -v
55 + -work
56 + -x
57 + -tags release
58 + -ldflags "-X main.version=${PV}"
59 + -asmflags "-trimpath=${S}"
60 + -gcflags "-trimpath=${S}"
61 + -o restic ${EGO_PN}/cmd/restic
62 + )
63 +
64 + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
65 + go build "${mygoargs[@]}" || die
66 +}
67 +
68 +src_test() {
69 + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
70 + go test -timeout 30m -v -work -x ${EGO_PN}/cmd/... ${EGO_PN}/internal/... || die
71 +}
72 +
73 +src_install() {
74 + dobin restic
75 +
76 + newbashcomp doc/bash-completion.sh "${PN}"
77 +
78 + insinto /usr/share/zsh/site-functions
79 + newins doc/zsh-completion.zsh _restic
80 +
81 + doman doc/man/*
82 + dodoc doc/*.rst
83 +}