blob: 2f040a86e235198ba33770f017202b74f4076f35 (
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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DOCS_BUILDER="doxygen"
inherit docs
DESCRIPTION="The Locally Weighted Projection Regression Library"
HOMEPAGE="https://web.inf.ed.ac.uk/slmc"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples octave static-libs"
RDEPEND="octave? ( >=sci-mathematics/octave-3 )"
DEPEND="${RDEPEND}"
src_configure() {
econf \
--enable-threads=3 \
$(use_with octave octave)
}
src_compile() {
default
docs_compile
}
src_install() {
default
if use doc; then
dodoc doc/lwpr_doc.pdf
dodoc html/*
fi
if use examples ; then
docinto /usr/share/doc/${PF}/examples
dodoc example_c/cross.c example_cpp/cross.cc
fi
if use octave; then
insinto /usr/share/octave/packages/${P}
doins matlab/*.m
fi
}
|