summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-12-01 15:02:31 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-12-01 15:02:31 +0000
commit0680b455e3cec7149bc6174ea9ccdc830f756b1b (patch)
treecbb68b2c72fabc534904e896b2dac3449c4664af
parentNew version and 1.0.1 stable x86 (diff)
downloadhistorical-0680b455e3cec7149bc6174ea9ccdc830f756b1b.tar.gz
historical-0680b455e3cec7149bc6174ea9ccdc830f756b1b.tar.bz2
historical-0680b455e3cec7149bc6174ea9ccdc830f756b1b.zip
added motif eclass
-rw-r--r--eclass/motif.eclass24
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/motif.eclass b/eclass/motif.eclass
new file mode 100644
index 000000000000..cfef61f48193
--- /dev/null
+++ b/eclass/motif.eclass
@@ -0,0 +1,24 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/motif.eclass,v 1.1 2003/12/01 15:02:31 lanius Exp $
+#
+# Heinrich Wednel <lanius@gentoo.org>
+
+ECLASS=motif
+INHERITED="$INHERITED $ECLASS"
+DEPEND="${DEPEND} >=sys-apps/sed-4"
+
+# Fix all headers to version ${1}
+motif_fix_headers() {
+ VERSION=${1}
+
+ MATCHES="$(grep -l -i -R -e "#include <Xm" -e "#include <Mrm" -e "#include <uil" * | sort -u)"
+
+ for i in ${MATCHES}
+ do
+ sed -i -e "s:#include <Xm:#include <Xm/${VERSION}/Xm:g" \
+ -e "s:#include <Mrm:#include <Mrm/${VERSION}/Mrm:g" \
+ -e "s:#include <uil:#include <uil/${VERSION}/uil:g" \
+ ${i}
+ done
+}