commit:     f36412408ce071a35d5733d921d84151376426e1
Author:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 08:37:54 2016 +0000
Commit:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 08:38:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3641240

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(-)

diff --git a/sys-fs/xfsdump/xfsdump-3.1.6.ebuild 
b/sys-fs/xfsdump/xfsdump-3.1.6.ebuild
index 935ff64..57f98a8 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"

Reply via email to