blob: aa2fec3b50d8b1b8fb48b01593c485dd661ef648 [file] [log] [blame]
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit meson udev flag-o-matic
DESCRIPTION="Common files for multiple slots of sys-fs/fuse"
HOMEPAGE="https://github.com/libfuse/libfuse"
SRC_URI="https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.xz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="*"
DEPEND="virtual/pkgconfig"
RDEPEND="!<sys-fs/fuse-2.9.8"
S=${WORKDIR}/fuse-${PV}
# tests run in sys-fs/fuse
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${P}-conf.patch
)
src_prepare() {
default
# lto not supported yet -- https://github.com/libfuse/libfuse/issues/198
filter-flags -flto*
}
src_configure() {
local emesonargs=( -Dudevrulesdir="$(get_udevdir)"/rules.d )
meson_src_configure
}
src_install() {
newsbin "${BUILD_DIR}"/util/mount.fuse3 mount.fuse
newman doc/mount.fuse3.8 mount.fuse.8
udev_newrules util/udev.rules 99-fuse.rules
if use kernel_linux ; then
newinitd "${FILESDIR}"/fuse.init fuse
elif use kernel_FreeBSD ; then
newinitd "${FILESDIR}"/fuse-fbsd.init fuse
else
die "We don't know what init code install for your kernel, please file a bug."
fi
insinto /etc
doins util/fuse.conf
}