/[gentoo-x86]/sci-libs/beagle/beagle-3.0.3.ebuild
Gentoo

Diff of /sci-libs/beagle/beagle-3.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20