1 |
commit: 535129904c2663195386eb41bd676ed3100fc0bd |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 12:17:17 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 15:41:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53512990 |
7 |
|
8 |
sci-libs/flann: Drop unmaintained 9999 ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
sci-libs/flann/flann-9999.ebuild | 92 ---------------------------------------- |
14 |
1 file changed, 92 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/flann/flann-9999.ebuild b/sci-libs/flann/flann-9999.ebuild |
17 |
deleted file mode 100644 |
18 |
index 04b6a5770ac..00000000000 |
19 |
--- a/sci-libs/flann/flann-9999.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,92 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-inherit cmake-utils cuda flag-o-matic git-r3 toolchain-funcs |
28 |
- |
29 |
-DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces" |
30 |
-HOMEPAGE="https://www.cs.ubc.ca/research/flann/" |
31 |
-EGIT_REPO_URI="https://github.com/mariusmuja/flann.git" |
32 |
- |
33 |
-LICENSE="BSD" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="" |
36 |
-IUSE="cuda doc examples mpi openmp octave static-libs" |
37 |
- |
38 |
-BDEPEND=" |
39 |
- doc? ( dev-tex/latex2html ) |
40 |
-" |
41 |
-DEPEND=" |
42 |
- app-arch/lz4:= |
43 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-5.5 ) |
44 |
- mpi? ( |
45 |
- sci-libs/hdf5[mpi] |
46 |
- dev-libs/boost:=[mpi] |
47 |
- ) |
48 |
- !mpi? ( !sci-libs/hdf5[mpi] ) |
49 |
- octave? ( >=sci-mathematics/octave-3.6.4-r1 ) |
50 |
-" |
51 |
-RDEPEND="${DEPEND}" |
52 |
-# TODO: |
53 |
-# readd dependencies for test suite, |
54 |
-# requires multiple ruby dependencies |
55 |
- |
56 |
-PATCHES=( "${FILESDIR}"/flann-1.9.1-cmake-3.11.patch ) |
57 |
- |
58 |
-pkg_pretend() { |
59 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
60 |
-} |
61 |
- |
62 |
-pkg_setup() { |
63 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
64 |
-} |
65 |
- |
66 |
-src_prepare() { |
67 |
- # bug #302621 |
68 |
- use mpi && export CXX=mpicxx |
69 |
- # produce pure octave files |
70 |
- # octave gentoo installation for .m files respected |
71 |
- sed -i \ |
72 |
- -e 's/--mex//' \ |
73 |
- -e 's/\.mex/\.oct/' \ |
74 |
- -e '/FILES/s/${MEX_FILE}//' \ |
75 |
- -e 's:share/flann/octave:share/octave/site/m:' \ |
76 |
- -e "/CUSTOM_TARGET/a\INSTALL(FILES \${MEX_FILE} DESTINATION libexec/octave/site/oct/${CHOST})" \ |
77 |
- src/matlab/CMakeLists.txt || die |
78 |
- use cuda && cuda_src_prepare |
79 |
- |
80 |
- cmake-utils_src_prepare |
81 |
-} |
82 |
- |
83 |
-src_configure() { |
84 |
- append-cxxflags -std=c++11 |
85 |
- |
86 |
- # python bindings are split |
87 |
- # off into dev-python/pyflann |
88 |
- local mycmakeargs=( |
89 |
- -DBUILD_C_BINDINGS=ON |
90 |
- -DBUILD_PYTHON_BINDINGS=OFF |
91 |
- -DPYTHON_EXECUTABLE= |
92 |
- -DBUILD_CUDA_LIB=$(usex cuda) |
93 |
- -DBUILD_EXAMPLES=$(usex examples) |
94 |
- -DBUILD_DOC=$(usex doc) |
95 |
- -DBUILD_TESTS=OFF |
96 |
- -DBUILD_MATLAB_BINDINGS=$(usex octave) |
97 |
- -DUSE_MPI=$(usex mpi) |
98 |
- -DUSE_OPENMP=$(usex openmp) |
99 |
- ) |
100 |
- use cuda && mycmakeargs+=( |
101 |
- -DCUDA_NVCC_FLAGS="${NVCCFLAGS} --linker-options \"-arsch\"" |
102 |
- ) |
103 |
- use doc && mycmakeargs+=( -DDOCDIR=share/doc/${PF} ) |
104 |
- |
105 |
- cmake-utils_src_configure |
106 |
-} |
107 |
- |
108 |
-src_install() { |
109 |
- cmake-utils_src_install |
110 |
- if ! use static-libs; then |
111 |
- find "${D}" -name 'lib*.a' -delete || die |
112 |
- fi |
113 |
-} |