blob: 60bc0b232726b0f3d5184b54a8ff2c2ae52fee1a (
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
|
# 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"
inherit eutils
P_SHA="0265161"
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}/tarball/${PV} -> ${P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="doc luajit"
RDEPEND="|| ( >=dev-lang/lua-5.1 dev-lang/luajit:2 )
sci-mathematics/fann"
DEPEND="${RDEPEND}"
S="${WORKDIR}/msva-${PN}-${P_SHA}"
src_prepare() {
LUABIN="lua"
default
epatch_user
use luajit && export LUA_INCLUDE_DIR="/usr/$(get_libdir)/luajit-2.0"
use luajit && export LUABIN="luajit"
}
src_test() {
emake test
}
src_install() {
dodoc README.md TODO || die "dodoc failed"
use doc && (
emake docs
dohtml doc/luafann.html
)
default
}
|