Gentoo Archives: gentoo-dev

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 1/4] switch IUSE tests to in_iuse, bug #383901
Date: Sun, 13 Jan 2013 19:04:28
Message-Id: 1358103800.23137.16.camel@kanae
In Reply to: [gentoo-dev] [PATCH 0/4] gnome2.eclass updates by Gilles Dartiguelongue
1 has bla ${IUSE} is "standardized" through in_iuse. Make use of this function.
2
3 ---
4 eclass/gnome2.eclass | 4 ++--
5 1 file changed, 2 insertions(+), 2 deletions(-)
6
7 diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
8 index 70eb491..e263232 100644
9 --- a/eclass/gnome2.eclass
10 +++ b/eclass/gnome2.eclass
11 @@ -158,7 +158,7 @@ gnome2_src_configure() {
12 # rebuild docs.
13 # Preserve old behavior for older EAPI.
14 if grep -q "enable-gtk-doc" ${ECONF_SOURCE:-.}/configure ; then
15 - if has ${EAPI-0} 0 1 2 3 4 && has doc ${IUSE} ; then
16 + if has ${EAPI:-0} 0 1 2 3 4 && in_iuse doc ; then
17 G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
18 else
19 G2CONF="${G2CONF} --disable-gtk-doc"
20 @@ -266,7 +266,7 @@ gnome2_src_install() {
21 if has ${EAPI:-0} 0 1 2 3 4; then
22 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then
23 ebegin "Removing .la files"
24 - if ! { has static-libs ${IUSE//+} && use static-libs; }; then
25 + if ! { in_iuse static-libs && use static-libs; }; then
26 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
27 fi
28 eend
29 --
30 1.8.1

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [PATCH 1/4] switch IUSE tests to in_iuse, bug #383901 Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>