From f36412408ce071a35d5733d921d84151376426e1 Mon Sep 17 00:00:00 2001 From: Joshua Kinard Date: Mon, 18 Jan 2016 03:37:54 -0500 Subject: Make sys-devel/gettext optional via the 'nls' USE flag, primarily so it can be masked for xfsdump on uClibc. Fixes #570548. Package-Manager: portage-2.2.26 --- sys-fs/xfsdump/xfsdump-3.1.6.ebuild | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sys-fs') diff --git a/sys-fs/xfsdump/xfsdump-3.1.6.ebuild b/sys-fs/xfsdump/xfsdump-3.1.6.ebuild index 935ff6455437..57f98a8f6e9f 100644 --- a/sys-fs/xfsdump/xfsdump-3.1.6.ebuild +++ b/sys-fs/xfsdump/xfsdump-3.1.6.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="5" -inherit multilib eutils +inherit multilib eutils flag-o-matic DESCRIPTION="xfs dump/restore utilities" HOMEPAGE="http://oss.sgi.com/projects/xfs" @@ -14,14 +14,17 @@ SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86" -IUSE="" +IUSE="nls" RDEPEND="sys-fs/e2fsprogs >=sys-fs/xfsprogs-3.2.0 sys-apps/dmapi >=sys-apps/attr-2.4.19" DEPEND="${RDEPEND} - sys-devel/gettext" + nls? ( + sys-devel/gettext + elibc_uclibc? ( dev-libs/libintl ) + )" src_prepare() { sed -i \ @@ -38,6 +41,7 @@ src_configure() { export DEBUG=-DNDEBUG econf \ + $(use_enable nls gettext) \ --libdir="${EPREFIX}/$(get_libdir)" \ --libexecdir="${EPREFIX}/usr/$(get_libdir)" \ --sbindir="${EPREFIX}/sbin" -- cgit v1.2.3-65-gdbad