sci-mathematics/mathomatic: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/805899
Closes: https://bugs.gentoo.org/810325
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2022-07-07 22:19:50 +02:00
parent 5bb0d5499f
commit fdfec6fb09
@@ -1,29 +1,32 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=8
inherit toolchain-funcs flag-o-matic
DESCRIPTION="Automatic algebraic manipulator"
HOMEPAGE="https://github.com/mfillpot/mathomatic"
SRC_URI="https://github.com/mfillpot/mathomatic/archive/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
IUSE="doc gnuplot"
DEPEND="sys-libs/readline:=
DEPEND="
sys-libs/readline:=
sys-libs/ncurses:="
RDEPEND="${DEPEND}
gnuplot? ( sci-visualization/gnuplot )"
S="${WORKDIR}/${PN}-${P}"
BDEPEND="doc? ( app-text/htmldoc )"
src_compile() {
append-cflags -DBOLD_COLOR=1
emake READLINE=1 CC="$(tc-getCC)"
emake CC="$(tc-getCC)" -C primes
use doc && emake pdf
}
src_test() {
@@ -32,12 +35,15 @@ src_test() {
}
src_install() {
emake prefix="${EPREFIX}/usr" DESTDIR="${D}" bininstall m4install
emake prefix="${EPREFIX}/usr" DESTDIR="${D}" -C primes install
emake DESTDIR="${D}" prefix="${EPREFIX}"/usr \
mathdocdir="${EPREFIX}"/usr/share/doc/${PF} \
bininstall m4install
emake DESTDIR="${D}" prefix="${EPREFIX}"/usr -C primes install
dodoc changes.txt README.txt AUTHORS
newdoc primes/README.txt README-primes.txt
use doc && emake \
prefix="${EPREFIX}/usr" \
mathdocdir="${EPREFIX}/usr/share/doc/${PF}" \
DESTDIR="${D}" docinstall
DESTDIR="${D}" \
prefix="${EPREFIX}"/usr \
mathdocdir="${EPREFIX}"/usr/share/doc/${PF} \
docinstall
}