/[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.5 - (hide annotations) (download)
Sun Jun 15 21:23:54 2014 UTC (5 years, 8 months ago) by jauhien
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +5 -5 lines
fix bug #513348, bump to EAPI 5, add ~amd64, thanks to Georg Rudoy

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)

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

  ViewVC Help
Powered by ViewVC 1.1.20