summaryrefslogtreecommitdiff
blob: ac994543f9a429d8404309facf35b455f091e5e5 (plain)
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit meson multilib-minimal

DESCRIPTION="An interface for filesystems implemented in userspace"
HOMEPAGE="https://github.com/libfuse/libfuse"
SRC_URI="https://github.com/libfuse/libfuse/releases/download/${P}/${P}.tar.gz"

LICENSE="GPL-2 LGPL-2.1"
SLOT="3"
#KEYWORDS="~amd64"
RESTRICT="test"

DOCS=( AUTHORS README.md doc/README.NFS doc/kernel.txt )

src_prepare() {
	default
	# passthough_ll is broken on systems with 32-bit pointers
	cat /dev/null > example/meson.build || die
}

multilib_src_configure() {
	meson_src_configure
}

multilib_src_compile() {
	eninja
}

multilib_src_install() {
	DESTDIR="${D}" eninja install
}

multilib_src_install_all() {
	default
	rm "${ED%/}"/dev/fuse || die
	rmdir "${ED%/}"/dev || die
	rm "${ED%/}"/etc/init.d/fuse3 || die
	rmdir "${ED%/}"/etc{/init.d,} || die
	mv "${ED%/}"/usr/share/man/man8/mount.fuse{,3}.8.gz || die
}