You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
8 years ago
|
# 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"
|
||
8 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
8 years ago
|
|
||
|
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"
|
||
|
|
||
6 years ago
|
PATCHES=( "${FILESDIR}"/${P}-sitedir.patch )
|
||
8 years ago
|
|
||
|
src_configure() {
|
||
|
# only build/install docs if enabled
|
||
|
export PANDOC=$(usex doc pandoc "")
|
||
|
|
||
|
./configure || die
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake test
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
emake DESTDIR="${D}" PREFIX=/usr DOCDIR="/usr/share/${PF}" \
|
||
|
SITEDIR="$(python_get_sitedir)" install
|
||
8 years ago
|
python_fix_shebang "${ED}"
|
||
|
python_optimize "${ED}"
|
||
|
}
|