blob: 1d6ec0084da39ee74604d19fbadc3bd293b5911f (
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
48
49
50
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: This ebuild is from Lua overlay; Bumped by mva; $
EAPI="5"
# fixme when fann will be multilib
#IS_MULTILIB=true
inherit lua
DESCRIPTION="A set of Lua bindings for the Fast Artificial Neural Network (FANN) library."
HOMEPAGE="https://github.com/msva/lua-fann"
SRC_URI="https://github.com/msva/${PN}/archive/${PV}.tar.gz -> ${P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="doc +examples"
RDEPEND="
sci-mathematics/fann
"
DEPEND="
${RDEPEND}
"
READMES=( README.md TODO )
HTML_DOCS=( doc/luafann.html )
EXAMPLES=( examples/ )
all_lua_compile() {
use doc && (
emake docs
)
}
each_lua_compile() {
lua_default \
LUA_IMPL="$(lua_get_lua)" \
LUA_BIN="${LUA}" \
LUA_INC="."
}
each_lua_test() {
emake test
}
each_lua_install() {
dolua fann.so
}
|