summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-07-11 15:08:07 +0000
committerSven Wegener <swegener@gentoo.org>2005-07-11 15:08:07 +0000
commit5ae303cb909c12d4905541dd2b1352e4cedb12a5 (patch)
treee613101366ec6305dbb6b6150d8dc0cf461f8b4c /eclass/gtk-engines2.eclass
parentUpdate to support selinux USE flag (blame spb). (diff)
downloadgentoo-2-5ae303cb909c12d4905541dd2b1352e4cedb12a5.tar.gz
gentoo-2-5ae303cb909c12d4905541dd2b1352e4cedb12a5.tar.bz2
gentoo-2-5ae303cb909c12d4905541dd2b1352e4cedb12a5.zip
QA: Apply whitespace checks from repoman to eclasses.
Diffstat (limited to 'eclass/gtk-engines2.eclass')
-rw-r--r--eclass/gtk-engines2.eclass27
1 files changed, 13 insertions, 14 deletions
diff --git a/eclass/gtk-engines2.eclass b/eclass/gtk-engines2.eclass
index ae4d62221a41..cf3628a1b2e2 100644
--- a/eclass/gtk-engines2.eclass
+++ b/eclass/gtk-engines2.eclass
@@ -1,9 +1,9 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines2.eclass,v 1.11 2005/07/06 20:23:20 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines2.eclass,v 1.12 2005/07/11 15:08:06 swegener Exp $
# Author: Alastair Tse <liquidx@gentoo.org>
-#
+#
# This is a utility eclass for installing GTK+ Theme Engines. It detects
# whether gtk+-1 and/or gtk+-2 is installed and sets up variables to help with
# installing the engines into the right position.
@@ -17,11 +17,11 @@
# *** NOTE *** If your engine has both GTK+1 and GTK+2 versions :
#
# Set the following variables if they are in different directories:
-#
+#
# GTK1_S -- GTK+1 Source Directory
# GTK2_S -- GTK+2 Source Directory
#
-# Also note you should not set DEPEND and let the eclass set the dependencies
+# Also note you should not set DEPEND and let the eclass set the dependencies
#
# Comments:
#
@@ -33,12 +33,12 @@
# in this case. We install the whole package of themes available, both
# GTK+1 and GTK+2 if available. We assume that the user would want both
# since the space savings are negligible.
-#
+#
# Note that this deals specifically with GTK ENGINES and not GTK THEMES. Some
# engines have themes that accompany them, and they are thus installed. You
# should not be using this eclass (it won't help anyway) if you are making
# a pure GTK+ theme ebuild.
-#
+#
# - liquidx@gentoo.org (16 Jun 2003)
inherit eutils
@@ -52,7 +52,7 @@ HOMEPAGE="http://art.gnome.org/ http://themes.freshmeat.net/"
if has_version "=x11-libs/gtk+-1.2*"; then
HAS_GTK1=1
GTK1_ENGINES_DIR=/usr/$(get_libdir)/gtk/themes/engines
-fi
+fi
if has_version ">=x11-libs/gtk+-2" || use gtk2; then
HAS_GTK2=1
@@ -79,14 +79,14 @@ if ! has_version "x11-libs/gtk+"; then
use gtk2 \
&& HAS_GTK2=1 \
|| HAS_GTK1=1
-fi
+fi
# --- if GTK1_S and GTK2_S is set, then we do both themes,
# --- otherwise, just do the normal src_compile/install wrap.
gtk-engines2_src_compile() {
-
- if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
+
+ if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
if [ -n "${HAS_GTK2}" ]; then
cd ${GTK2_S}
econf || die "gtk2 configure failed"
@@ -108,7 +108,7 @@ DEFAULT_DOCS="COPYING README NEWS AUTHORS ChangeLog INSTALL"
gtk-engines2_src_install() {
- if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
+ if [ -n "${GTK2_S}" -a -n "${GTK1_S}" ]; then
if [ -n "${HAS_GTK2}" ]; then
cd ${GTK2_S}
make DESTDIR=${D} install || die "gtk2 install failed"
@@ -121,14 +121,13 @@ gtk-engines2_src_install() {
make DESTDIR=${D} install || die "gtk1 install failed"
for x in ${DEFAULT_DOCS} ${DOCS}; do
newdoc ${x} ${x}.gtk1
- done
+ done
fi
else
cd ${S}
make DESTDIR=${D} ${@} install || die "install failed"
dodoc ${DEFAULT_DOCS} ${DOCS}
- fi
+ fi
}
EXPORT_FUNCTIONS src_compile src_install
-