diff options
author | 2009-02-15 00:31:08 +0000 | |
---|---|---|
committer | 2009-02-15 00:31:08 +0000 | |
commit | 782cdd1bd9f62dc1d57a4a976b1346d58b69ab8e (patch) | |
tree | ba5f23d8e844da5fcd15a77f435c993e4d255907 /sci-libs/beagle/beagle-3.0.3.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-782cdd1bd9f62dc1d57a4a976b1346d58b69ab8e.tar.gz gentoo-2-782cdd1bd9f62dc1d57a4a976b1346d58b69ab8e.tar.bz2 gentoo-2-782cdd1bd9f62dc1d57a4a976b1346d58b69ab8e.zip |
Bump because 3.0.1 failed to configure. Patch for bug 251629, gcc-4.3 compatibility.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/beagle/beagle-3.0.3.ebuild')
-rw-r--r-- | sci-libs/beagle/beagle-3.0.3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-libs/beagle/beagle-3.0.3.ebuild b/sci-libs/beagle/beagle-3.0.3.ebuild new file mode 100644 index 000000000000..307124e4a974 --- /dev/null +++ b/sci-libs/beagle/beagle-3.0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/beagle/beagle-3.0.3.ebuild,v 1.1 2009/02/15 00:31:08 loki_val Exp $ + +inherit eutils + +IUSE="doc" + +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="LGPL-2.1" +KEYWORDS="~x86" + +RDEPEND="sys-libs/zlib + !app-misc/beagle" + +DEPEND="${DEPEND} + doc? ( app-doc/doxygen )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-3.0.3-gcc43.patch + sed -e "s:@LIBS@:@LIBS@ -lpthread:" \ + -i PACC/Threading/Makefile.in || \ + die "Failed to fix threading libs makefile." +} + +src_compile() { + econf --enable-optimization || die "Configure failed." + emake || die "Make failed." + + if use doc; then + make doc || die "Failed to generate docs." + fi +} + +src_install () { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog NEWS README TODO + + if use doc; then + cp -pPR examples "${D}"/usr/share/doc/${PF} || \ + die "Failed to install examples." + dohtml -r refman/* || die "Failed to install manual." + fi +} |