# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="5" inherit bash-completion-r1 eutils multilib toolchain-funcs git-r3 DESCRIPTION="xfs filesystem utilities" HOMEPAGE="http://oss.sgi.com/projects/xfs/" EGIT_REPO_URI="git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="" IUSE="libedit nls readline static static-libs" REQUIRED_USE="static? ( static-libs )" LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)] readline? ( sys-libs/readline[static-libs(+)] ) !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )" RDEPEND="!static? ( ${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 xfs xlog # removing unnecessary .la files if not needed use static-libs || find "${ED}" -name '*.la' -delete }