summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-05-04 18:37:56 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-05-04 18:37:56 +0000
commite051c99e4659afb6b1f42c8359b10abcf1d15964 (patch)
tree03a0022856375dd6b18121d17e3c4b6ad078cc4c /eclass
parentcleanup (diff)
downloadgentoo-2-e051c99e4659afb6b1f42c8359b10abcf1d15964.tar.gz
gentoo-2-e051c99e4659afb6b1f42c8359b10abcf1d15964.tar.bz2
gentoo-2-e051c99e4659afb6b1f42c8359b10abcf1d15964.zip
added gnome2_omf_fix(). fixes omf makefiles to speed up docs compilation.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnome2.eclass24
1 files changed, 23 insertions, 1 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index 2da132e3c4d2..d0d9252504e4 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.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/gnome2.eclass,v 1.31 2003/04/17 23:13:32 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.32 2003/05/04 18:37:56 liquidx Exp $
#
# Authors:
# Bruce A. Locke <blocke@shivan.org>
@@ -89,6 +89,28 @@ gnome2_gconf_install() {
fi
}
+gnome2_omf_fix() {
+ # workaround/patch against omf.make or omf-install/Makefile.in
+ # in order to remove redundant scrollkeeper-updates.
+ # - <liquidx@gentoo.org>
+
+ local omf_makefiles
+
+ omf_makefiles="$@"
+
+ [ -f ${S}/omf-install/Makefile.in ] \
+ && omf_makefiles="${omf_makefiles} ${S}/omf-install/Makefile.in"
+ [ -f ${S}/omf.make ] \
+ && omf_makefiles="${omf_makefiles} ${S}/omf.make"
+
+ for omf in ${omf_makefiles}; do
+ omfbase=$(basename ${omf})
+ einfo "Fixing OMF Makefile: ${omfbase}"
+ sed -i -e 's:\(-scrollkeeper-update -p $(localstatedir)/scrollkeeper\)\([\s\\]*\)$:\1 -o $(DESTDIR)$(omf_dest_dir)\2:' ${omf}
+ sed -i -e 's:\(-scrollkeeper-update -p $(scrollkeeper_localstate_dir)\)\([\s\\]*\)$:\1 -o $(DESTDIR)$(omf_dest_dir)\2:' ${omf}
+ done
+}
+
gnome2_scrollkeeper_update() {
if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ "${SCROLLKEEPER_UPDATE}" = "1" ]
then