summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r--eclass/kde.eclass34
1 files changed, 33 insertions, 1 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 33d6f5f26edc..dbdd481c904f 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,7 +1,7 @@
# 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.35 2002/01/10 20:41:29 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.36 2002/01/17 18:59:22 danarmak Exp $
# The kde eclass is inherited by all kde-* eclasses. Few ebuilds inherit straight from here.
inherit autoconf base kde-dirs
ECLASS=kde
@@ -93,3 +93,35 @@ kde_src_install() {
EXPORT_FUNCTIONS src_compile src_install
+# generic makefile sed for sandbox compatibility. for some reason when the kde makefiles (of many packages
+# and versions) try to chown root and chmod 4755 some binaries (after installing, target isntall-exec-local),
+# they do it to the files in $(bindir), not $(DESTDIR)/$(bindir). I'll file a bugreport on bugs.kde.org.
+
+# Pass a list of dirs to sed, Makefile.{am,in} in these dirs will be sed'ed.
+# This should be harmless if the makefile doesn't need fixing.
+kde_sandbox_patch() {
+
+ debug-print-function $FUNCNAME $*
+
+ while [ -n "$1" ]; do
+ # can't use dosed, because it only works for things in ${D}, not ${S}
+ cd $1
+ for x in Makefile.{am,in}
+ do
+ cp $x ${x}.orig
+ sed -e 's: $(bindir): $(DESTDIR)/$(bindir):g' ${x}.orig > ${x}
+ rm ${x}.orig
+ done
+ shift
+ done
+
+}
+
+
+
+
+
+
+
+
+