/[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.2 - (hide annotations) (download)
Tue Mar 3 17:08:11 2009 UTC (10 years, 11 months ago) by armin76
Branch: MAIN
Changes since 1.1: +2 -2 lines
x86 stable wrt #259031
(Portage version: 2.1.6.7/cvs/Linux ia64)

1 loki_val 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/beagle/beagle-3.0.3.ebuild,v 1.1 2009/02/15 00:31:08 loki_val Exp $
4 loki_val 1.1
5     inherit eutils
6    
7     IUSE="doc"
8    
9     DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework"
10     SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz"
11     HOMEPAGE="http://www.gel.ulaval.ca/~beagle/index.html"
12     SLOT="0"
13     LICENSE="LGPL-2.1"
14 armin76 1.2 KEYWORDS="x86"
15 loki_val 1.1
16     RDEPEND="sys-libs/zlib
17     !app-misc/beagle"
18    
19     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