# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-sci/beagle/beagle-2.1.3.ebuild,v 1.2 2004/06/24 21:52:18 agriffis Exp $ inherit libtool IUSE="doc static" DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework" SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz" HOMEPAGE="http://www.gel.ulaval.ca/~beagle/index.html" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND=">=sys-devel/gcc-2.96 sys-libs/zlib doc? ( app-doc/doxygen )" src_compile() { elibtoolize econf --enable-optimization `use_enable static` || die emake || die use doc && doxygen beagle.doxygen } src_install () { make install DESTDIR=${D} || die dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO if use doc; then cp -a examples ${D}/usr/share/doc/${PF} dohtml refman/html/* fi }