summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/flann/ChangeLog10
-rw-r--r--sci-libs/flann/flann-1.6.8.ebuild43
-rw-r--r--sci-libs/flann/metadata.xml4
3 files changed, 57 insertions, 0 deletions
diff --git a/sci-libs/flann/ChangeLog b/sci-libs/flann/ChangeLog
new file mode 100644
index 000000000000..d0cb4891215d
--- /dev/null
+++ b/sci-libs/flann/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/flann
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/flann/ChangeLog,v 1.1 2011/04/30 19:14:46 dilfridge Exp $
+
+*flann-1.6.8 (30 Apr 2011)
+
+ 30 Apr 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ +flann-1.6.8.ebuild, +metadata.xml:
+ New library, dependency for media-libs/opencv-2.2
+
diff --git a/sci-libs/flann/flann-1.6.8.ebuild b/sci-libs/flann/flann-1.6.8.ebuild
new file mode 100644
index 000000000000..67993b6f504b
--- /dev/null
+++ b/sci-libs/flann/flann-1.6.8.ebuild
@@ -0,0 +1,43 @@
+# 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.1 2011/04/30 19:14:46 dilfridge Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="python? 2:2.5"
+
+inherit python cmake-utils
+
+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}
+ test? ( dev-util/gtest )"
+
+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
+}
diff --git a/sci-libs/flann/metadata.xml b/sci-libs/flann/metadata.xml
new file mode 100644
index 000000000000..4e22a5c46f07
--- /dev/null
+++ b/sci-libs/flann/metadata.xml
@@ -0,0 +1,4 @@
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>