diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild')
-rw-r--r-- | sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild b/sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild new file mode 100644 index 000000000000..f1a450a5ad0a --- /dev/null +++ b/sci-mathematics/mathomatic/mathomatic-16.0.5.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc gnuplot" + +DEPEND="sys-libs/readline:= + sys-libs/ncurses:=" +RDEPEND="${DEPEND} + gnuplot? ( sci-visualization/gnuplot )" + +S="${WORKDIR}/${PN}-${P}" + +src_compile() { + append-cflags -DBOLD_COLOR=1 + emake READLINE=1 CC=$(tc-getCC) + emake CC=$(tc-getCC) -C primes +} + +src_test() { + default + emake -C primes check +} + +src_install() { + emake prefix="${EPREFIX}/usr" DESTDIR="${D}" bininstall m4install + emake prefix="${EPREFIX}/usr" DESTDIR="${D}" -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 +} |