forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bup-0.29-r1.ebuild
59 lines (47 loc) · 1.22 KB
/
bup-0.29-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
DESCRIPTION="A highly efficient backup system based on the git packfile format"
HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+doc test web"
RDEPEND="${PYTHON_DEPS}
app-arch/par2cmdline
dev-python/fuse-python[${PYTHON_USEDEP}]
dev-python/pylibacl[${PYTHON_USEDEP}]
dev-python/pyxattr[${PYTHON_USEDEP}]
web? ( www-servers/tornado[${PYTHON_USEDEP}] )
sys-libs/readline:0
dev-vcs/git"
DEPEND="${RDEPEND}
test? (
dev-lang/perl
net-misc/rsync
)
doc? ( app-text/pandoc )
"
# unresolved sandbox issues
RESTRICT="test"
src_prepare() {
default
sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
-i Makefile || die
}
src_configure() {
# only build/install docs if enabled
export PANDOC=$(usex doc pandoc "")
./configure || die
}
src_test() {
emake test
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
python_fix_shebang "${ED}"
python_optimize "${ED}"
}