/[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.4 - (show annotations) (download)
Thu Apr 26 15:40:11 2012 UTC (7 years, 9 months ago) by jlec
Branch: MAIN
Changes since 1.3: +23 -17 lines
sci-libs/beagle: Move to EAPI=4, handle static-libs, use autotools-utils.eclass

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.3.ebuild,v 1.3 2010/06/23 11:23:11 jlec Exp $
4
5 EAPI=4
6
7 inherit autotools-utils
8
9 DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework"
10 SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz"
11 HOMEPAGE="http://beagle.gel.ulaval.ca/"
12
13 SLOT="0"
14 LICENSE="LGPL-2.1"
15 KEYWORDS="x86"
16 IUSE="doc static-libs"
17
18 RDEPEND="
19 sys-libs/zlib
20 !app-misc/beagle
21 !dev-libs/libbeagle"
22 DEPEND="${DEPEND}
23 doc? ( app-doc/doxygen )"
24
25 PATCHES=( "${FILESDIR}"/${PN}-3.0.3-gcc43.patch )
26
27 AUTOTOOLS_IN_SOURCE_BUILD=1
28
29 src_prepare() {
30 autotools-utils_src_prepare
31 sed -e "s:@LIBS@:@LIBS@ -lpthread:" \
32 -i PACC/Threading/Makefile.in || \
33 die "Failed to fix threading libs makefile."
34 }
35
36 src_configure() {
37 local myeconfargs=( --enable-optimization )
38 autotools-utils_src_configure
39 }
40
41 src_compile() {
42 autotools-utils_src_compile
43
44 use doc && autotools-utils_src_compile doc
45 }
46
47 src_install () {
48 autotools-utils_src_install
49
50 if use doc; then
51 cp -pPR examples "${D}"/usr/share/doc/${PF} || \
52 die "Failed to install examples."
53 dohtml -r refman/*
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20