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 |