diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2006-10-15 23:23:38 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2006-10-15 23:23:38 +0000 |
commit | d7abe279196ee0f852b088e8dd1128a7ad22a7b5 (patch) | |
tree | 94540b8bc74e93770b9dcc85b124b07b8bfedf66 /app-emulation/spim | |
parent | fix #150640 and new version. (diff) | |
download | gentoo-2-d7abe279196ee0f852b088e8dd1128a7ad22a7b5.tar.gz gentoo-2-d7abe279196ee0f852b088e8dd1128a7ad22a7b5.tar.bz2 gentoo-2-d7abe279196ee0f852b088e8dd1128a7ad22a7b5.zip |
version bump from usptream
(Portage version: 2.1.2_pre3-r1)
Diffstat (limited to 'app-emulation/spim')
-rw-r--r-- | app-emulation/spim/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/spim/files/23spim | 1 | ||||
-rw-r--r-- | app-emulation/spim/files/digest-spim-7.3 | 3 | ||||
-rw-r--r-- | app-emulation/spim/spim-7.3.ebuild | 98 |
4 files changed, 108 insertions, 1 deletions
diff --git a/app-emulation/spim/ChangeLog b/app-emulation/spim/ChangeLog index 36b710418e75..54871b758420 100644 --- a/app-emulation/spim/ChangeLog +++ b/app-emulation/spim/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/spim # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/ChangeLog,v 1.37 2006/10/10 00:50:09 jhuebel Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/ChangeLog,v 1.38 2006/10/15 23:23:38 compnerd Exp $ + +*spim-7.3 (15 Oct 2006) + + 15 Oct 2006; <compnerd@gentoo.org> +files/23spim, +spim-7.3.ebuild: + version bump from upstream 10 Oct 2006; Jason Huebel <jhuebel@gentoo.org> spim-7.2.1-r3.ebuild: stable on amd64 diff --git a/app-emulation/spim/files/23spim b/app-emulation/spim/files/23spim new file mode 100644 index 000000000000..4bcc8cb1ceaf --- /dev/null +++ b/app-emulation/spim/files/23spim @@ -0,0 +1 @@ +SPIM_EXCEPTION_HANDLER=/var/lib/spim/exceptions.s diff --git a/app-emulation/spim/files/digest-spim-7.3 b/app-emulation/spim/files/digest-spim-7.3 new file mode 100644 index 000000000000..ad750a33a9d0 --- /dev/null +++ b/app-emulation/spim/files/digest-spim-7.3 @@ -0,0 +1,3 @@ +MD5 52002170982d157fd89d445b481bd223 spim-7.3.tar.gz 347226 +RMD160 f87116820755ff76087889bbd0f39eaacbce201a spim-7.3.tar.gz 347226 +SHA256 d7de06135c519108055a90abe77ced4e36dec4f7f27ce1a2fca0059f86cdf35d spim-7.3.tar.gz 347226 diff --git a/app-emulation/spim/spim-7.3.ebuild b/app-emulation/spim/spim-7.3.ebuild new file mode 100644 index 000000000000..8d7c80c07847 --- /dev/null +++ b/app-emulation/spim/spim-7.3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/spim-7.3.ebuild,v 1.1 2006/10/15 23:23:38 compnerd Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="MIPS Simulator" +HOMEPAGE="http://www.cs.wisc.edu/~larus/spim.html" +SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc-macos ~sparc ~x86" +IUSE="X" + +RDEPEND="X? ( || ( ( x11-libs/libXaw x11-libs/libXp ) virtual/x11 ) )" +DEPEND="${RDEPEND} + X? ( || ( ( x11-misc/imake x11-proto/xproto ) virtual/x11 ) ) + >=sys-apps/sed-4 + sys-devel/bison" + +src_unpack() { + unpack ${A} + cd ${S} + + # Fix documentation files + cd ${S}/Documentation + mv spim.man spim.1 + mv xspim.man xspim.1 +} + +src_compile() { + cd ${S}/spim + + ./Configure || die "Configure Failed!" + + sed -i \ + -e 's:@make:@$(MAKE):' \ + -e 's:\(BIN_DIR = \).*$:\1\$(DESTDIR)/usr/bin:' \ + -e 's:\(MAN_DIR = \).*$:\1\$(DESTDIR)/usr/share/man:' \ + -e 's:\(EXCEPTION_DIR = \).*$:\1$(DESTDIR)/var/lib/spim:' \ + -e 's:\(^\W*install.*\) exceptions.s \(.*$\):\1 \$(CPU_DIR)/exceptions.s \2:' \ + -e "s:^\W*install.* spim.man .*$::" \ + -e "s:tail -2:tail -n2:" \ + Makefile + + emake CC="$(tc-getCC)" || die + + if use X ; then + cd ${S}/xspim + + ./Configure || die "Configure Failed!" + + xmkmf || die + + sed -i \ + -e 's:@make:@$(MAKE):' \ + -e "s:\(BIN_DIR = \).*$:\1/usr/bin:" \ + -e "s:\(MAN_DIR = \).*$:\1/usr/share/man:" \ + -e "s:\(EXCEPTION_DIR = \).*$:\1/var/lib/spim/exceptions.s:" \ + Makefile + + emake CC="$(tc-getCC)" -j1 xspim || die + fi +} + +src_test() { + cd ${S}/spim + make test || die "Failed to pass tests!" +} + +src_install() { + dodir /usr/bin + dodir /usr/share/man + dodir /var/lib/spim + + cd ${S}/spim + make install DESTDIR="${D}" || die "Unable to install spim" + + if use X ; then + cd ${S}/xspim + make DESTDIR="${D}" install || die "Unable to install xspim" + fi + + cd ${S}/Documentation + doman spim.1 + use X && doman xspim.1 + + dohtml SPIM.html + dodoc BLURB + + cd ${S} + dodoc README VERSION ChangeLog + + # Set the default spim exception handler + insinto /etc/env.d + doins ${FILESDIR}/23spim +} |