summaryrefslogtreecommitdiff
blob: 62b9b8ce1992ea53e70e84a640afa59dfeac4d83 (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
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2005 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.1846.ebuild,v 1.2 2005/08/24 16:23:52 phosphan Exp $


DESCRIPTION="Genetic Algorithm Utility Library"
HOMEPAGE="http://GAUL.sourceforge.net/"
SRC_URI="mirror://sourceforge/gaul/${P}-0.tar.gz"
LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86"

IUSE="slang doc"

DEPEND="slang? ( >=sys-libs/slang-1.4.5-r2 )
	>=sys-apps/sed-4.0.7"

RDEPEND="slang? ( >=sys-libs/slang-1.4.5-r2 )"

# Will talk to Stewart about his version scheme...
S=${WORKDIR}/${P}-0

src_compile() {
	local myconf
	use slang || myconf="--enable-slang=no"

	econf ${myconf} || die "econf failed"
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	#In order to compile anything after, this is needed!
	#cp ${S}/config.h ${D}/${GAUL}/include/
	#is it really? (george)

	#this also is unnecesary
	#dodir /etc/env.d/
	#echo "LDPATH=/usr/lib/" >> ${D}/etc/env.d/25gaul

	use doc && (
		dodir /usr/share/${PN}
		cp -pPR tests examples ${D}/usr/share/${PN}
	)
}