# Copyright 1999-2003 Gentoo Technologies, Inc. # 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.gz" LICENSE="GPL-2" SLOT="0" # "~x86", "~ppc", "~sparc", "~sparc64", "~alpha" KEYWORDS="~x86" IUSE="slang doc" DEPEND="slang? ( >=slang-1.4.5-r2 ) sed ( >=sed-4.0.7 )" RDEPEND="slang? ( >=slang-1.4.5-r2 )" # Will talk to Stewart about his version scheme... S=${WORKDIR}/${P}-0 #because of the config.h need, install in /opt GAUL_P="/opt/GAUL" src_unpack() { unpack ${A} cd ${S} pwd use doc || sed -i -e 's:^\(SUBDIRS.*\)tests examples\(.*\)$:\1\2:' Makefile.in } src_compile() { local myconf use slang || myconf="--enable-slang=no" ./configure \ ${myconf} \ --host=${CHOST} \ --prefix=${GAUL_P} \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" emake || die } src_install() { make DESTDIR=${D} install || die # In order to compile anything after, this is needed! cp ${S}/config.h ${D}/${GAUL}/include/ dodir /etc/env.d/ echo 'LDPATH=/opt/GAUL/lib/' >> ${D}/etc/env.d/25gaul }