/[gentoo-x86]/sci-libs/beagle/beagle-3.0.3.ebuild
Gentoo

Contents of /sci-libs/beagle/beagle-3.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Feb 15 00:31:08 2009 UTC (11 years ago) by loki_val
Branch: MAIN
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)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/beagle/beagle-3.0.1.ebuild,v 1.3 2008/05/17 10:09:03 bicatali Exp $
4
5 inherit eutils
6
7 IUSE="doc"
8
9 DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework"
10 SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz"
11 HOMEPAGE="http://www.gel.ulaval.ca/~beagle/index.html"
12 SLOT="0"
13 LICENSE="LGPL-2.1"
14 KEYWORDS="~x86"
15
16 RDEPEND="sys-libs/zlib
17 !app-misc/beagle"
18
19 DEPEND="${DEPEND}
20 doc? ( app-doc/doxygen )"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 epatch "${FILESDIR}"/${PN}-3.0.3-gcc43.patch
26 sed -e "s:@LIBS@:@LIBS@ -lpthread:" \
27 -i PACC/Threading/Makefile.in || \
28 die "Failed to fix threading libs makefile."
29 }
30
31 src_compile() {
32 econf --enable-optimization || die "Configure failed."
33 emake || die "Make failed."
34
35 if use doc; then
36 make doc || die "Failed to generate docs."
37 fi
38 }
39
40 src_install () {
41 emake install DESTDIR="${D}" || die
42 dodoc AUTHORS ChangeLog NEWS README TODO
43
44 if use doc; then
45 cp -pPR examples "${D}"/usr/share/doc/${PF} || \
46 die "Failed to install examples."
47 dohtml -r refman/* || die "Failed to install manual."
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20