blob: 0fa53d3f2f8d2762ce4775e381f5c12bcfb099d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/mathomatic/mathomatic-16.0.1.ebuild,v 1.1 2012/07/22 15:32:03 bicatali Exp $
EAPI=4
inherit toolchain-funcs flag-o-matic
DESCRIPTION="Automatic algebraic manipulator"
HOMEPAGE="http://www.mathomatic.org/"
SRC_URI="${HOMEPAGE}/archive/${P}.tar.bz2"
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 )"
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
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
}
|