summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild')
-rw-r--r--dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild b/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild
index 4e968708ddd7..81560051b269 100644
--- a/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild
+++ b/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild
@@ -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/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild,v 1.2 2003/07/17 19:04:36 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild,v 1.3 2003/07/17 19:28:16 vapier Exp $
DESCRIPTION="Critical Mass Modula-3 compiler (binary version)"
HOMEPAGE="http://www.elegosoft.com/cm3/"
@@ -18,15 +18,26 @@ src_unpack() {
unpack ${A}
tar -zxf system.tgz || die "unpacking system.tgz"
+ local TARGET
+ local GNU_PLATFORM
+ case ${ARCH} in
+ x86) TARGET=LINUXLIBC6
+ GNU_PLATFORM=i486--linuxelf
+ ;;
+ ppc) TARGET=PPC_LINUX
+ GNU_PLATFORM=powerpc-apple-linuxelf
+ ;;
+ esac
sed \
+ -e "s:GENTOO_TARGET:${TARGET}:" \
+ -e "s:GENTOO_GNU_PLATFORM:${GNU_PLATFORM}:" \
-e "s:GENTOO_INITIAL_REACTOR_EDITOR:${EDITOR:-/usr/bin/nano}:" \
-e "s:GENTOO_INSTALL_ROOT:/usr/lib/cm3/:" \
-e "s:GENTOO_GNU_CC:${CC:-gcc}:" \
-e "s:GENTOO_GNU_CFLAGS:${CFLAGS:--O}:" \
-e "s:GENTOO_GNU_MAKE:${MAKE:-make}:" \
- ${FILESDIR}/cm3-${ARCH}.cfg > bin/cm3.cfg
- echo "ROOT=\"/usr/lib/cm3/pkg/\"" >> bin/cm3.cfg
- rm -rf doc elisp examples man
+ -e "s:GENTOO_ROOT:/usr/lib/cm3/pkg/:" \
+ ${FILESDIR}/cm3.cfg > bin/cm3.cfg
}
src_install() {