From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C77081396D0 for ; Mon, 14 Aug 2017 16:04:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12384E0D90; Mon, 14 Aug 2017 16:04:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E5C5FE0D90 for ; Mon, 14 Aug 2017 16:04:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B5003417E5 for ; Mon, 14 Aug 2017 16:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C5717842 for ; Mon, 14 Aug 2017 16:04:43 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1502726463.1bcd2a8084e8fc53227d9cf6a9e44dac5a08bd46.tamiko@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/nanoflann/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/nanoflann/nanoflann-9999.ebuild X-VCS-Directories: sci-libs/nanoflann/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 1bcd2a8084e8fc53227d9cf6a9e44dac5a08bd46 X-VCS-Branch: master Date: Mon, 14 Aug 2017 16:04:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c04d4940-58fb-427b-879b-717b05d4d8b2 X-Archives-Hash: bcacb0cef31918730e61e305770e4c46 commit: 1bcd2a8084e8fc53227d9cf6a9e44dac5a08bd46 Author: Matthias Maier gentoo org> AuthorDate: Mon Aug 14 16:00:43 2017 +0000 Commit: Matthias Maier gentoo org> CommitDate: Mon Aug 14 16:01:03 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bcd2a80 sci-libs/nanoflann: add a live ebuild Package-Manager: Portage-2.3.6, Repoman-2.3.3 sci-libs/nanoflann/nanoflann-9999.ebuild | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sci-libs/nanoflann/nanoflann-9999.ebuild b/sci-libs/nanoflann/nanoflann-9999.ebuild new file mode 100644 index 00000000000..2c8467c0046 --- /dev/null +++ b/sci-libs/nanoflann/nanoflann-9999.ebuild @@ -0,0 +1,41 @@ +# 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" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/jlblancoc/nanoflann.git" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/jlblancoc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +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() { + : +}