blob: 3ef6944b9b9d7a63c346cfdc9db2cfa5e6a3dd4f (
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
50
51
52
53
54
55
|
# Copyright 1999-2012 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.4 2012/04/26 15:40:11 jlec Exp $
EAPI=4
inherit autotools-utils
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 static-libs"
RDEPEND="
sys-libs/zlib
!app-misc/beagle
!dev-libs/libbeagle"
DEPEND="${DEPEND}
doc? ( app-doc/doxygen )"
PATCHES=( "${FILESDIR}"/${PN}-3.0.3-gcc43.patch )
AUTOTOOLS_IN_SOURCE_BUILD=1
src_prepare() {
autotools-utils_src_prepare
sed -e "s:@LIBS@:@LIBS@ -lpthread:" \
-i PACC/Threading/Makefile.in || \
die "Failed to fix threading libs makefile."
}
src_configure() {
local myeconfargs=( --enable-optimization )
autotools-utils_src_configure
}
src_compile() {
autotools-utils_src_compile
use doc && autotools-utils_src_compile doc
}
src_install () {
autotools-utils_src_install
if use doc; then
cp -pPR examples "${D}"/usr/share/doc/${PF} || \
die "Failed to install examples."
dohtml -r refman/*
fi
}
|