Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/restic/
Date: Thu, 30 Nov 2017 14:47:06
Message-Id: 1512053151.c3cd96bd0ad0ecb7ce723e3fda53504a546d22df.monsieurp@gentoo
1 commit: c3cd96bd0ad0ecb7ce723e3fda53504a546d22df
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 26 21:50:24 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 14:45:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3cd96bd
7
8 app-backup/restic: version bump 0.8.0.
9
10 Closes: https://github.com/gentoo/gentoo/pull/6313
11
12 app-backup/restic/Manifest | 3 +-
13 app-backup/restic/restic-0.8.0.ebuild | 68 +++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+), 1 deletion(-)
15
16 diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
17 index 04e2f4c277d..f6fdc4d0208 100644
18 --- a/app-backup/restic/Manifest
19 +++ b/app-backup/restic/Manifest
20 @@ -1,3 +1,4 @@
21 DIST restic-0.6.1.tar.gz 25231223 SHA256 7cd709c592a5978723673397d7d13c37c0977e20c43db253d0c274b53a55654a SHA512 8c899ca8b6e3dfa399fe5c4306f72a1bcfa869dd667d27f3f88efa26aaa1000959bf91b515911b2ef7b2d4c5bb3e2ed4f202c87add7766d2147b7d40f0757a9a WHIRLPOOL 39225876fd6ce9e4ddac765688238ab5ea430272aacc6e96d54c359de939d2e69cdc45a5571cb63777c258a74b5a9bfbd6114d2463004b242b009856d87b6e2e
22 DIST restic-0.7.1.tar.gz 25438170 SHA256 81efde662c34225b5705f3d72daa1f6278455c2b8f786224d7a1ecca0b14efca SHA512 3b887149c801fe81f9bf65e0ae4a17ba97f66c0133f45b3f5526d79d580f072e0e5fd89cd78a5018992dc42e6dafb9385139f4336fe6f06d57d8abe7a9e323b1 WHIRLPOOL bbdeafadd7b329147b7ea30b13d806d20de76e8efcc1ace4eea74420aa39f6d7a8f5eb186169d2a053988d07d44063ca71c54287aa07c4cd4cdc906a07b80dc7
23 -DIST restic-0.7.3.tar.gz 37062625 SHA256 6d795a5f052b3a8cb8e7571629da14f00e92035b7174eb20e32fd1440f68aaff SHA512 2d44b4fc363c7f6389c1f06469cf30ebeff4d6ade0bd4fcae1d7d9def3922936b45043b04f4072284b773df2c6487c58db6aea41c7de5c8184ca33ca3c44d44a WHIRLPOOL dde430e4d718928b01da0f1558fd8a7bf65a0d9e3a4a620cc7557e6afd4760a8dc6c1a9d7c744649cb817b99fb22ee2e2f893d5fd49fa961d5ab6b8bb02941b0
24 +DIST restic-0.7.3.tar.gz 37062625 BLAKE2B 0a50c1c6c1ffc8f5d5c0698341bfd1715faee0ab3392ddb065b75143babb45dcfee355f2a369771b4c256cafcb839dc401ad827e194b52d27a1c7582b9c3a1c3 SHA512 2d44b4fc363c7f6389c1f06469cf30ebeff4d6ade0bd4fcae1d7d9def3922936b45043b04f4072284b773df2c6487c58db6aea41c7de5c8184ca33ca3c44d44a
25 +DIST restic-0.8.0.tar.gz 37309494 BLAKE2B 0c50ccbdabca2057a5d1f8a7326a3e143101daed7cf9eabf0deb2d4452bbd63fd57c3edc8be106c0123f3c4e01195e8042a8f70477c999b00069ffe3d4fcb1d5 SHA512 5f2205ac5caf91f119f1705dc1f8340c481fd27d809cdadbd8ff39ebbc910d98452626c2a9564300935746550a2604ed59aa095f3137788bd0dce87c0dcb14f9
26
27 diff --git a/app-backup/restic/restic-0.8.0.ebuild b/app-backup/restic/restic-0.8.0.ebuild
28 new file mode 100644
29 index 00000000000..3cd921c0f6d
30 --- /dev/null
31 +++ b/app-backup/restic/restic-0.8.0.ebuild
32 @@ -0,0 +1,68 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit golang-vcs-snapshot bash-completion-r1
39 +
40 +DESCRIPTION="A backup program that is fast, efficient and secure"
41 +HOMEPAGE="https://restic.github.io/"
42 +SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +EGO_PN="github.com/restic/restic"
44 +
45 +LICENSE="BSD-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="test"
49 +
50 +DOCS=(
51 + README.rst CONTRIBUTING.md doc/010_introduction.rst doc/020_installation.rst
52 + doc/030_preparing_a_new_repo.rst doc/040_backup.rst doc/045_working_with_repos.rst
53 + doc/050_restore.rst doc/060_forget.rst doc/070_encryption.rst doc/080_examples.rst
54 + doc/090_participating.rst doc/100_references.rst doc/cache.rst doc/faq.rst
55 + doc/index.rst doc/manual_rest.rst
56 +)
57 +
58 +DEPEND="
59 + dev-lang/go
60 + test? ( sys-fs/fuse:0 )"
61 +
62 +RDEPEND="sys-fs/fuse:0"
63 +
64 +S="${WORKDIR}/${P}/src/${EGO_PN}"
65 +
66 +src_compile() {
67 + local mygoargs=(
68 + -v
69 + -work
70 + -x
71 + -tags release
72 + -ldflags "-s -w -X main.version=${PV}"
73 + -asmflags "-trimpath=${S}"
74 + -gcflags "-trimpath=${S}"
75 + -o restic ${EGO_PN}/cmd/restic
76 + )
77 +
78 + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
79 + go build "${mygoargs[@]}" || die
80 +}
81 +
82 +src_test() {
83 + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
84 + go test -timeout 30m -v -work -x ${EGO_PN}/cmd/... ${EGO_PN}/internal/... || die
85 +}
86 +
87 +src_install() {
88 + dobin restic
89 + einstalldocs
90 +
91 + newbashcomp doc/bash-completion.sh "${PN}"
92 +
93 + insinto /usr/share/zsh/site-functions
94 + newins doc/zsh-completion.zsh _restic
95 +
96 + local i
97 + for i in doc/man/*; do
98 + doman "$i"
99 + done
100 +}