1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs flag-o-matic
7 DESCRIPTION="Automatic algebraic manipulator"
8 HOMEPAGE="http://www.mathomatic.org/"
9 SRC_URI="http://www.mathomatic.org/archive/${P}.tar.bz2"
13 KEYWORDS="amd64 ppc x86"
16 DEPEND="sys-libs/readline
19 gnuplot? ( sci-visualization/gnuplot )"
22 append-cflags -DBOLD_COLOR=1
23 emake READLINE=1 CC=$(tc-getCC)
24 emake CC=$(tc-getCC) -C primes
33 emake prefix="${EPREFIX}usr" DESTDIR="${D}" bininstall
34 emake prefix="${EPREFIX}usr" DESTDIR="${D}" -C primes install
35 dodoc changes.txt README.txt AUTHORS
36 newdoc primes/README.txt README-primes.txt
38 prefix="${EPREFIX}usr" \
39 mathdocdir="${EPREFIX}usr/share/doc/${PF}" \
40 DESTDIR="${D}" docinstall