Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/flann/
Date: Sat, 23 May 2020 10:53:09
Message-Id: 1590231173.5b0a118d58dcc3e38b542f4c4e9aa53dd3c9d9a9.asturm@gentoo
1 commit: 5b0a118d58dcc3e38b542f4c4e9aa53dd3c9d9a9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 09:44:41 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 10:52:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0a118d
7
8 sci-libs/flann: Drop 1.9.1-r2
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-libs/flann/flann-1.9.1-r2.ebuild | 95 ------------------------------------
14 1 file changed, 95 deletions(-)
15
16 diff --git a/sci-libs/flann/flann-1.9.1-r2.ebuild b/sci-libs/flann/flann-1.9.1-r2.ebuild
17 deleted file mode 100644
18 index f6ffdd259b2..00000000000
19 --- a/sci-libs/flann/flann-1.9.1-r2.ebuild
20 +++ /dev/null
21 @@ -1,95 +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 toolchain-funcs
28 -
29 -DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces"
30 -HOMEPAGE="https://www.cs.ubc.ca/research/flann/"
31 -SRC_URI="https://github.com/mariusmuja/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
32 -
33 -LICENSE="BSD"
34 -SLOT="0"
35 -KEYWORDS="amd64 ~arm arm64 ~ppc x86 ~amd64-linux ~x86-linux"
36 -IUSE="cuda doc examples mpi openmp octave static-libs"
37 -
38 -BDEPEND="
39 - app-arch/unzip
40 - doc? ( dev-tex/latex2html )
41 -"
42 -DEPEND="
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=(
57 - "${FILESDIR}"/${P}-cmake-3.11{,-1}.patch # bug 678030
58 - "${FILESDIR}"/${P}-cuda-9.patch
59 -)
60 -
61 -pkg_pretend() {
62 - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
63 -}
64 -
65 -pkg_setup() {
66 - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
67 -}
68 -
69 -src_prepare() {
70 - # bug #302621
71 - use mpi && export CXX=mpicxx
72 - # produce pure octave files
73 - # octave gentoo installation for .m files respected
74 - sed -i \
75 - -e 's/--mex//' \
76 - -e 's/\.mex/\.oct/' \
77 - -e '/FILES/s/${MEX_FILE}//' \
78 - -e 's:share/flann/octave:share/octave/site/m:' \
79 - -e "/CUSTOM_TARGET/a\INSTALL(FILES \${MEX_FILE} DESTINATION libexec/octave/site/oct/${CHOST})" \
80 - src/matlab/CMakeLists.txt || die
81 - use cuda && cuda_src_prepare
82 -
83 - cmake-utils_src_prepare
84 -}
85 -
86 -src_configure() {
87 - append-cxxflags -std=c++11
88 -
89 - # python bindings are split
90 - # off into dev-python/pyflann
91 - local mycmakeargs=(
92 - -DBUILD_C_BINDINGS=ON
93 - -DBUILD_PYTHON_BINDINGS=OFF
94 - -DPYTHON_EXECUTABLE=
95 - -DBUILD_CUDA_LIB=$(usex cuda)
96 - -DBUILD_EXAMPLES=$(usex examples)
97 - -DBUILD_DOC=$(usex doc)
98 - -DBUILD_TESTS=OFF
99 - -DBUILD_MATLAB_BINDINGS=$(usex octave)
100 - -DUSE_MPI=$(usex mpi)
101 - -DUSE_OPENMP=$(usex openmp)
102 - )
103 - use cuda && mycmakeargs+=(
104 - -DCUDA_NVCC_FLAGS="${NVCCFLAGS} --linker-options \"-arsch\""
105 - )
106 - use doc && mycmakeargs+=( -DDOCDIR=share/doc/${PF} )
107 -
108 - cmake-utils_src_configure
109 -}
110 -
111 -src_install() {
112 - cmake-utils_src_install
113 - if ! use static-libs; then
114 - find "${D}" -name 'lib*.a' -delete || die
115 - fi
116 -}