blob: 0d05c3e7ab7c2307309b2beb2822c7ba687651b3 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pygene/pygene-0.2.1.ebuild,v 1.3 2009/02/15 22:48:54 patrick Exp $
NEED_PYTHON=2.4
inherit distutils
DESCRIPTION="Simple python genetic algorithms programming library"
SRC_URI="http://www.freenet.org.nz/python/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.freenet.org.nz/python/pygene/"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
IUSE="doc examples"
DEPEND="doc? ( >=dev-python/epydoc-2.1-r2 )"
RDEPEND="examples? ( >=dev-python/pyfltk-1.1.2 )"
DOCS="BUGS CREDITS INSTALL"
src_compile() {
distutils_src_compile
if use doc ; then
epydoc -n "pygene - Python genetic algorithms" -o "${S}"/doc \
"${S}"/pygene || die "epydoc failed"
fi
}
src_install() {
distutils_src_install
use doc && \
dohtml -r doc/*
if use examples ; then
insinto /usr/share/doc/"${PF}"/examples
doins demo*.py salesman.gif || die 'doins failed'
fi
}
|