mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 13:55:44 +02:00
There's now a new make target called "install_tools" which would not run by default on installation. One can add "OPTIONAL_INSTALL_TARGETS=install_tools" into localconf to install these by default. fiewalk would be installed to sbin, as only root can run it, the other goes to bin. Gentoo can use this to optionally install these tools as a package feature. Signed-off-by: Kai Krakow <kai@kaishome.de>
50 lines
1.0 KiB
Bash
50 lines
1.0 KiB
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit git-r3 eutils multilib
|
|
|
|
DESCRIPTION="Best-Effort Extent-Same, a btrfs dedup agent"
|
|
HOMEPAGE="https://github.com/Zygo/bees"
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
EGIT_REPO_URI="https://github.com/kakra/bees.git"
|
|
EGIT_BRANCH="integration"
|
|
else
|
|
SRC_URI="https://github.com/Zygo/bees/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
fi
|
|
|
|
PATCHES="
|
|
${FILESDIR}/v0.5-gentoo_build.patch
|
|
"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS=""
|
|
IUSE="tools"
|
|
|
|
COMMON_DEPEND="
|
|
>=sys-apps/util-linux-2.30.2
|
|
>=sys-devel/gcc-4.9
|
|
>=sys-fs/btrfs-progs-4.1
|
|
"
|
|
DEPEND="
|
|
${COMMON_DEPEND}
|
|
|| ( dev-python/markdown dev-python/markdown2 )
|
|
"
|
|
RDEPEND="${COMMON_DEPEND}"
|
|
|
|
DOCS="README.md COPYING"
|
|
HTML_DOCS="README.html"
|
|
|
|
src_prepare() {
|
|
default
|
|
echo LIBDIR=$(get_libdir) >>${S}/localconf
|
|
localconf=${S}/localconf
|
|
if use tools; then
|
|
einfo "Building with support tools fiemap and fiewalk."
|
|
echo OPTIONAL_INSTALL_TARGETS=install_tools >>${localconf} || die
|
|
fi
|
|
}
|