1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="A featureful union filesystem"
7 HOMEPAGE="https://github.com/trapexit/mergerfs"
9 SRC_URI="https://github.com/trapexit/mergerfs/archive/${PV}.tar.gz -> ${P}.tar.gz"
12 # Vendorized libfuse that's bundled is under LGPL-2.1.
13 LICENSE="ISC LGPL-2.1"
18 xattr? ( sys-apps/attr )
23 BDEPEND="sys-devel/gettext"
28 # drop -O2 from those handmade Makefiles.
29 sed -r '/^OPTS[ \t]*=/d' -i Makefile || die
31 # Hand made build system at it's finest.
32 echo -e "#!/bin/sh\ntrue" >tools/update-version || die
33 echo "#pragma once" >src/version.hpp || die
34 echo "static const char MERGERFS_VERSION[] = \"${PV}\";" >>src/version.hpp || die
37 sed 's%USE_XATTR = 1%USE_XATTR = 0%g' -i Makefile || die
43 dosym mergerfs /usr/bin/mount.mergerfs