blob: 5981b5207fbaee487eede95d0bc6e0e1c40fbbb8 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/flann/flann-1.6.8.ebuild,v 1.6 2011/11/11 20:12:59 vapier Exp $
EAPI=3
PYTHON_DEPEND="python? 2:2.5"
inherit cmake-utils python
DESCRIPTION="Library for performing fast approximate nearest neighbor searches in high dimensional spaces"
HOMEPAGE="http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN/"
SRC_URI="http://people.cs.ubc.ca/~mariusm/uploads/FLANN/${P}-src.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="python test"
RDEPEND="
sci-libs/hdf5[mpi,threads]
python? ( dev-python/numpy )"
DEPEND="${DEPEND}
app-arch/unzip
test? ( dev-cpp/gtest )"
RESTRICT=test
# bug 366477
S="${WORKDIR}"/${P}-src
src_prepare() {
sed -i -e "s:share/doc/flann:share/doc/${PF}:" doc/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
"-DBUILD_C_BINDINGS=ON"
"-DBUILD_MATLAB_BINDINGS=OFF"
$(cmake-utils_use_build python PYTHON_BINDINGS)
)
cmake-utils_src_configure
}
src_test() {
cd "${CMAKE_BUILD_DIR}"
make test || die
}
|