# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Genetic Algorithm Utility Library" HOMEPAGE="http://GAUL.sourceforge.net/" SRC_URI="mirror://sourceforge/gaul/${P}-0.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="slang debug" DEPEND="virtual/libc >=sys-apps/sed-4 slang? ( sys-libs/slang )" S="${WORKDIR}/${P}-0" SE="${WORKDIR}/gaul-examples-${PV}-0/" src_compile() { dosed "s:tests debian:tests:" Makefile.in local myconf use slang || myconf="--enable-slang=no" if use debug ; then myconf="${myconf} --enable-debug=yes --enable-memory-debug=yes" else myconf="${myconf} --enable-g=no" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "Install failed" dodoc README }