blob: be0b5e470863b6bb509893e45623758c2e5e8683 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gaul-devel/gaul-devel-0.1849.ebuild,v 1.2 2007/07/20 18:45:10 je_fro Exp $
DESCRIPTION="Genetic Algorithm Utility Library"
HOMEPAGE="http://GAUL.sourceforge.net/"
SRC_URI="mirror://sourceforge/gaul/${P}-0.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="slang debug"
DEPEND="virtual/libc
>=sys-apps/sed-4
slang? ( =sys-libs/slang-1* )"
S="${WORKDIR}/${P}-0"
src_compile() {
local myconf
use slang || myconf="--enable-slang=no"
if use debug ; then
myconf="${myconf} --enable-debug=yes --enable-memory-debug=yes"
else
myconf="${myconf} --enable-g=no"
fi
econf ${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "Install failed"
dodoc README
}
|