Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/restic/
Date: Thu, 09 Feb 2017 00:24:24
Message-Id: 1486599156.052ca64684c09ab1b503c959438e15a2bef3b3e5.gokturk@gentoo
1 commit: 052ca64684c09ab1b503c959438e15a2bef3b3e5
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Tue Feb 7 19:53:41 2017 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 9 00:12:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=052ca646
7
8 app-backup/restic: New package
9
10 app-backup/restic: version bump to 0.4.0
11
12 app-backup/restic/Manifest | 1 +
13 app-backup/restic/metadata.xml | 13 +++++++++++
14 app-backup/restic/restic-0.4.0.ebuild | 43 +++++++++++++++++++++++++++++++++++
15 3 files changed, 57 insertions(+)
16
17 diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest
18 new file mode 100644
19 index 0000000000..95e41794e4
20 --- /dev/null
21 +++ b/app-backup/restic/Manifest
22 @@ -0,0 +1 @@
23 +DIST restic-0.4.0.tar.gz 22926188 SHA256 746dbc7b73f5a542be57b71714b243266a011f1d750f56f5100c08a59df1aeac SHA512 ccd15f010f8da3bae3d33698e70ff1d9565f52fb56991b78d35f95493417a4ab050021153d81c424947233255d9553d050f7a66e1c709843fe3b2d323a81f85b WHIRLPOOL 94e6b9ed777a86cb6e46cf734b9280e68cc2ce1ea061c8a94409dca594add1ec24fb736a56e35571302ff5043a60bef7f60ff3b39b038ee128bc815f7d3d48cd
24
25 diff --git a/app-backup/restic/metadata.xml b/app-backup/restic/metadata.xml
26 new file mode 100644
27 index 0000000000..83330b8512
28 --- /dev/null
29 +++ b/app-backup/restic/metadata.xml
30 @@ -0,0 +1,13 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>davidroman96@×××××.com</email>
37 + <name>David Roman</name>
38 + </maintainer>
39 + <maintainer type="project">
40 + <email>proxy-maint@g.o</email>
41 + <name>Proxy Maintainers</name>
42 + </maintainer>
43 +</pkgmetadata>
44
45 diff --git a/app-backup/restic/restic-0.4.0.ebuild b/app-backup/restic/restic-0.4.0.ebuild
46 new file mode 100644
47 index 0000000000..9368856202
48 --- /dev/null
49 +++ b/app-backup/restic/restic-0.4.0.ebuild
50 @@ -0,0 +1,43 @@
51 +# Copyright 1999-2017 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +# $Id$
54 +
55 +EAPI=6
56 +
57 +DESCRIPTION="restic is a backup program that is fast, efficient and secure"
58 +HOMEPAGE="https://restic.github.io/"
59 +SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60 +
61 +LICENSE="BSD-2"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~x86"
64 +IUSE="test"
65 +
66 +DOCS=( README.md CONTRIBUTING.md doc/Design.md doc/FAQ.md doc/index.md doc/Manual.md doc/REST_backend.md )
67 +
68 +DEPEND="dev-lang/go
69 + test? ( sys-fs/fuse )"
70 +
71 +RDEPEND="sys-fs/fuse"
72 +
73 +src_compile() {
74 + local mygoargs=(
75 + -v
76 + -work
77 + -x
78 + -tags release
79 + -ldflags "-w -X main.version=${PV}"
80 + -o "${S}"/restic cmds/restic
81 + )
82 +
83 + GOPATH="${S}:${S}/vendor" go build "${mygoargs[@]}" || die
84 +}
85 +
86 +src_test() {
87 + GOPATH="${S}:${S}/vendor" go test -v -work -x restic/... cmds/... || die
88 +}
89 +
90 +src_install() {
91 + dobin restic
92 + einstalldocs
93 +}