blob: 52ba7e8f86b26b20bdafa050ea9ef008f2e8f878 (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
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="~amd64 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 "${FILESDIR}"/${PN}-3.0.3-gcc47.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
}
|