forked from gentoo/sci
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffnet-0.6.2.ebuild
More file actions
49 lines (40 loc) · 993 Bytes
/
ffnet-0.6.2.ebuild
File metadata and controls
49 lines (40 loc) · 993 Bytes
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
48
49
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils flag-o-matic fortran-2 toolchain-funcs
DESCRIPTION="Feed-forward neural network for python"
HOMEPAGE="http://ffnet.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE="examples graphviz matplotlib"
DEPEND="
dev-python/networkx
dev-python/numpy
sci-libs/scipy
virtual/fortran
matplotlib? ( dev-python/matplotlib )
graphviz? ( dev-python/pygraphviz )"
RDEPEND="${DEPEND}"
pkg_setup() {
fortran-2_pkg_setup
export FCONFIG="config_fc --noopt --noarch"
append-ldflags -shared
append-fflags -fPIC
}
src_compile() {
distutils_src_compile ${FCONFIG}
}
src_install() {
distutils_src_install
dodoc README || die
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples || die
fi
}