summaryrefslogtreecommitdiff
blob: f8e14fd9172b5278653594f24f1b8401a4c73f7a (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
49
50
51
52
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/yacas/yacas-1.0.55.ebuild,v 1.1 2003/07/09 23:48:16 george Exp $

IUSE=""

DESCRIPTION="very powerful general purpose Computer Algebra System"
HOMEPAGE="http://yacas.sourceforge.net/"
SRC_URI="http://${PN}.sourceforge.net/backups/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

DEPEND="virtual/glibc
	>=sys-apps/sed-4"

src_compile() {
	econf || die "./configure failed"
	emake || die

	# only build gui, if we use x
	# proteus is untested and does not compile this way,
	# needs an installed (and merged) yacas to compile.
	#if use X ; then
	#	cd proteus
	#	emake depend -f makefile.linux 	|| die
	#	emake -f makefile.linux 	|| die
	#	cd ..
	#fi
}

src_install() {
	# a very strange Makefile's, that do not honor standard wrappings :(
	find -name Makefile |xargs sed -i -e "s:datadir = /usr/share:datadir = ${D}/usr/share:"
	cd manmake
	sed -i -e "s:htmldir = :htmldir = ${D}:" -e "s:psdir = :psdir = ${D}:" Makefile
	cd ${S}

	DESTDIR=${D} make install-strip || die

	# see above notice
	#if ( use X ); then
	#	cd proteus
	#	emake install-strip -f makefile.linux || die
	#	cd ..
	#fi

	dodoc AUTHORS INSTALL NEWS README TODO
	mv ${D}/usr/share/${PN}/documentation ${D}/usr/share/doc/${PF}/html
	rmdir ${D}/usr/include/
}