blob: c9b87c7f22224c45ab952b5f04532f6ec5a99db1 (
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
43
44
45
46
47
48
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/mathomatic/mathomatic-12.2c.ebuild,v 1.1 2005/04/08 14:11:53 cryos Exp $
inherit eutils
DESCRIPTION="Automatic algebraic manipulator"
HOMEPAGE="http://www.mathomatic.com/"
SRC_URI="http://www.panix.com/~gesslein/${P}.tgz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
IUSE="icc"
DEPEND="sys-libs/readline
sys-libs/ncurses
icc? ( dev-lang/icc )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-makefile.patch
}
src_compile() {
if use icc; then
CC="icc" CFLAGS="-O3 -axKWNBP -ipo" LDFLAGS="-O3 -axKWNBP -ipo -limf" emake || die "emake failed"
else
emake || die "emake failed"
fi
}
src_test()
{
make test || die "make test failed."
}
src_install() {
einstall || die "einstall failed."
dodoc changes.txt README.txt
dodir /usr/share/doc/${PF}/examples
insinto /usr/share/doc/${PF}/examples
doins tests/*in
dohtml ${D}/usr/doc/mathomatic/*.htm
rm -rf ${D}/usr/doc/mathomatic
}
|