diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-12-22 23:24:55 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-12-22 23:24:55 +0100 |
commit | b167d615019e864e50f7736f58859aba89be31c5 (patch) | |
tree | e9d71d20a179f9681a37b620001643d218685b39 /sys-fs/fuse/fuse-3.9.0.ebuild | |
parent | sys-fs/fuse-common: bump to v3.9.0 (diff) | |
download | gentoo-b167d615019e864e50f7736f58859aba89be31c5.tar.gz gentoo-b167d615019e864e50f7736f58859aba89be31c5.tar.bz2 gentoo-b167d615019e864e50f7736f58859aba89be31c5.zip |
sys-fs/fuse: bump to v3.9.0
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-fs/fuse/fuse-3.9.0.ebuild')
-rw-r--r-- | sys-fs/fuse/fuse-3.9.0.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/sys-fs/fuse/fuse-3.9.0.ebuild b/sys-fs/fuse/fuse-3.9.0.ebuild new file mode 100644 index 000000000000..4e75898ead75 --- /dev/null +++ b/sys-fs/fuse/fuse-3.9.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8} ) + +inherit meson multilib-minimal flag-o-matic udev python-any-r1 + +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.xz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="+suid test" +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]') + )" +RDEPEND=">=sys-fs/fuse-common-3.3.0-r1" + +DOCS=( AUTHORS ChangeLog.rst README.md doc/README.NFS doc/kernel.txt ) + +python_check_deps() { + has_version "dev-python/pytest[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + + # lto not supported yet -- https://github.com/libfuse/libfuse/issues/198 + filter-flags '-flto*' + + # passthough_ll is broken on systems with 32-bit pointers + cat /dev/null > example/meson.build || die +} + +multilib_src_configure() { + local emesonargs=( + -Duseroot=false + ) + meson_src_configure +} + +multilib_src_compile() { + eninja +} + +multilib_src_test() { + ${EPYTHON} -m pytest test || die +} + +multilib_src_install() { + DESTDIR="${D}" eninja install +} + +multilib_src_install_all() { + einstalldocs + + # installed via fuse-common + rm -r "${ED}"/{etc,$(get_udevdir)} || die + + # useroot=false prevents the build system from doing this. + use suid && fperms u+s /usr/bin/fusermount3 + + # manually install man pages to respect compression + rm -r "${ED}"/usr/share/man || die + doman doc/{fusermount3.1,mount.fuse3.8} +} |