summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-12-19 09:47:35 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2022-12-19 15:44:59 +0100
commit319cfc9e74ce46a1d52a6cc37a6ca094ebcf05b1 (patch)
treeadb94f4b3b02f820919faf20c059233092b9badf /sci-libs
parentsci-libs/libaec: drop 1.0.4 (diff)
downloadgentoo-319cfc9e74ce46a1d52a6cc37a6ca094ebcf05b1.tar.gz
gentoo-319cfc9e74ce46a1d52a6cc37a6ca094ebcf05b1.tar.bz2
gentoo-319cfc9e74ce46a1d52a6cc37a6ca094ebcf05b1.zip
sci-libs/flann: drop 1.9.1-r4
Closes: https://bugs.gentoo.org/886643 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/flann/flann-1.9.1-r4.ebuild95
1 files changed, 0 insertions, 95 deletions
diff --git a/sci-libs/flann/flann-1.9.1-r4.ebuild b/sci-libs/flann/flann-1.9.1-r4.ebuild
deleted file mode 100644
index 299876df8ad3..000000000000
--- a/sci-libs/flann/flann-1.9.1-r4.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake cuda flag-o-matic toolchain-funcs
-
-DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces"
-HOMEPAGE="https://github.com/mariusmuja/flann"
-SRC_URI="https://github.com/mariusmuja/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc x86 ~amd64-linux ~x86-linux"
-IUSE="cuda doc examples mpi octave openmp"
-
-BDEPEND="
- app-arch/unzip
- doc? ( dev-tex/latex2html )
-"
-DEPEND="
- app-arch/lz4:=
- cuda? ( >=dev-util/nvidia-cuda-toolkit-5.5 )
- mpi? (
- dev-libs/boost:=[mpi]
- sci-libs/hdf5[mpi]
- )
- !mpi? ( !sci-libs/hdf5[mpi] )
- octave? ( >=sci-mathematics/octave-3.6.4-r1 )
-"
-RDEPEND="${DEPEND}"
-# TODO:
-# readd dependencies for test suite,
-# requires multiple ruby dependencies
-
-PATCHES=(
- "${FILESDIR}"/${P}-cmake-3.11{,-1}.patch # bug 678030
- "${FILESDIR}"/${P}-cuda-9.patch
- "${FILESDIR}"/${P}-system-lz4.patch # bug 681898
- "${FILESDIR}"/${P}-system-lz4-pkgconfig.patch # bug 827263
-)
-
-pkg_pretend() {
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_prepare() {
- # bug #302621
- use mpi && export CXX=mpicxx
- # produce pure octave files
- # octave gentoo installation for .m files respected
- sed -i \
- -e 's/--mex//' \
- -e 's/\.mex/\.oct/' \
- -e '/FILES/s/${MEX_FILE}//' \
- -e 's:share/flann/octave:share/octave/site/m:' \
- -e "/CUSTOM_TARGET/a\INSTALL(FILES \${MEX_FILE} DESTINATION libexec/octave/site/oct/${CHOST})" \
- src/matlab/CMakeLists.txt || die
- use cuda && cuda_src_prepare
-
- cmake_src_prepare
-}
-
-src_configure() {
- append-cxxflags -std=c++11
-
- # python bindings are split off into dev-python/pyflann
- local mycmakeargs=(
- -DBUILD_C_BINDINGS=ON
- -DBUILD_PYTHON_BINDINGS=OFF
- -DPYTHON_EXECUTABLE=
- -DBUILD_CUDA_LIB=$(usex cuda)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_DOC=$(usex doc)
- -DBUILD_TESTS=OFF
- -DBUILD_MATLAB_BINDINGS=$(usex octave)
- -DUSE_MPI=$(usex mpi)
- -DUSE_OPENMP=$(usex openmp)
- )
- use cuda && mycmakeargs+=(
- -DCUDA_NVCC_FLAGS="${NVCCFLAGS} --linker-options \"-arsch\""
- )
- use doc && mycmakeargs+=( -DDOCDIR=share/doc/${PF} )
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
- find "${D}" -name 'lib*.a' -delete || die
-}