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.
49 lines
983 B
49 lines
983 B
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
5 years ago
|
inherit toolchain-funcs
|
||
11 years ago
|
|
||
10 years ago
|
DESCRIPTION="Donald Knuth's MMIX Assembler and Simulator"
|
||
6 years ago
|
HOMEPAGE="https://www-cs-faculty.stanford.edu/~knuth/mmix.html http://mmix.cs.hm.edu"
|
||
10 years ago
|
SRC_URI="http://mmix.cs.hm.edu/src/${P}.tgz"
|
||
|
|
||
10 years ago
|
DEPEND="virtual/tex-base
|
||
6 years ago
|
doc? ( dev-texlive/texlive-plaingeneric )"
|
||
5 years ago
|
# media-sound/mmix and dev-lang/mmix both install 'mmix' binary, bug #426874
|
||
|
RDEPEND="!!media-sound/mmix"
|
||
11 years ago
|
|
||
|
SLOT="0"
|
||
|
LICENSE="${PN}"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
11 years ago
|
IUSE="doc"
|
||
|
|
||
|
S="${WORKDIR}"
|
||
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-20110420-makefile.patch
|
||
|
"${FILESDIR}"/${PN}-20131017-format-security.patch
|
||
|
)
|
||
11 years ago
|
|
||
|
src_compile() {
|
||
6 years ago
|
export VARTEXFONTS=${T}/fonts
|
||
11 years ago
|
emake all \
|
||
|
CFLAGS="${CFLAGS}" \
|
||
|
CC="$(tc-getCC)"
|
||
|
|
||
|
if use doc ; then
|
||
|
emake doc
|
||
|
fi
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
11 years ago
|
dobin ${PN} ${PN}al m${PN} mmotype abstime
|
||
|
dodoc README ${PN}.1
|
||
|
|
||
|
if use doc ; then
|
||
|
insinto /usr/share/doc/${PF}
|
||
|
doins *.ps
|
||
|
fi
|
||
|
}
|