blob: 057bf949595f92190abe8eb9310a604568ae2d7d (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/mathomatic/mathomatic-12.6.5.ebuild,v 1.3 2007/07/18 02:13:19 cryos Exp $
inherit eutils
DESCRIPTION="Automatic algebraic manipulator"
HOMEPAGE="http://www.mathomatic.com/"
SRC_URI="http://www.panix.com/~gesslein/${P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="doc icc"
DEPEND="sys-libs/readline
sys-libs/ncurses
icc? ( dev-lang/icc )"
src_compile() {
if use icc; then
CC="icc" CFLAGS="-O3 -axKWNBP -ipo" LDFLAGS="-O3 -axKWNBP -ipo -limf" emake READLINE=1 || die "emake failed"
else
emake READLINE=1 || die "emake failed"
fi
}
src_install() {
# It was easier just to install the files manually
dobin mathomatic
dodoc changes.txt README.txt
doman mathomatic.1
if use doc; then
dohtml doc/*
insinto /usr/share/doc/${PF}/examples
doins tests/*.in
fi
}
|