summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2010-11-21 03:57:46 +0000
committerMatt Turner <mattst88@gentoo.org>2010-11-21 03:57:46 +0000
commit208d87c033431896a3d85ff1ac217f90cdda4005 (patch)
tree7212bad2ee2c793ec93fca7810cbfaf91339fc71 /app-emulation/simh
parentapp-misc/g15daemon: Remove unused files (bug #342671) (diff)
downloadgentoo-2-208d87c033431896a3d85ff1ac217f90cdda4005.tar.gz
gentoo-2-208d87c033431896a3d85ff1ac217f90cdda4005.tar.bz2
gentoo-2-208d87c033431896a3d85ff1ac217f90cdda4005.zip
Revision bump to 3.8.1, bug 305523.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/simh')
-rw-r--r--app-emulation/simh/ChangeLog8
-rw-r--r--app-emulation/simh/files/simh-3.8.1-asneeded.patch168
-rw-r--r--app-emulation/simh/files/simh-3.8.1-makefile.patch11
-rw-r--r--app-emulation/simh/simh-3.8.1.ebuild55
4 files changed, 241 insertions, 1 deletions
diff --git a/app-emulation/simh/ChangeLog b/app-emulation/simh/ChangeLog
index 65e253e37880..6508210f5550 100644
--- a/app-emulation/simh/ChangeLog
+++ b/app-emulation/simh/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/simh
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/ChangeLog,v 1.12 2010/01/15 02:26:32 abcd Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/ChangeLog,v 1.13 2010/11/21 03:57:46 mattst88 Exp $
+
+*simh-3.8.1 (21 Nov 2010)
+
+ 21 Nov 2010; <mattst88@gentoo.org> +simh-3.8.1.ebuild,
+ +files/simh-3.8.1-asneeded.patch, +files/simh-3.8.1-makefile.patch:
+ Revision bump to 3.8.1, bug #305523.
15 Jan 2010; Jonathan Callen <abcd@gentoo.org> simh-3.7.0.ebuild:
Add prefix keywords
diff --git a/app-emulation/simh/files/simh-3.8.1-asneeded.patch b/app-emulation/simh/files/simh-3.8.1-asneeded.patch
new file mode 100644
index 000000000000..8843d3412a3b
--- /dev/null
+++ b/app-emulation/simh/files/simh-3.8.1-asneeded.patch
@@ -0,0 +1,168 @@
+--- makefile.orig 2010-09-07 15:30:17.000000000 -0400
++++ makefile 2010-09-07 15:31:37.000000000 -0400
+@@ -12,7 +12,8 @@
+ OS_CCDEFS = -lrt -lm -D_GNU_SOURCE
+ endif
+ endif
+- CC = gcc -std=c99 -U__STRICT_ANSI__ -g $(OS_CCDEFS) -I .
++ CC := $(CC) -std=c99 -U__STRICT_ANSI__ $(OS_CCDEFS) -I . $(CFLAGS)
++ LIBS = -lm -lrt
+ ifeq ($(USE_NETWORK),)
+ else
+ NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
+@@ -274,129 +275,129 @@
+ pdp1 : ${BIN}pdp1${EXE}
+
+ ${BIN}pdp1${EXE} : ${PDP1} ${SIM}
+- ${CC} ${PDP1} ${SIM} ${PDP1_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP1} ${SIM} ${PDP1_OPT} -o $@ $(LIBS)
+
+ pdp4 : ${BIN}pdp4${EXE}
+
+ ${BIN}pdp4${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP4_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP4_OPT} -o $@ $(LIBS)
+
+ pdp7 : ${BIN}pdp7${EXE}
+
+ ${BIN}pdp7${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP7_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP7_OPT} -o $@ $(LIBS)
+
+ pdp8 : ${BIN}pdp8${EXE}
+
+ ${BIN}pdp8${EXE} : ${PDP8} ${SIM}
+- ${CC} ${PDP8} ${SIM} ${PDP8_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP8} ${SIM} ${PDP8_OPT} -o $@ $(LIBS)
+
+ pdp9 : ${BIN}pdp9${EXE}
+
+ ${BIN}pdp9${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP9_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP9_OPT} -o $@ $(LIBS)
+
+ pdp15 : ${BIN}pdp15${EXE}
+
+ ${BIN}pdp15${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP15_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP15_OPT} -o $@ $(LIBS)
+
+ pdp10 : ${BIN}pdp10${EXE}
+
+ ${BIN}pdp10${EXE} : ${PDP10} ${SIM}
+- ${CC} ${PDP10} ${SIM} ${PDP10_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP10} ${SIM} ${PDP10_OPT} -o $@ $(LIBS)
+
+ pdp11 : ${BIN}pdp11${EXE}
+
+ ${BIN}pdp11${EXE} : ${PDP11} ${SIM}
+- ${CC} ${PDP11} ${SIM} ${PDP11_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP11} ${SIM} ${PDP11_OPT} -o $@ $(LIBS)
+
+ vax : ${BIN}vax${EXE}
+
+ ${BIN}vax${EXE} : ${VAX} ${SIM}
+- ${CC} ${VAX} ${SIM} ${VAX_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${VAX} ${SIM} ${VAX_OPT} -o $@ $(LIBS)
+
+ vax780 : ${BIN}vax780${EXE}
+
+ ${BIN}vax780${EXE} : ${VAX780} ${SIM}
+- ${CC} ${VAX780} ${SIM} ${VAX780_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${VAX780} ${SIM} ${VAX780_OPT} -o $@ $(LIBS)
+
+ nova : ${BIN}nova${EXE}
+
+ ${BIN}nova${EXE} : ${NOVA} ${SIM}
+- ${CC} ${NOVA} ${SIM} ${NOVA_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${NOVA} ${SIM} ${NOVA_OPT} -o $@ $(LIBS)
+
+ eclipse : ${BIN}eclipse${EXE}
+
+ ${BIN}eclipse${EXE} : ${ECLIPSE} ${SIM}
+- ${CC} ${ECLIPSE} ${SIM} ${ECLIPSE_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ECLIPSE} ${SIM} ${ECLIPSE_OPT} -o $@ $(LIBS)
+
+ h316 : ${BIN}h316${EXE}
+
+ ${BIN}h316${EXE} : ${H316} ${SIM}
+- ${CC} ${H316} ${SIM} ${H316_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${H316} ${SIM} ${H316_OPT} -o $@ $(LIBS)
+
+ hp2100 : ${BIN}hp2100${EXE}
+
+ ${BIN}hp2100${EXE} : ${HP2100} ${SIM}
+- ${CC} ${HP2100} ${SIM} ${HP2100_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${HP2100} ${SIM} ${HP2100_OPT} -o $@ $(LIBS)
+
+ i1401 : ${BIN}i1401${EXE}
+
+ ${BIN}i1401${EXE} : ${I1401} ${SIM}
+- ${CC} ${I1401} ${SIM} ${I1401_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I1401} ${SIM} ${I1401_OPT} -o $@ $(LIBS)
+
+ i1620 : ${BIN}i1620${EXE}
+
+ ${BIN}i1620${EXE} : ${I1620} ${SIM}
+- ${CC} ${I1620} ${SIM} ${I1620_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I1620} ${SIM} ${I1620_OPT} -o $@ $(LIBS)
+
+ i7094 : ${BIN}i7094${EXE}
+
+ ${BIN}i7094${EXE} : ${I7094} ${SIM}
+- ${CC} ${I7094} ${SIM} ${I7094_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I7094} ${SIM} ${I7094_OPT} -o $@ $(LIBS)
+
+ ibm1130 : ${BIN}ibm1130${EXE}
+
+ ${BIN}ibm1130${EXE} : ${IBM1130}
+- ${CC} ${IBM1130} ${SIM} ${IBM1130_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${IBM1130} ${SIM} ${IBM1130_OPT} -o $@ $(LIBS)
+
+ s3 : ${BIN}s3${EXE}
+
+ ${BIN}s3${EXE} : ${S3} ${SIM}
+- ${CC} ${S3} ${SIM} ${S3_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${S3} ${SIM} ${S3_OPT} -o $@ $(LIBS)
+
+ altair : ${BIN}altair${EXE}
+
+ ${BIN}altair${EXE} : ${ALTAIR} ${SIM}
+- ${CC} ${ALTAIR} ${SIM} ${ALTAIR_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ALTAIR} ${SIM} ${ALTAIR_OPT} -o $@ $(LIBS)
+
+ altairz80 : ${BIN}altairz80${EXE}
+
+ ${BIN}altairz80${EXE} : ${ALTAIRZ80} ${SIM}
+- ${CC} ${ALTAIRZ80} ${SIM} ${ALTAIRZ80_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ALTAIRZ80} ${SIM} ${ALTAIRZ80_OPT} -o $@ $(LIBS)
+
+ gri : ${BIN}gri${EXE}
+
+ ${BIN}gri${EXE} : ${GRI} ${SIM}
+- ${CC} ${GRI} ${SIM} ${GRI_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${GRI} ${SIM} ${GRI_OPT} -o $@ $(LIBS)
+
+ lgp : ${BIN}lgp${EXE}
+
+ ${BIN}lgp${EXE} : ${LGP} ${SIM}
+- ${CC} ${LGP} ${SIM} ${LGP_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${LGP} ${SIM} ${LGP_OPT} -o $@ $(LIBS)
+
+ id16 : ${BIN}id16${EXE}
+
+ ${BIN}id16${EXE} : ${ID16} ${SIM}
+- ${CC} ${ID16} ${SIM} ${ID16_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ID16} ${SIM} ${ID16_OPT} -o $@ $(LIBS)
+
+ id32 : ${BIN}id32${EXE}
+
+ ${BIN}id32${EXE} : ${ID32} ${SIM}
+- ${CC} ${ID32} ${SIM} ${ID32_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ID32} ${SIM} ${ID32_OPT} -o $@ $(LIBS)
+
+ sds : ${BIN}sds${EXE}
+
+ ${BIN}sds${EXE} : ${SDS} ${SIM}
+- ${CC} ${SDS} ${SIM} ${SDS_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${SDS} ${SIM} ${SDS_OPT} -o $@ $(LIBS)
diff --git a/app-emulation/simh/files/simh-3.8.1-makefile.patch b/app-emulation/simh/files/simh-3.8.1-makefile.patch
new file mode 100644
index 000000000000..612a4afce2c9
--- /dev/null
+++ b/app-emulation/simh/files/simh-3.8.1-makefile.patch
@@ -0,0 +1,11 @@
+--- makefile.orig 2010-09-07 15:05:01.000000000 -0400
++++ makefile 2010-09-07 15:05:19.000000000 -0400
+@@ -15,7 +15,7 @@
+ CC = gcc -std=c99 -U__STRICT_ANSI__ -g $(OS_CCDEFS) -I .
+ ifeq ($(USE_NETWORK),)
+ else
+- NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
++ NETWORK_OPT = -DUSE_NETWORK -DNEED_PCAP_SENDPACKET -lpcap
+ endif
+ else
+ #Win32 Environments
diff --git a/app-emulation/simh/simh-3.8.1.ebuild b/app-emulation/simh/simh-3.8.1.ebuild
new file mode 100644
index 000000000000..c5b5104b4a30
--- /dev/null
+++ b/app-emulation/simh/simh-3.8.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/simh-3.8.1.ebuild,v 1.1 2010/11/21 03:57:46 mattst88 Exp $
+
+inherit eutils toolchain-funcs versionator
+
+MY_P="${PN}v$(get_version_component_range 1)$(get_version_component_range 2)-$(get_version_component_range 3)"
+DESCRIPTION="a simulator for historical computers such as Vax, PDP-11 etc.)"
+HOMEPAGE="http://simh.trailing-edge.com/"
+SRC_URI="http://simh.trailing-edge.com/sources/${MY_P}.zip"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+MAKEOPTS="USE_NETWORK=1 ${MAKEOPTS}"
+
+src_unpack() {
+ mkdir "${WORKDIR}/BIN"
+ unpack ${A}
+
+ # convert makefile from dos format to unix format
+ edos2unix makefile
+
+ epatch "${FILESDIR}/${P}-makefile.patch" \
+ "${FILESDIR}/${P}-asneeded.patch"
+
+ # fix linking on Darwin
+ [[ ${CHOST} == *-darwin* ]] && sed -i 's/-lrt//g' makefile
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "make failed"
+}
+
+src_install() {
+ cd "${S}/BIN"
+ for BINFILE in *; do
+ newbin ${BINFILE} "simh-${BINFILE}"
+ done
+
+ cd "${S}"
+ dodir /usr/share/simh
+ insinto /usr/share/simh
+ doins VAX/*.bin
+ dodoc *.txt */*.txt
+}