1 |
commit: 42bbc75167e6a65d9fd8c37ef53992c36980057f |
2 |
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 20:58:36 2011 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 20:58:36 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=42bbc751 |
7 |
|
8 |
[sci-libs/flann] Add new ebuild. Requirement for media-libs/opencv |
9 |
|
10 |
--- |
11 |
sci-libs/flann/flann-1.6.8.ebuild | 43 +++++++++++++++++++++++++++++++++++++ |
12 |
1 files changed, 43 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/sci-libs/flann/flann-1.6.8.ebuild b/sci-libs/flann/flann-1.6.8.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..09d4c0a |
17 |
--- /dev/null |
18 |
+++ b/sci-libs/flann/flann-1.6.8.ebuild |
19 |
@@ -0,0 +1,43 @@ |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI=3 |
25 |
+ |
26 |
+PYTHON_DEPEND="python? 2:2.5" |
27 |
+ |
28 |
+inherit python cmake-utils |
29 |
+ |
30 |
+DESCRIPTION="Library for performing fast approximate nearest neighbor searches in high dimensional spaces" |
31 |
+HOMEPAGE="http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN" |
32 |
+SRC_URI="http://people.cs.ubc.ca/~mariusm/uploads/FLANN/${P}-src.zip" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="python test" |
38 |
+ |
39 |
+RDEPEND="sci-libs/hdf5[mpi,threads] |
40 |
+ python? ( dev-python/numpy )" |
41 |
+DEPEND="${DEPEND} |
42 |
+ test? ( dev-util/gtest )" |
43 |
+ |
44 |
+S=${WORKDIR}/${P}-src |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ sed -i -e "s:share/doc/flann:share/doc/${PF}:" doc/CMakeLists.txt || die |
48 |
+} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ local mycmakeargs=( |
52 |
+ "-DBUILD_C_BINDINGS=ON" |
53 |
+ "-DBUILD_MATLAB_BINDINGS=OFF" |
54 |
+ $(cmake-utils_use_build python PYTHON_BINDINGS) |
55 |
+ ) |
56 |
+ cmake-utils_src_configure |
57 |
+} |
58 |
+ |
59 |
+src_test() { |
60 |
+ cd "${CMAKE_BUILD_DIR}" |
61 |
+ make test || die |
62 |
+} |