summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-06-23 19:10:37 +0000
committerMichael Weber <xmw@gentoo.org>2012-06-23 19:10:37 +0000
commit153f76fd2d4ea6a363cc5218f9fad6702a605645 (patch)
tree1d82e57b7e2bcfe771c7d1d71974223cdde8fa1a /app-emulation/simh/simh-3.9.0-r1.ebuild
parentsci-chemistry/pdb-extract: Version Bump, #379159 (diff)
downloadgentoo-2-153f76fd2d4ea6a363cc5218f9fad6702a605645.tar.gz
gentoo-2-153f76fd2d4ea6a363cc5218f9fad6702a605645.tar.bz2
gentoo-2-153f76fd2d4ea6a363cc5218f9fad6702a605645.zip
Revbump to fix binary installation (thanks Robert Carboneau, bug 423069)
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/simh/simh-3.9.0-r1.ebuild')
-rw-r--r--app-emulation/simh/simh-3.9.0-r1.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/app-emulation/simh/simh-3.9.0-r1.ebuild b/app-emulation/simh/simh-3.9.0-r1.ebuild
new file mode 100644
index 000000000000..44261176fc4d
--- /dev/null
+++ b/app-emulation/simh/simh-3.9.0-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/simh-3.9.0-r1.ebuild,v 1.1 2012/06/23 19:10:37 xmw Exp $
+
+EAPI=4
+
+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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # convert makefile from dos format to unix format
+ edos2unix makefile
+
+ epatch "${FILESDIR}"/${P}-respect-FLAGS.patch \
+ "${FILESDIR}"/${P}-fix-mkdir-race.patch
+
+ # fix linking on Darwin
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -e 's/-lrt//g' \
+ -i makefile || die
+ fi
+}
+
+src_compile() {
+ export GCC="$(tc-getCC)"
+ export LDFLAGS_O="${LDFLAGS}"
+ export CFLAGS_O="${CFLAGS}"
+
+ local my_makeopts="USE_NETWORK=1"
+ if [ "$(gcc-major-version)" -le "4" -a "$(gcc-minor-version)" -lt "6" ] ; then
+ my_makeopts+=" NO_LTO=1"
+ fi
+
+ emake ${my_makeopts}
+}
+
+src_install() {
+ for BINFILE in BIN/* ; do
+ newbin ${BINFILE} "simh-$(basename ${BINFILE})"
+ done
+
+ insinto /usr/share/simh
+ doins VAX/*.bin
+
+ dodoc *.txt */*.txt
+}