1 |
commit: f0ae2e3b62c5fdcb8744ad258030550faf1849b3 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 1 18:21:02 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 1 18:28:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ae2e3b |
7 |
|
8 |
app-emulation/spim: x11-libs/libXp is not really needed |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-emulation/spim/spim-8.0-r3.ebuild | 78 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 78 insertions(+) |
14 |
|
15 |
diff --git a/app-emulation/spim/spim-8.0-r3.ebuild b/app-emulation/spim/spim-8.0-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..9fe7e6643e1 |
18 |
--- /dev/null |
19 |
+++ b/app-emulation/spim/spim-8.0-r3.ebuild |
20 |
@@ -0,0 +1,78 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit toolchain-funcs |
26 |
+ |
27 |
+DESCRIPTION="MIPS Simulator" |
28 |
+HOMEPAGE="http://spimsimulator.sourceforge.net/" |
29 |
+SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="BSD" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
34 |
+IUSE="doc X" |
35 |
+ |
36 |
+RDEPEND=" |
37 |
+ X? ( |
38 |
+ media-fonts/font-adobe-100dpi |
39 |
+ x11-libs/libXaw ) |
40 |
+" |
41 |
+DEPEND="${RDEPEND} |
42 |
+ X? ( x11-misc/imake |
43 |
+ x11-proto/xproto ) |
44 |
+ sys-devel/bison |
45 |
+" |
46 |
+# test hangs forever, disabling it |
47 |
+RESTRICT="test" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ # fix bugs 240005 and 243588 |
51 |
+ eapply "${FILESDIR}/${P}-r1-respect_env.patch" |
52 |
+ |
53 |
+ #fix bug 330389 |
54 |
+ sed -i -e 's:-12-\*-75-:-14-\*-100-:g' xspim/xspim.c || die |
55 |
+ |
56 |
+ default |
57 |
+} |
58 |
+ |
59 |
+src_configure() { |
60 |
+ tc-export CC |
61 |
+ emake -C spim configuration |
62 |
+ |
63 |
+ if use X; then |
64 |
+ emake -C xspim configuration |
65 |
+ fi |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ emake DESTDIR="${EPREFIX}" -C spim |
70 |
+ |
71 |
+ if use X; then |
72 |
+ emake DESTDIR="${EPREFIX}" EXCEPTION_DIR=/var/lib/spim \ |
73 |
+ -C xspim -j1 xspim |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ emake DESTDIR="${ED}" -C spim install |
79 |
+ newman Documentation/spim.man spim.1 |
80 |
+ |
81 |
+ if use X; then |
82 |
+ emake DESTDIR="${ED}" -C xspim install |
83 |
+ newman Documentation/xspim.man xspim.1 |
84 |
+ fi |
85 |
+ |
86 |
+ doicon "${FILESDIR}"/xspim.svg |
87 |
+ make_desktop_entry xspim xSPIM xspim "ComputerScience;Science;Education" |
88 |
+ |
89 |
+ dodoc Documentation/SPIM.html |
90 |
+ dodoc ChangeLog Documentation/BLURB README VERSION |
91 |
+ if use doc ; then |
92 |
+ dodoc Documentation/TeX/{cycle,spim}.ps |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+src_test() { |
97 |
+ emake -C spim test |
98 |
+} |