blob: cae92ac99034dc2cf5040e91c2348f55e902f257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2010 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.3 2010/06/23 11:23:11 jlec Exp $
inherit eutils
DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework"
SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz"
HOMEPAGE="http://beagle.gel.ulaval.ca/"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86"
IUSE="doc"
RDEPEND="sys-libs/zlib
!app-misc/beagle
!dev-libs/libbeagle"
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
}
|