diff options
author | 2010-08-14 01:46:25 +0000 | |
---|---|---|
committer | 2010-08-14 01:46:25 +0000 | |
commit | 4ce8c3d73fdd5a85c7823977119e0e5026cc5e68 (patch) | |
tree | 2feec33ddeb14d2a55c506f413c5557bd8fa4865 /app-emulation/spim/spim-8.0-r1.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-4ce8c3d73fdd5a85c7823977119e0e5026cc5e68.tar.gz gentoo-2-4ce8c3d73fdd5a85c7823977119e0e5026cc5e68.tar.bz2 gentoo-2-4ce8c3d73fdd5a85c7823977119e0e5026cc5e68.zip |
Version bump and ebuild improvements. Fix bug 330389.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/spim/spim-8.0-r1.ebuild')
-rw-r--r-- | app-emulation/spim/spim-8.0-r1.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app-emulation/spim/spim-8.0-r1.ebuild b/app-emulation/spim/spim-8.0-r1.ebuild new file mode 100644 index 000000000000..2899728ed770 --- /dev/null +++ b/app-emulation/spim/spim-8.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/spim-8.0-r1.ebuild,v 1.1 2010/08/14 01:46:25 ricmm Exp $ + +EAPI=3 + +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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc X" + +RDEPEND="X? ( media-fonts/font-adobe-100dpi + x11-libs/libXaw + x11-libs/libXp )" +DEPEND="${RDEPEND} + X? ( x11-misc/imake + x11-proto/xproto ) + >=sys-apps/sed-4 + sys-devel/bison" + +src_prepare() { + # fix bugs 240005 and 243588 + epatch "${FILESDIR}/${PF}-respect_env.patch" + + #fix bug 330389 + sed -i -e 's:-12-\*-75-:-14-\*-100-:g' xspim/xspim.c || die +} + +src_configure() { + tc-export CC + emake -C spim configuration || die + + if use X; then + emake -C xspim configuration || die + fi +} + +src_compile() { + emake DESTDIR="${EPREFIX}" -C spim || die + + if use X; then + emake DESTDIR="${EPREFIX}" EXCEPTION_DIR=/var/lib/spim \ + -C xspim -j1 xspim || die + fi +} + +src_install() { + emake DESTDIR="${ED}" -C spim install || die + newman Documentation/spim.man spim.1 || die + + if use X; then + emake DESTDIR="${ED}" -C xspim install || die + newman Documentation/xspim.man xspim.1 || die + fi + + doicon "${FILESDIR}"/xspim.svg || die + make_desktop_entry xspim xSPIM xspim "ComputerScience;Science;Education" \ + "Comment=Graphical MIPS32 Assembly language emulator" + + dohtml Documentation/SPIM.html || die + dodoc ChangeLog Documentation/BLURB README VERSION || die + if use doc ; then + dodoc Documentation/TeX/{cycle,spim}.ps || die + fi +} + +src_test() { + emake -C spim test || die +} |