Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/bup/
Date: Mon, 23 Jan 2017 00:04:52
Message-Id: 1485129757.2b6dfb63de99d868ff0a8e57e856e3f5396c2eb4.radhermit@gentoo
1 commit: 2b6dfb63de99d868ff0a8e57e856e3f5396c2eb4
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 22 23:59:27 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 23 00:02:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b6dfb63
7
8 app-backup/bup: add doc use flag to control man page generation
9
10 For those who want to avoid pandoc and its haskell dep tree.
11
12 app-backup/bup/bup-0.29-r1.ebuild | 60 +++++++++++++++++++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/app-backup/bup/bup-0.29-r1.ebuild b/app-backup/bup/bup-0.29-r1.ebuild
16 new file mode 100644
17 index 00000000..b3b8ad1
18 --- /dev/null
19 +++ b/app-backup/bup/bup-0.29-r1.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +PYTHON_COMPAT=( python2_7 )
27 +
28 +inherit python-single-r1
29 +
30 +DESCRIPTION="A highly efficient backup system based on the git packfile format"
31 +HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
32 +SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="LGPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="+doc test web"
38 +
39 +RDEPEND="${PYTHON_DEPS}
40 + app-arch/par2cmdline
41 + dev-python/fuse-python[${PYTHON_USEDEP}]
42 + dev-python/pylibacl[${PYTHON_USEDEP}]
43 + dev-python/pyxattr[${PYTHON_USEDEP}]
44 + web? ( www-servers/tornado[${PYTHON_USEDEP}] )
45 + sys-libs/readline:0
46 + dev-vcs/git"
47 +DEPEND="${RDEPEND}
48 + test? (
49 + dev-lang/perl
50 + net-misc/rsync
51 + )
52 + doc? ( app-text/pandoc )
53 +"
54 +
55 +# unresolved sandbox issues
56 +RESTRICT="test"
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
62 + -i Makefile || die
63 +}
64 +
65 +src_configure() {
66 + # only build/install docs if enabled
67 + export PANDOC=$(usex doc pandoc "")
68 +
69 + ./configure || die
70 +}
71 +
72 +src_test() {
73 + emake test
74 +}
75 +
76 +src_install() {
77 + emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
78 + python_fix_shebang "${ED}"
79 + python_optimize "${ED}"
80 +}