summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-03-27 22:33:54 +0000
committerDan Armak <danarmak@gentoo.org>2002-03-27 22:33:54 +0000
commit91171ee6f7a497827e45c4a0303d5cffb4ca0a77 (patch)
tree6874f956ec58d00e8a999feed54bf2b94c58e2bc /eclass/kde.eclass
parentman page/LFH fixes (diff)
downloadgentoo-2-91171ee6f7a497827e45c4a0303d5cffb4ca0a77.tar.gz
gentoo-2-91171ee6f7a497827e45c4a0303d5cffb4ca0a77.tar.bz2
gentoo-2-91171ee6f7a497827e45c4a0303d5cffb4ca0a77.zip
big commit that makes eclasses work wth both old portages (1.8.8, rc6 profile) and the new ones
(>=1.8.9_pre32, 1.0 profile). the latter have some parts of the eclasses in ebuild.sh. Now i ahve a unified code base and commit changes easily.
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r--eclass/kde.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 54073705783a..e56f6fb97f8e 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,9 +1,9 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.42 2002/03/07 17:54:47 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.43 2002/03/27 22:33:53 danarmak Exp $
# The kde eclass is inherited by all kde-* eclasses. Few ebuilds inherit straight from here.
-inherit base
+inherit base kde-functions
ECLASS=kde
newdepend /autotools
@@ -15,6 +15,8 @@ kde_src_compile() {
debug-print-function $FUNCNAME $*
[ -z "$1" ] && kde_src_compile all
+
+ cd ${S}
while [ "$1" ]; do
@@ -69,6 +71,8 @@ kde_src_install() {
debug-print-function $FUNCNAME $*
[ -z "$1" ] && kde_src_install all
+ cd ${S}
+
while [ "$1" ]; do
case $1 in
@@ -111,7 +115,9 @@ kde_sandbox_patch() {
[ -f "$x" ] && \
cp $x ${x}.orig && \
sed -e 's: $(bindir): $(DESTDIR)/$(bindir):g' ${x}.orig > ${x} && \
- rm ${x}.orig
+ rm ${x}.orig
+ sed -e 's: $(kde_datadir): $(DESTDIR)/$(kde_datadir):g' ${x}.orig > ${x} && \
+ rm ${x}.orig
done
shift
done