| 1 |
# Copyright 1999-2004 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-sci/yacas/yacas-1.0.56.ebuild,v 1.7 2004/12/18 12:02:54 blubb Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
IUSE="gmp"
|
| 8 |
|
| 9 |
DESCRIPTION="very powerful general purpose Computer Algebra System"
|
| 10 |
HOMEPAGE="http://yacas.sourceforge.net/"
|
| 11 |
SRC_URI="http://${PN}.sourceforge.net/backups/${P}.tar.gz
|
| 12 |
mirror://gentoo/${P}.patch.bz2
|
| 13 |
http://dev.gentoo.org/~phosphan/${P}.patch.bz2"
|
| 14 |
|
| 15 |
SLOT="0"
|
| 16 |
LICENSE="GPL-2"
|
| 17 |
KEYWORDS="x86 ~ppc ~amd64"
|
| 18 |
|
| 19 |
DEPEND="virtual/libc
|
| 20 |
>=sys-apps/sed-4
|
| 21 |
gmp? ( >=dev-libs/gmp-4 ) "
|
| 22 |
|
| 23 |
|
| 24 |
src_unpack() {
|
| 25 |
unpack ${A}
|
| 26 |
cd ${S}
|
| 27 |
epatch ${WORKDIR}/${P}.patch
|
| 28 |
}
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
local myconf
|
| 32 |
if use gmp ; then
|
| 33 |
myconf="--with-numlib=gmp"
|
| 34 |
fi
|
| 35 |
econf ${myconf} || die "./configure failed"
|
| 36 |
emake || die
|
| 37 |
}
|
| 38 |
|
| 39 |
src_install() {
|
| 40 |
# a very strange Makefile's, that do not honor standard wrappings :(
|
| 41 |
find -name Makefile |xargs sed -i -e "s:datadir = /usr/share:datadir = ${D}/usr/share:"
|
| 42 |
cd manmake
|
| 43 |
sed -i -e "s:htmldir = :htmldir = ${D}:" -e "s:psdir = :psdir = ${D}:" Makefile
|
| 44 |
cd ${S}
|
| 45 |
|
| 46 |
DESTDIR=${D} make install-strip || die
|
| 47 |
|
| 48 |
dodoc AUTHORS INSTALL NEWS README TODO
|
| 49 |
mv ${D}/usr/share/${PN}/documentation ${D}/usr/share/doc/${PF}/html
|
| 50 |
rmdir ${D}/usr/include/
|
| 51 |
}
|