diff options
author | Ricardo Mendoza <ricmm@gentoo.org> | 2010-04-08 18:05:20 +0000 |
---|---|---|
committer | Ricardo Mendoza <ricmm@gentoo.org> | 2010-04-08 18:05:20 +0000 |
commit | f44ba95801e30f082c9c48ef3be572a67d9a9d11 (patch) | |
tree | 6dea53cfc775f22ef4c500e3c82f289b4604dbe2 /app-emulation | |
parent | Update HOMEPAGE. (diff) | |
download | historical-f44ba95801e30f082c9c48ef3be572a67d9a9d11.tar.gz historical-f44ba95801e30f082c9c48ef3be572a67d9a9d11.tar.bz2 historical-f44ba95801e30f082c9c48ef3be572a67d9a9d11.zip |
Version bump. License update.
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/spim/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/spim/Manifest | 15 | ||||
-rw-r--r-- | app-emulation/spim/files/spim-8.0-respect_env.patch | 155 | ||||
-rw-r--r-- | app-emulation/spim/spim-8.0.ebuild | 81 |
4 files changed, 247 insertions, 12 deletions
diff --git a/app-emulation/spim/ChangeLog b/app-emulation/spim/ChangeLog index 39b4e9d6268c..667871fea4cb 100644 --- a/app-emulation/spim/ChangeLog +++ b/app-emulation/spim/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/spim # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/ChangeLog,v 1.50 2010/01/15 02:27:54 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spim/ChangeLog,v 1.51 2010/04/08 18:05:20 ricmm Exp $ + +*spim-8.0 (08 Apr 2010) + + 08 Apr 2010; <ricmm@gentoo.org> +spim-8.0.ebuild, + +files/spim-8.0-respect_env.patch: + Version bump. License changed. 15 Jan 2010; Jonathan Callen <abcd@gentoo.org> spim-7.5.ebuild: Add prefix keywords diff --git a/app-emulation/spim/Manifest b/app-emulation/spim/Manifest index bd7cd07c575b..4745580889df 100644 --- a/app-emulation/spim/Manifest +++ b/app-emulation/spim/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX spim-7.2.1-c99.patch 17070 RMD160 8c1df05fd3788bb0d0787edbbbbfeaf70010f0fe SHA1 4561b508b54e6b0fc22d2c6d99562287fd499edf SHA256 7239c6fbb84308039ee10dc0792a3559a4628cb484081ebc6fb9efb4e31968ae AUX spim-7.2.1-envvar-exception.patch 991 RMD160 59e8c4c2e3bbf536e0087b7d144bfea1ce02af7f SHA1 23b5a39aeb54f2b86d8c01e5d6aabac56c6d0453 SHA256 7a43dc97c06bb2cb842ebf01887f9d3c56597002c6d83d1828011383c1f98978 AUX spim-7.2.1-multiple-exception.patch 2375 RMD160 ffbe4f39c5b3573e1ffd06d6437bd1c7b461ee30 SHA1 fec82ecfbea3764bddbb2baaacecaa2337e33d23 SHA256 ada4a1435a8a366cb5a57538d00554f74ac8148b8c0cc893dfaa369c3ee225d2 @@ -8,21 +5,17 @@ AUX spim-7.2.1-ptrsize.patch 458 RMD160 e33bc1046a1b056f1bba4ce5e6047450b07e7df2 AUX spim-7.2.1-string-handling-fix.patch 1304 RMD160 578b8f45542837b532537474f52c900fcfbd542c SHA1 37b641cb0e7a09f3ba2f0ac4cc4e824a57220611 SHA256 9b95c1a477e56caea6a77f7f448454bdcae74b25615bbef736787e5b58b24562 AUX spim-7.2.1-string-stream.patch 488 RMD160 9a2feddb35766c73cda969cd6311c1e5655dd5f9 SHA1 11f115a5f2a08b58d4d1a011e0bb21a5f1a0a21e SHA256 1d68146570de0ed4aa045b9e134f8f34b558cbaf3d4487ab312b41fd04594e5b AUX spim-7.5-respect_env.patch 5091 RMD160 46ee84a49e838051adb8e6193f37b220a2be7d27 SHA1 0fafde0315cff82aef6da6ed041130fe3ecb12a7 SHA256 6ee202f653971a99b89ab6c3f81b54e2588f9ed86c2918f5cda9556718d6777c +AUX spim-8.0-respect_env.patch 4420 RMD160 aeb983f1432d7238db1d0e7348386a5038ab97e8 SHA1 538b95c453ed56fbb2fb4f9e25cbcc4796dbd20f SHA256 eb1d0499def683b57082dddd823c5628d3f11fa20686e13a13a2372d6985e0c2 DIST spim-7.2.1.tar.gz 534388 RMD160 fa3f57d80ddfc6870f83f4d90d038c30fa79fb74 SHA1 22bcf17df10bbe28b3ee93256763ac7167523aba SHA256 347771fc7f91ba12092b22374ddb377f13c588e6d0d1a0cdacea8bbb76f347fb DIST spim-7.3.tar.gz 347226 RMD160 f87116820755ff76087889bbd0f39eaacbce201a SHA1 630b75ebc9365093e1b3d0c98ca0524f772d8647 SHA256 d7de06135c519108055a90abe77ced4e36dec4f7f27ce1a2fca0059f86cdf35d DIST spim-7.4.tar.gz 358993 RMD160 e134bb9271a65e4324375d4aa5b4f81d4d6b9963 SHA1 7c0772389dc7db54854681bceae432ea0e4c1587 SHA256 abb79a708bc5afaa2f02beea18fb8ad1071264ee1fde75d1e0c439c9c60f19af DIST spim-7.5.tar.gz 359664 RMD160 40c89e8367ff0068315535a1b43e46dfb2c9bf63 SHA1 91a6ec348e66a6856e7a4d0fb7b7c5f924bd1189 SHA256 28b572a15a402f315a61df3d9f581cb83a90fcbc297c9d095a36fbecbf69ecb7 +DIST spim-8.0.tar.gz 355204 RMD160 129e61a6ee2f338abe2eafb175ac16fc0ebd20c7 SHA1 979b91e0acb792310593d31aa65e49cccec73036 SHA256 6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b EBUILD spim-7.2.1-r2.ebuild 2390 RMD160 f0c036db11423b73e8dae66fec1495fba72d5591 SHA1 1e356a8bd3a920c4be4225c73654a3591c61639d SHA256 d23f2ab16a8012c8d8bd573ac4a58e631c6cb7b99c8116a003a08bd347dca652 EBUILD spim-7.2.1-r3.ebuild 2501 RMD160 859fbc89fe2dd3696ee2ade74f59f80cf1614ea5 SHA1 9c29c07e5c46234a8e39bf6107a94db55b74964c SHA256 4c93faa4727b748075c2e27c3475962b3486048b784503402cb64e9b57b9f7a5 EBUILD spim-7.3.ebuild 2048 RMD160 ee1c35621a8a4f841bef1e4f52b2447705108faa SHA1 0a75882949e14974c622c4e8df1665e46714346b SHA256 a018cd7d1cd35db1adc0f8d1a6111be379d97e4b0b7061d8b49dfa30e539f2dd EBUILD spim-7.4.ebuild 2045 RMD160 35307049e348a5a4af98099405417f4b2e69fb81 SHA1 075deef4eb27cd91064eb91eede0ee84bbf5cca9 SHA256 9e23d2f7f84a01da84392eb526c16dca25cc1810672454f59e7258906b321e1d EBUILD spim-7.5.ebuild 1604 RMD160 8eacdc56e727fd040b08520530dc1a3288c5c44d SHA1 30d71eb540d75c7c6a3a43c6eeb0c70002be434f SHA256 0264f5886f55e67ff2d687fbf07b9e0489341f953973bea1c022ef99e56ca321 -MISC ChangeLog 7248 RMD160 9f4856843485acbce74b27395ef1926a9f5141e1 SHA1 d8fe3ad9cde649d84c68ac1c27c7c3851ec842cf SHA256 ec058a73fdf75f21ce02a45036350607a045b537b5e162edd1c30120ab5a1eec +EBUILD spim-8.0.ebuild 1605 RMD160 5105dbb0da8f7716141e463245625a55c4b05fa7 SHA1 4276481514abd95b0c60ebc0ef83a0ed562a3fa2 SHA256 00bd2ee575833b5e7e29848c478b7685b046ced605c255514fe8babad87b343b +MISC ChangeLog 7397 RMD160 dbbca5dced0f51b67bf1b7dc837620a8951dd9a3 SHA1 6fc6dae21dc88e36fc8c10bab1d02284daca23f8 SHA256 f4fc0b064ed99f5f7cdbc53589d857fde7608d8b09174b0e5573ff43f88e91fc MISC metadata.xml 440 RMD160 2bc90bd8aeacfcb3cb837a01b27313048b940005 SHA1 1afa0dd04f7ebf5735b63e4f48a8ee9364ee408c SHA256 82955b2522d81367ae4ed61542d0a39b4a82fe5a0a7f73fdaefd24299064f153 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEARECAAYFAktP0rAACgkQOypDUo0oQOpbOgCaAyQeVeisdE3ADVSQcdqfN0dY -bBUAoLorRJIItWeGAzgQheZ1Bv4W9j99 -=ZVjE ------END PGP SIGNATURE----- diff --git a/app-emulation/spim/files/spim-8.0-respect_env.patch b/app-emulation/spim/files/spim-8.0-respect_env.patch new file mode 100644 index 000000000000..3df337848049 --- /dev/null +++ b/app-emulation/spim/files/spim-8.0-respect_env.patch @@ -0,0 +1,155 @@ +--- spim-8.0-orig/spim/Makefile 2010-01-09 05:22:57.000000000 +0000 ++++ spim-8.0/spim/Makefile 2010-04-08 18:49:55.000000000 +0100 +@@ -66,13 +66,13 @@ + + + # Full path for the directory that will hold the executable files: +-BIN_DIR = /usr/local/bin ++BIN_DIR = $(DESTDIR)/usr/bin + + # Full path for the directory that will hold the exception handler: +-EXCEPTION_DIR = /usr/local/lib/spim ++EXCEPTION_DIR = $(DESTDIR)/var/lib/spim + + # Full path for the directory that will hold the man files: +-MAN_DIR = /usr/local/man/en ++MAN_DIR = $(DESTDIR)/usr/share/man + + + # If you have flex, use it instead of lex. If you use flex, define this +@@ -105,10 +105,9 @@ + DEFINES = $(ENDIAN) $(MEM_SIZES) -DDEFAULT_EXCEPTION_HANDLER="\"$(EXCEPTION_DIR)/exceptions.s\"" -DSPIM_VERSION="\"`cat ../VERSION`\"" + + CC = gcc +-CFLAGS = -I. -I$(CPU_DIR) $(DEFINES) -g -Wall ++CFLAGS = -I. -I$(CPU_DIR) $(DEFINES) -Wall + YFLAGS = -d --file-prefix=y + YCFLAGS = +-LDFLAGS = -lm + CSH = bash + + # lex.yy.c is usually compiled with -O to speed it up. +@@ -122,10 +121,10 @@ + + + spim: force +- make -f Makefile spim2 ++ $(MAKE) -f Makefile spim2 + + spim2: $(OBJS) spim.o +- $(CC) -g $(OBJS) spim.o $(LDFLAGS) -o spim -lm ++ $(CC) $(OBJS) spim.o $(LDFLAGS) -o spim -lm + + + force: configuration +@@ -143,19 +142,19 @@ + @echo + @echo "Testing tt.bare.s:" + $(CSH) -c "./spim -delayed_branches -delayed_loads -noexception -file $(TEST_DIR)/tt.bare.s >& test.out" +- @tail -2 test.out ++ @tail -n2 test.out + @echo + + @echo + @echo "Testing tt.core.s:" + $(CSH) -c "./spim -ef $(CPU_DIR)/exceptions.s -file $(TEST_DIR)/tt.core.s < $(TEST_DIR)/tt.in >& test.out" +- @tail -2 test.out ++ @tail -n2 test.out + @echo + + @echo + @echo "Testing tt.endian.s:" + $(CSH) -c "./spim -ef $(CPU_DIR)/exceptions.s -file $(TEST_DIR)/tt.endian.s >& test.out" +- @tail -2 test.out ++ @tail -n2 test.out + @echo + @echo + +@@ -166,13 +165,13 @@ + @echo + @echo "Testing tt.alu.bare.s:" + $(CSH) -c "./spim -bare -noexception -file $(TEST_DIR)/tt.alu.bare.s >& test.out" +- @tail -2 test.out ++ @tail -n2 test.out + @echo + + @echo + @echo "Testing tt.fpt.bare.s:" + $(CSH) -c "./spim -bare -noexception -file $(TEST_DIR)/tt.fpu.bare.s >& test.out" +- @tail -2 test.out ++ @tail -n2 test.out + @echo + @echo + +@@ -192,8 +191,6 @@ + install -m 0444 $(CPU_DIR)/exceptions.s $(EXCEPTION_DIR)/exceptions.s + + install-man: +- install -d $(MAN_DIR) +- install -m 0444 $(DOC_DIR)/spim.man $(MAN_DIR) + + very-clean: clean + rm -f configuration +--- spim-8.0-orig/xspim/Makefile 2010-01-09 05:22:58.000000000 +0000 ++++ spim-8.0/xspim/Makefile 2010-04-08 18:52:21.000000000 +0100 +@@ -175,8 +175,7 @@ + # from top Makefile + BOOTSTRAPCFLAGS = + +- CC = gcc -m32 +- AS = gcc -m32 -c -x assembler ++ AS = $(CC) -m32 -c -x assembler + + .SUFFIXES: .cc + +@@ -201,12 +200,12 @@ + + CPP = cpp $(STD_CPP_DEFINES) + RAWCPP = cpp -undef $(STD_CPP_OPTIONS) +- PREPROCESSCMD = gcc -m32 -E $(STD_CPP_DEFINES) ++ PREPROCESSCMD = $(CC) -m32 -E $(STD_CPP_DEFINES) + + INSTALL = install + INSTALLFLAGS = -c + +- LD = gcc -m32 -nostdlib ++ LD = $(CC) -m32 -nostdlib + + LEX = flex -l + M4 = m4 +@@ -270,14 +269,14 @@ + COL = col + COLFLAGS = -b + +- MODCC = gcc -m32 ++ MODCC = $(CC) -m32 + + MODCPP = cpp + MODCFLAGS = $(CFLAGS) +- MODAS = gcc -m32 -c -x assembler ++ MODAS = $(CC) -m32 -c -x assembler + MODASFLAGS = + +- MODLD = gcc -m32 -nostdlib ++ MODLD = $(CC) -m32 -nostdlib + + MODLDFLAGS = + MODLDCOMBINEFLAGS = -r +@@ -330,7 +329,7 @@ + + ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES) + ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES) +- CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES) ++ CFLAGS = $(MODULE_CFLAGS) $(ALLDEFINES) + LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES) + LDPRELIB = $(INSTALLED_LIBS) + LDPOSTLIB = +@@ -339,7 +338,7 @@ + + LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) + +- CCLINK = $(CC) ++ CCLINK = $(CC) $(LDFLAGS) + + CXXLINK = $(CXX) + diff --git a/app-emulation/spim/spim-8.0.ebuild b/app-emulation/spim/spim-8.0.ebuild new file mode 100644 index 000000000000..05510cba7d19 --- /dev/null +++ b/app-emulation/spim/spim-8.0.ebuild @@ -0,0 +1,81 @@ +# 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.ebuild,v 1.1 2010/04/08 18:05:20 ricmm Exp $ + +EAPI="2" + +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="X" + +RDEPEND="X? ( 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}/${P}-respect_env.patch" + tc-export CC + + # Fix documentation files + cd "${S}/Documentation" + mv spim.man spim.1 + mv xspim.man xspim.1 +} + +src_configure() { + cd "${S}/spim" + ./Configure || die "Configure Failed!" + + if use X; then + cd "${S}/xspim" + ./Configure || die "Configure Failed!" + fi +} + +src_compile() { + cd "${S}/spim" + emake || die + + if use X; then + cd "${S}/xspim" + emake -j1 xspim || die + fi +} + +src_install() { + dodir /var/lib/spim || die + dodoc README VERSION ChangeLog || die + + cd "${S}/spim" + emake DESTDIR="${D}" install || die "Unable to install spim" + + if use X; then + cd "${S}/xspim" + emake DESTDIR="${D}" install || die "Unable to install xspim" + + doman "${S}/Documentation/xspim.1" + fi + + cd "${S}/Documentation" + doman spim.1 || die + + dohtml SPIM.html || die + dodoc BLURB || die +} + +src_test() { + cd "${S}/spim" + make test || die "Failed to pass tests!" +} |