Yacas could have optional support. I suggest adding an USE parameter gmp (and build it with configure --with-numlib=gmp if this parameter is selected) Reproducible: Always Steps to Reproduce: 1. 2. 3. (I'm one of the yacas developers)
I'm sending to you an ebuild that fix this bug for yacas 1.0.55 (for yacas 1.0.54 this not work, because fstab function is not declared in gmpnumbers.h and compilation fails, but this could be easily be fixed patching this file, I'm not sure about the way of doing this in the ebuild script. Is there some utility for this or I just use patch/diff? This upstream bug is already fixed in yacas 1.0.55) # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-sci/yacas/yacas-1.0.54.ebuild,v 1.1 2003/07/10 01:38:46 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 gmp ? >=dev-libs/gmp-4*" src_compile() { local myconf if use gmp ;then myconf="--with-numlib=gmp" echo "Using gmp library" fi econf ${myconf} || 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/ }
used "USE" parameters should be in IUSE. Please attach it as text/plain instead of pasting.
Created attachment 20485 [details] ebuild to fix this bug I'm resending the ebuild according to comment #1 (with the modification requiered: gmp is in IUSE)
gmp is much more efficient than the built-in arbitrary precision library
Compilation fails with gmp-4.1.2, though, when using a current gcc. Investigating...
I hope I fixed it. Please try when .56 is available.