summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-02-04 06:02:08 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-02-04 06:02:08 +0000
commit6f290c3e8d914bfb56f9eedf176e9be6d712eaad (patch)
treed49518536dda7f9396b809c08b88edc69d175eb7 /app-emulation/spim
parentupdated the new version, left the patches intact (diff)
downloadgentoo-2-6f290c3e8d914bfb56f9eedf176e9be6d712eaad.tar.gz
gentoo-2-6f290c3e8d914bfb56f9eedf176e9be6d712eaad.tar.bz2
gentoo-2-6f290c3e8d914bfb56f9eedf176e9be6d712eaad.zip
new unstable packages.
Diffstat (limited to 'app-emulation/spim')
-rw-r--r--app-emulation/spim/ChangeLog11
-rw-r--r--app-emulation/spim/files/digest-spim-6.51
-rw-r--r--app-emulation/spim/spim-6.5.ebuild48
3 files changed, 60 insertions, 0 deletions
diff --git a/app-emulation/spim/ChangeLog b/app-emulation/spim/ChangeLog
new file mode 100644
index 000000000000..48519ffd86ab
--- /dev/null
+++ b/app-emulation/spim/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emulation/spim
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/ChangeLog,v 1.1 2003/02/04 06:02:08 lostlogic Exp $
+
+*spim-6.5 (04 Feb 2003)
+
+ 04 Feb 2003; Brandon Low <lostlogic@gentoo.org> spim-6.5.ebuild,
+ files/digest-spim-6.5, ChangeLog:
+
+ New package added to unstable, spim MIPS simulator. I use it
+ for school, maybe you will too.
diff --git a/app-emulation/spim/files/digest-spim-6.5 b/app-emulation/spim/files/digest-spim-6.5
new file mode 100644
index 000000000000..0a898f37eaea
--- /dev/null
+++ b/app-emulation/spim/files/digest-spim-6.5
@@ -0,0 +1 @@
+MD5 be9cf6ff2798e507736d05eb5c70914f spim.tar.gz 444075
diff --git a/app-emulation/spim/spim-6.5.ebuild b/app-emulation/spim/spim-6.5.ebuild
new file mode 100644
index 000000000000..533380fb8b59
--- /dev/null
+++ b/app-emulation/spim/spim-6.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/spim-6.5.ebuild,v 1.1 2003/02/04 06:02:08 lostlogic Exp $
+
+IUSE="X"
+
+HOMEPAGE="http://www.cs.wisc.edu/~larus/spim.html"
+SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz"
+DESCRIPTION="MIPS Simulator"
+SLOT="0"
+KEYWORDS="~x86"
+LICENSE="as-is"
+S=${WORKDIR}/${P}
+
+src_compile() {
+ pwd -P
+ ./Configure || die "Configure script failed"
+
+ sed -e "s:\(BIN_DIR = \).*$:\1/usr/bin:" \
+ -e "s:\(MAN_DIR = \).*$:\1/usr/share/bin:" \
+ -e "s:\(TRAP_DIR = \).*$:\1/usr/sbin:" \
+ Makefile > Makefile.comp
+ cp Makefile.comp Makefile
+
+ make ${MAKEOPTS} spim || die "make spim failed"
+ [ `use X` ] && make ${MAKEOPTS} xspim || die "make xspim failed"
+}
+
+src_install() {
+ sed -e "s:\(BIN_DIR = \).*$:\1${D}usr/bin:" \
+ -e "s:\(MAN_DIR = \).*$:\1${D}usr/share/bin:" \
+ -e "s:\(TRAP_DIR = \).*$:\1${D}usr/sbin:" \
+ Makefile > Makefile.inst
+ cp Makefile.inst Makefile
+
+ dodir /usr/sbin
+
+ dodoc BLURB README VERSION CangeLog Documentation/*
+
+ make install || die "Install failed"
+}
+
+pkg_postinst() {
+ cd ${S}
+ cp Makefile.comp Makefile
+ make test || die "Test failed"
+
+}