You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/mmix/mmix-20131017.ebuild

49 lines
937 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mmix/mmix-20131017.ebuild,v 1.6 2014/12/28 10:10:28 ago Exp $
EAPI="5"
inherit eutils toolchain-funcs
DESCRIPTION="Donald Knuth's MMIX Assembler and Simulator"
HOMEPAGE="http://www-cs-faculty.stanford.edu/~knuth/mmix.html"
SRC_URI="http://mmix.cs.hm.edu/src/${P}.tgz"
RESTRICT="mirror"
DEPEND="virtual/tex-base
doc? ( dev-texlive/texlive-genericrecommended )"
RDEPEND=""
SLOT="0"
LICENSE="${PN}"
KEYWORDS="amd64 x86"
IUSE="doc"
S="${WORKDIR}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-20110420-makefile.patch
}
src_compile() {
emake all \
CFLAGS="${CFLAGS}" \
CC="$(tc-getCC)"
if use doc ; then
emake doc
fi
}
src_install () {
dobin ${PN} ${PN}al m${PN} mmotype abstime
dodoc README ${PN}.1
if use doc ; then
insinto /usr/share/doc/${PF}
doins *.ps
fi
}