summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2003-07-13 17:39:20 +0000
committerGeorge Shapovalov <george@gentoo.org>2003-07-13 17:39:20 +0000
commitac6376c718e0f3b0f01818c3eca3bc88847ebda0 (patch)
tree50689d2f526ee1d55e55f63a2e810a22fd042136 /eclass
parentFix trailing CRs cause patch to fail with latest patch (2.5.9). (diff)
downloadgentoo-2-ac6376c718e0f3b0f01818c3eca3bc88847ebda0.tar.gz
gentoo-2-ac6376c718e0f3b0f01818c3eca3bc88847ebda0.tar.bz2
gentoo-2-ac6376c718e0f3b0f01818c3eca3bc88847ebda0.zip
added gnat.eclass that defines some stuff common to gnat-based ada packages
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnat.eclass44
1 files changed, 44 insertions, 0 deletions
diff --git a/eclass/gnat.eclass b/eclass/gnat.eclass
new file mode 100644
index 000000000000..ef0bf94617a6
--- /dev/null
+++ b/eclass/gnat.eclass
@@ -0,0 +1,44 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v 1.1 2003/07/13 17:39:20 george Exp $
+#
+# Author: David Holm <dholm@telia.com>
+#
+# This eclass contains some common settings for gnat based ada stuff
+# It also strips some flags to bring C[XX]FLAGS in cpmpliance with gcc-2.8.1
+
+ECLASS=gnat
+
+inherit flag-o-matic
+
+INHERITED="$INHERITED $ECLASS"
+
+newdepend dev-lang/gnat
+
+DESCRIPTION="Based on the ${ECLASS} eclass"
+
+#
+# Settings for gnat-3.15p:
+#
+
+ADAC=${ADAC:-gnatgcc}
+ADAMAKE=${ADAMAKE:-gnatmake}
+ADABIND=${ADABIND:-gnatbind}
+
+filter-flags "-mmmx -msse -mfpmath=sse -frename-registers \
+ -fprefetch-loop-arrays -falign-functions=4"
+
+ADACFLAGS=${ADACFLAGS:-${CFLAGS}}
+ADACFLAGS=${ADACFLAGS//pentium-mmx/i586}
+ADACFLAGS=${ADACFLAGS//pentium[234]/i686}
+ADACFLAGS=${ADACFLAGS//k6-[23]/k6}
+ADACFLAGS=${ADACFLAGS//athlon-tbird/i686}
+ADACFLAGS=${ADACFLAGS//athlon-4/i686}
+ADACFLAGS=${ADACFLAGS//athlon-[xm]p/i686}
+ADACFLAGS=${ADACFLAGS//athlon/i686}
+ADACFLAGS=${ADACFLAGS//-Os/-O2}
+
+ADAMAKEFLAGS=${ADAMAKEFLAGS:-"-cargs ${ADACFLAGS} -margs"}
+ADABINDFLAGS=${ADABINDFLAGS:-""}
+
+export ADAC ADACFLAGS ADAMAKE ADAMAKEFLAGS ADABIND ADABINDFLAGS