# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A free computer algebra system" HOMEPAGE="http://www.fis.unipr.it/~stefanw/gtybalt.html" SRC_URI="http://www.fis.unipr.it/~stefanw/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" # Some specific versions required by gtybalt # to maintain validation DEPEND="=sys-devel/gcc-3.3* =app-sci/ginac-1.1.5 =dev-libs/root-3.05.07 >=app-office/texmacs-1.0.1.21 >=dev-libs/gsl-1.2 >=dev-libs/cln-1.1.5 =dev-libs/nestedsums-1.3.3 >=dev-libs/ntl-5.3.1" # Must be built with NTL_STD_XX=on #RDEPEND="" src_compile() { econf --with-nestedsums --with-ntl || die emake || die "emake failed" } src_install() { einstall || die dodoc AUTHORS COPYING INSTALL NEWS README dohtml html/index.html cp -v ${S}/doc/*.png ${D}/usr/share/doc/${PF}/ # ROOT doesn't have /usr/lib in the LD_LIBRARY_PATH mv -v ${D}/usr/bin/gtybalt ${D}/usr/bin/gtybalt.bin echo "#!/bin/sh" > ${D}/usr/bin/gtybalt echo "LD_LIBRARY_PATH=/usr/lib exec gtybalt.bin" >> ${D}/usr/bin/gtybalt chmod 0755 ${D}/usr/bin/gtybalt }