You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/flann/flann-1.6.8.ebuild

49 lines
1.1 KiB

# 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.5 2011/06/26 10:29:06 jlec 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-util/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
}