/[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.3 - (hide annotations) (download)
Wed Jun 23 11:23:11 2010 UTC (9 years, 8 months ago) by jlec
Branch: MAIN
Changes since 1.2: +7 -7 lines
Blocking dev-libs/libbeagle, #248331
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20