Index: yacas-1.0.63.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/yacas/yacas-1.0.63.ebuild,v retrieving revision 1.2 diff -u -r1.2 yacas-1.0.63.ebuild --- yacas-1.0.63.ebuild 29 Jan 2007 16:09:01 -0000 1.2 +++ yacas-1.0.63.ebuild 2 May 2007 13:36:43 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yacas/yacas-1.0.63.ebuild,v 1.2 2007/01/29 16:09:01 markusle Exp $ -inherit eutils flag-o-matic +inherit autotools eutils flag-o-matic IUSE="glut server" @@ -23,11 +23,15 @@ src_unpack() { unpack ${A} cd "${S}" + if ! use glut; then - sed -e 's:opengl::g' -i plugins/Makefile.in || die "sed (opengl) failed" + sed -e 's:opengl::g' -i plugins/Makefile.am || die "sed (opengl) failed" sed -e 's/\(^PLUGINDOCSCHAPTERS.*\)opengl.chapt\(.*\)/\1 \2/' -i \ - manmake/Makefile.in || die 'sed (manmake) failed' + manmake/Makefile.am || die 'sed (manmake) failed' fi + + epatch "${FILESDIR}"/${P}-as-needed.patch + eautoreconf } src_compile() {