1 # Copyright 1999-2019 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"
10 KEYWORDS="~amd64 ~x86"
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 # Hand made build system at it's finest.
29 echo -e "#!/bin/sh\ntrue" >tools/update-version || die
30 echo "#pragma once" >src/version.hpp || die
31 echo "static const char MERGERFS_VERSION[] = \"${PV}\";" >>src/version.hpp || die
34 sed 's%USE_XATTR = 1%USE_XATTR = 0%g' -i Makefile || die
40 dosym mergerfs /usr/bin/mount.mergerfs