# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools DESCRIPTION="MSIM is a light-weight computer simulator based on MIPS R4000." HOMEPAGE="http://dsrg.mff.cuni.cz/~holub/sw/msim/" SRC_URI="http://dsrg.mff.cuni.cz/~holub/sw/msim/${P}.tar.bz2" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="sys-devel/gcc" DEPEND="sys-libs/readline ${RDEPEND}" "${FILESDIR}/strndup.patch" src_unpack() { unpack ${A} epatch ${FILESDIR}/strndup.patch } src_compile() { econf --prefix=/usr/ emake } src_install() { dobin src/msim } pkg_postinst() { einfo "MSIM is a light-weight computer simulator based on MIPS R4000. It is used" einfo "for education and research purposes, mainly to teach the construction and" einfo "implementation of operating systems. MSIM is distributed with source code" einfo "under the GNU GPL license to make possible modifications for users and works" einfo "on most POSIX-compliance environments (mainly GNU/Linux, Mac OS X, but can" einfo "be also compiled in Cygwin or MinGW in Windows). The user interface is" einfo "simple terminal-style." }