gentoo-ebuilds/dev-lang/mmix/mmix-20160804-r1.ebuild
Sam James dd80c69d30
dev-lang/mmix: fix variable order style
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-10 09:02:56 +00:00

47 lines
982 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Donald Knuth's MMIX Assembler and Simulator"
HOMEPAGE="https://www-cs-faculty.stanford.edu/~knuth/mmix.html http://mmix.cs.hm.edu"
SRC_URI="http://mmix.cs.hm.edu/src/${P}.tgz"
S="${WORKDIR}"
LICENSE="mmix"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"
BDEPEND="
virtual/tex-base
doc? ( dev-texlive/texlive-plaingeneric )
"
# media-sound/mmix and dev-lang/mmix both install 'mmix' binary, bug #426874
RDEPEND="!!media-sound/mmix"
PATCHES=(
"${FILESDIR}"/${PN}-20110420-makefile.patch
"${FILESDIR}"/${PN}-20131017-format-security.patch
"${FILESDIR}"/${PN}-20160804-gcc-10.patch
)
src_compile() {
export VARTEXFONTS=${T}/fonts
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
use doc && dodoc *.ps
}