sci-libs/nanoflann: initial commit; add version 1.2.3 to the tree
authorMatthias Maier <tamiko@gentoo.org>
Mon, 14 Aug 2017 15:57:59 +0000 (10:57 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 14 Aug 2017 16:01:03 +0000 (11:01 -0500)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

sci-libs/nanoflann/Manifest [new file with mode: 0644]
sci-libs/nanoflann/metadata.xml [new file with mode: 0644]
sci-libs/nanoflann/nanoflann-1.2.3.ebuild [new file with mode: 0644]

diff --git a/sci-libs/nanoflann/Manifest b/sci-libs/nanoflann/Manifest
new file mode 100644 (file)
index 0000000..09abb93
--- /dev/null
@@ -0,0 +1 @@
+DIST nanoflann-1.2.3.tar.gz 1157793 SHA256 5ef4dfb23872379fe9eb306aabd19c9df4cae852b72a923af01aea5e8d7a59c3 SHA512 01d5226fb669c9ef21e1bd36bddb07c7bf8bbbf9798e90bfa7966de4ae01e05c669c33a73d37340c41c79fcab81c91c3991077d799a211985b2d0a2a365a8878 WHIRLPOOL 2a1c9a21dbd7571e4c680a2b5e3636086df4e06142d885b390983228a3cf3d36f01d0389fe712f1d9a9106a55887353a1ea7c057a289c727e98b9bf5308c1b20
diff --git a/sci-libs/nanoflann/metadata.xml b/sci-libs/nanoflann/metadata.xml
new file mode 100644 (file)
index 0000000..054bd6c
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>tamiko@gentoo.org</email>
+               <name>Matthias Maier</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>sci@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <longdescription lang="en">
+               nanoflann is a C++ header-only library for building KD-Trees,
+               mostly optimized for 2D or 3D point clouds. This library is a fork
+               (and a subset) of the <pkg>sci-libs/flann</pkg> library.
+       </longdescription>
+       <use>
+       </use>
+       <upstream>
+               <remote-id type="github">jlblancoc/nanoflann</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/sci-libs/nanoflann/nanoflann-1.2.3.ebuild b/sci-libs/nanoflann/nanoflann-1.2.3.ebuild
new file mode 100644 (file)
index 0000000..e82a849
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="C++ header-only library for Nearest Neighbor (NN) search wih KD-trees"
+HOMEPAGE="https://github.com/jlblancoc/nanoflann"
+SRC_URI="https://github.com/jlblancoc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-cpp/eigen:*"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       eapply_user
+
+       # do not compile examples
+       sed -ie 's/add_subdirectory(examples)//g' CMakeLists.txt || die "sed failed"
+}
+
+src_test() {
+       cd "${BUILD_DIR}" && emake -j1 test
+}
+
+src_compile() {
+       :
+}