summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-05-11 13:02:05 +0000
committerMike Frysinger <vapier@gentoo.org>2004-05-11 13:02:05 +0000
commitabacfbdbcfe52e65dd6eb7aaf1e66328e69ced1d (patch)
tree63f46f0da342b4511abce8e475a4b92b3c46b91c /eclass
parentrepoman details (diff)
downloadgentoo-2-abacfbdbcfe52e65dd6eb7aaf1e66328e69ced1d.tar.gz
gentoo-2-abacfbdbcfe52e65dd6eb7aaf1e66328e69ced1d.tar.bz2
gentoo-2-abacfbdbcfe52e65dd6eb7aaf1e66328e69ced1d.zip
change use syntax to the right form
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass8
-rw-r--r--eclass/games-q3mod.eclass4
-rw-r--r--eclass/gnome2.eclass6
-rw-r--r--eclass/gst-plugins.eclass4
-rw-r--r--eclass/java.eclass5
-rw-r--r--eclass/kde.eclass4
-rw-r--r--eclass/selinux-policy.eclass4
7 files changed, 17 insertions, 18 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index f5bd2024eb98..3008bfeb9e0a 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.48 2004/05/06 02:36:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.49 2004/05/11 13:02:05 vapier Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -183,8 +183,8 @@ strip-flags() {
local NEW_CXXFLAGS=""
# Allow unstable C[XX]FLAGS if we are using unstable profile ...
- if [ `has ~${ARCH} ${ACCEPT_KEYWORDS}` ] ; then
- [ `use debug` ] && einfo "Enabling the use of some unstable flags"
+ if has ~${ARCH} ${ACCEPT_KEYWORDS} ; then
+ use debug && einfo "Enabling the use of some unstable flags"
ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}"
fi
@@ -226,7 +226,7 @@ strip-flags() {
set +f
- [ `use debug` ] \
+ use debug \
&& einfo "CFLAGS=\"${NEW_CFLAGS}\"" \
&& einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\""
diff --git a/eclass/games-q3mod.eclass b/eclass/games-q3mod.eclass
index c5ae978b97fa..e4b47202e47b 100644
--- a/eclass/games-q3mod.eclass
+++ b/eclass/games-q3mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-q3mod.eclass,v 1.18 2004/02/03 00:01:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-q3mod.eclass,v 1.19 2004/05/11 13:02:05 vapier Exp $
inherit games
@@ -75,7 +75,7 @@ games-q3mod_pkg_postinst() {
einfo "To play this mod: quake3-${MOD_BINS}"
einfo "To launch a dedicated server: q3${MOD_BINS}-ded"
- [ `use dedicated` ] && \
+ use dedicated && \
einfo "To launch server at startup: /etc/init.d/q3${MOD_NAME}-ded"
games_pkg_postinst
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index 36b5ca04ff3b..00e55a4943bb 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -1,13 +1,13 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.40 2004/04/09 18:46:57 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.41 2004/05/11 13:02:05 vapier Exp $
#
# Authors:
# Bruce A. Locke <blocke@shivan.org>
# Spidler <spider@gentoo.org>
inherit libtool gnome.org
-[ `use debug` ] && inherit debug
+use debug && inherit debug
# Gnome 2 ECLASS
ECLASS="gnome2"
@@ -18,7 +18,7 @@ ELTCONF="" # extra options passed to elibtoolize
SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall
-[ `use debug` ] && G2CONF="${G2CONF} --enable-debug=yes"
+use debug && G2CONF="${G2CONF} --enable-debug=yes"
DEPEND="${DEPEND} >=sys-apps/sed-4"
diff --git a/eclass/gst-plugins.eclass b/eclass/gst-plugins.eclass
index 9ed7fac9e41a..fb332c1a93ed 100644
--- a/eclass/gst-plugins.eclass
+++ b/eclass/gst-plugins.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins.eclass,v 1.13 2004/05/01 12:11:11 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins.eclass,v 1.14 2004/05/11 13:02:05 vapier Exp $
# Author : foser <foser@gentoo.org>
@@ -18,7 +18,7 @@ ECLASS="gst-plugins"
INHERITED="$INHERITED $ECLASS"
inherit libtool
-[ `use debug` ] && inherit debug
+use debug && inherit debug
###
# variable declarations
diff --git a/eclass/java.eclass b/eclass/java.eclass
index 7ca0387da855..868fcfd6b448 100644
--- a/eclass/java.eclass
+++ b/eclass/java.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.15 2003/12/23 16:51:44 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.16 2004/05/11 13:02:05 vapier Exp $
#
# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
@@ -84,9 +84,8 @@ install_mozilla_plugin() {
local bn
bn=`basename $1`
- if [ "`use mozilla`" ] ; then
+ if use mozilla ; then
dodir /usr/lib/mozilla/plugins
dosym $1 /usr/lib/mozilla/plugins/${bn}
fi
}
-
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 470bc17cce70..3ab7d4cb41d2 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.96 2004/05/05 14:48:35 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.97 2004/05/11 13:02:05 vapier Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -83,7 +83,7 @@ kde_src_compile() {
myconf="$myconf --host=${CHOST} --prefix=${PREFIX} --with-x --enable-mitshm --with-xinerama --with-qt-dir=${QTDIR} --enable-mt"
# calculate dependencies separately from compiling, enables ccache to work on kde compiles
[ -z "$UNSERMAKE" ] && myconf="$myconf --disable-dependency-tracking"
- if [ `use debug` ]; then
+ if use debug ; then
myconf="$myconf --enable-debug=full --with-debug"
else
myconf="$myconf --disable-debug --without-debug"
diff --git a/eclass/selinux-policy.eclass b/eclass/selinux-policy.eclass
index c4e6403c40ed..dd22673557f5 100644
--- a/eclass/selinux-policy.eclass
+++ b/eclass/selinux-policy.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy.eclass,v 1.8 2004/04/11 05:46:09 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy.eclass,v 1.9 2004/05/11 13:02:05 vapier Exp $
# Eclass for installing SELinux policy, and optionally
# reloading the policy
@@ -62,7 +62,7 @@ selinux-policy_src_install() {
}
selinux-policy_pkg_postinst() {
- if [ "`has "loadpolicy" $FEATURES`" ]; then
+ if has "loadpolicy" $FEATURES ; then
ebegin "Automatically loading policy"
make -C ${POLICYDIR} load
eend $?