summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-01-26 12:14:38 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-01-26 12:14:38 +0000
commit630a9303b2e92e23149e59a908c3b8fe541f4e48 (patch)
tree0502d435e042cd6f42a0bb1cdf18e38afd3e7848 /eclass
parentChange Makefile.am and not Makefile.in as we have to re-run autotools anyway. (diff)
downloadgentoo-2-630a9303b2e92e23149e59a908c3b8fe541f4e48.tar.gz
gentoo-2-630a9303b2e92e23149e59a908c3b8fe541f4e48.tar.bz2
gentoo-2-630a9303b2e92e23149e59a908c3b8fe541f4e48.zip
Check that ${PREFIX} is non-empty before using it.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 6627c0ff19ce..4dc974a43d8e 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.142 2006/01/24 14:21:05 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.143 2006/01/26 12:14:38 flameeyes Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -144,7 +144,7 @@ kde_src_compile() {
# If we're in a kde-base ebuild, set the prefixed directories to
# override the ones set by econf.
- if [[ ${PREFIX} != "/usr" ]]; then
+ if [[ -n ${PREFIX} && ${PREFIX} != "/usr" ]]; then
myconf="${myconf} --prefix=${PREFIX}
--mandir=${PREFIX}/share/man
--infodir=${PREFIX}/share/info