Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30532 - app-sci/yacas could have optional gmp support
Summary: app-sci/yacas could have optional gmp support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-10-06 19:42 UTC by Pablo De Nápoli
Modified: 2004-04-19 10:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild to fix this bug (yacas-1.0.55-r2.ebuild,1.50 KB, text/x-ebuild)
2003-11-09 15:14 UTC, Pablo De Nápoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo De Nápoli 2003-10-06 19:42:45 UTC
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)
Comment 1 Pablo De Nápoli 2003-10-10 10:26:23 UTC
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/
}
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-24 06:02:02 UTC
used "USE" parameters should be in IUSE. Please attach it as text/plain instead
of pasting.
Comment 3 Pablo De Nápoli 2003-11-09 15:14:53 UTC
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)
Comment 4 Pablo De Nápoli 2004-01-18 11:23:28 UTC
gmp is much more efficient than the built-in arbitrary precision 
library
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-04-19 09:11:59 UTC
Compilation fails with gmp-4.1.2, though, when using a current gcc.
Investigating...
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2004-04-19 10:03:16 UTC
I hope I fixed it. Please try when .56 is available.