1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils versionator
7 MY_P="${PN}v$(get_version_component_range 1)$(get_version_component_range 2)-$(get_version_component_range 3)"
8 DESCRIPTION="a simulator for historical computers such as Vax, PDP-11 etc.)"
9 HOMEPAGE="http://simh.trailing-edge.com/"
10 SRC_URI="http://simh.trailing-edge.com/sources/${MY_P}.zip"
16 RDEPEND="net-libs/libpcap"
22 MAKEOPTS="USE_NETWORK=1 ${MAKEOPTS}"
25 mkdir "${WORKDIR}/BIN"
28 # convert makefile from dos format to unix format
29 sed -i 's/.$//' makefile
31 epatch "${FILESDIR}/makefile.patch"
35 emake || die "make failed"
41 newbin ${BINFILE} "simh-${BINFILE}"
46 insinto /usr/share/simh