* [gentoo-commits] repo/gentoo:master commit in: app-emulation/spim/, app-emulation/spim/files/
@ 2017-06-11 15:16 Andreas Hüttel
0 siblings, 0 replies; only message in thread
From: Andreas Hüttel @ 2017-06-11 15:16 UTC (permalink / raw
To: gentoo-commits
commit: cf64b2b19c3e1c49e58a24981d347e17c17ef81a
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 11 15:03:55 2017 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Jun 11 15:15:04 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf64b2b1
app-emulation/spim: EAPI bump
Package-Manager: Portage-2.3.6, Repoman-2.3.2
.../spim/files/spim-8.0-r1-respect_env.patch | 8 +--
app-emulation/spim/spim-8.0-r2.ebuild | 77 ++++++++++++++++++++++
2 files changed, 81 insertions(+), 4 deletions(-)
diff --git a/app-emulation/spim/files/spim-8.0-r1-respect_env.patch b/app-emulation/spim/files/spim-8.0-r1-respect_env.patch
index c7c8925c4e5..2d2ca0cf0f3 100644
--- a/app-emulation/spim/files/spim-8.0-r1-respect_env.patch
+++ b/app-emulation/spim/files/spim-8.0-r1-respect_env.patch
@@ -1,5 +1,5 @@
---- spim/Makefile 2010-08-01 22:14:53.352906061 +0200
-+++ spim/Makefile 2010-08-01 22:15:00.994905920 +0200
+--- a/spim/Makefile 2010-08-01 22:14:53.352906061 +0200
++++ b/spim/Makefile 2010-08-01 22:15:00.994905920 +0200
@@ -66,13 +66,13 @@
@@ -92,8 +92,8 @@
very-clean: clean
rm -f configuration
---- xspim/Makefile 2010-08-01 22:14:53.351905921 +0200
-+++ xspim/Makefile 2010-08-01 22:26:08.361917058 +0200
+--- a/xspim/Makefile 2010-08-01 22:14:53.351905921 +0200
++++ b/xspim/Makefile 2010-08-01 22:26:08.361917058 +0200
@@ -169,18 +169,18 @@
VARDBDIR = $(VARDIR)/lib
diff --git a/app-emulation/spim/spim-8.0-r2.ebuild b/app-emulation/spim/spim-8.0-r2.ebuild
new file mode 100644
index 00000000000..4b8e0b1872d
--- /dev/null
+++ b/app-emulation/spim/spim-8.0-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="MIPS Simulator"
+HOMEPAGE="http://spimsimulator.sourceforge.net/"
+SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/${P}.tar.gz"
+
+LICENSE="BSD"
+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"
+# test hangs forever, disabling it
+RESTRICT="test"
+
+src_prepare() {
+ # fix bugs 240005 and 243588
+ eapply "${FILESDIR}/${P}-r1-respect_env.patch"
+
+ #fix bug 330389
+ sed -i -e 's:-12-\*-75-:-14-\*-100-:g' xspim/xspim.c || die
+
+ default
+}
+
+src_configure() {
+ tc-export CC
+ emake -C spim configuration
+
+ if use X; then
+ emake -C xspim configuration
+ fi
+}
+
+src_compile() {
+ emake DESTDIR="${EPREFIX}" -C spim
+
+ if use X; then
+ emake DESTDIR="${EPREFIX}" EXCEPTION_DIR=/var/lib/spim \
+ -C xspim -j1 xspim
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${ED}" -C spim install
+ newman Documentation/spim.man spim.1
+
+ if use X; then
+ emake DESTDIR="${ED}" -C xspim install
+ newman Documentation/xspim.man xspim.1
+ fi
+
+ doicon "${FILESDIR}"/xspim.svg
+ make_desktop_entry xspim xSPIM xspim "ComputerScience;Science;Education"
+
+ dodoc Documentation/SPIM.html
+ dodoc ChangeLog Documentation/BLURB README VERSION
+ if use doc ; then
+ dodoc Documentation/TeX/{cycle,spim}.ps
+ fi
+}
+
+src_test() {
+ emake -C spim test
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-11 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-11 15:16 [gentoo-commits] repo/gentoo:master commit in: app-emulation/spim/, app-emulation/spim/files/ Andreas Hüttel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox