# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit toolchain-funcs multilib systemd DESCRIPTION="xfs filesystem utilities" HOMEPAGE="https://xfs.wiki.kernel.org/" SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh ~sparc x86" IUSE="icu libedit nls readline static-libs" LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)] icu? ( dev-libs/icu:=[static-libs(+)] ) readline? ( sys-libs/readline:0=[static-libs(+)] ) !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )" RDEPEND="${LIB_DEPEND//\[static-libs(+)]} !=xfsprogs-3.2.0 emake -j1 DIST_ROOT="${ED}" install-dev # handle is for xfsdump, the rest for xfsprogs gen_usr_ldscript -a handle xcmd xfs xlog frog # removing unnecessary .la files if not needed use static-libs || find "${ED}" -name '*.la' -delete }