/[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 - (hide 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 jlec 1.4 # Copyright 1999-2012 Gentoo Foundation
2 loki_val 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.4 # $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 loki_val 1.1
5 jlec 1.4 EAPI=4
6    
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 armin76 1.2 KEYWORDS="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 jlec 1.4 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 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