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 58A5913933E for ; Sun, 11 Jul 2021 07:52:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8768FE0D8A; Sun, 11 Jul 2021 07:52:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 38CB8E0D8A for ; Sun, 11 Jul 2021 07:52:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6A952340A7B for ; Sun, 11 Jul 2021 07:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB7F37A3 for ; Sun, 11 Jul 2021 07:52:04 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1625989816.70a4ef8236768e3d9efbb9f4a8aaf3ad7ddbcc38.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-libs/ann/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-libs/ann/ann-1.1.2_p7-r1.ebuild sci-libs/ann/metadata.xml X-VCS-Directories: sci-libs/ann/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 70a4ef8236768e3d9efbb9f4a8aaf3ad7ddbcc38 X-VCS-Branch: dev Date: Sun, 11 Jul 2021 07:52:04 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ba9f79db-b1c1-44e6-8f05-ba8468c36d9a X-Archives-Hash: ae263921f5b5c977bb16af5b95b53d24 commit: 70a4ef8236768e3d9efbb9f4a8aaf3ad7ddbcc38 Author: Alessandro Barbieri gmail com> AuthorDate: Sun Jul 11 07:50:16 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun Jul 11 07:50:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70a4ef82 sci-libs/ann: fix SONAME Closes: https://bugs.gentoo.org/785550 Signed-off-by: Alessandro Barbieri gmail.com> sci-libs/ann/ann-1.1.2_p7-r1.ebuild | 75 +++++++++++++++++++++++++++++++++++++ sci-libs/ann/metadata.xml | 7 ++++ 2 files changed, 82 insertions(+) diff --git a/sci-libs/ann/ann-1.1.2_p7-r1.ebuild b/sci-libs/ann/ann-1.1.2_p7-r1.ebuild new file mode 100644 index 000000000..9cf70e996 --- /dev/null +++ b/sci-libs/ann/ann-1.1.2_p7-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PV="${PV//_p*/}" +MY_P="${PN}-${MY_PV}" + +inherit autotools eutils flag-o-matic + +DESCRIPTION="A Library for Approximate Nearest Neighbor Searching" +HOMEPAGE=" + https://www.cs.umd.edu/~mount/ANN + https://tracker.debian.org/pkg/ann +" +SRC_URI=" + mirror://debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc.orig.tar.gz + mirror://debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc-${PV##*p}.debian.tar.xz +" +S="${WORKDIR}/${MY_P}+doc" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="profile test" + +BDEPEND="dev-util/quilt" + +RESTRICT="!test? ( test )" +DOCS=( doc/ANNmanual.pdf doc/ReadMe.txt ) + +src_prepare() { + export QUILT_PATCHES="${WORKDIR}/debian/patches" + export QUILT_SERIES="${QUILT_PATCHES}/series" + quilt push -a || die + eapply_user + + eautoreconf +} + +src_configure() { + append-cxxflags "-Wl,-soname=libann.so.0" + use profile && append-cxxflags -DANN_PERF + econf --disable-static +} + +src_test() { + pushd test || die + ./ann_test < test1.in > /dev/null || die + ./ann_test < test2.in > /dev/null || die + popd || die +} + +src_install() { + default + + insinto /usr/include/ANN + doins -r include/ANN/. + + insinto "/usr/share/${P}/sample" + doins sample/query.pts + doins sample/sample.save + doins sample/data.pts + + pushd "${WORKDIR}/debian" || die + pod2man --center="User Commands" ann2fig.pod ann2fig.1 || die + pod2man --center="User Commands" ann_sample.pod ann_sample.1 || die + pod2man --center="User Commands" ann_test.pod ann_test.1 || die + doman ann_sample.1 + doman ann_test.1 + doman ann2fig.1 + popd || die + + find "${D}" -name '*.la' -delete || die +} diff --git a/sci-libs/ann/metadata.xml b/sci-libs/ann/metadata.xml index 2931ad87d..2b91df91a 100644 --- a/sci-libs/ann/metadata.xml +++ b/sci-libs/ann/metadata.xml @@ -10,7 +10,14 @@ mount@cs.umd.edu Dave Mount + + arya@cs.ust.hk + Sunil Arya + + + Enable performance evaluation. (This may slow execution slightly.) + ANN is a library written in C++, which supports data structures and algorithms for both exact and approximate nearest neighbor searching in arbitrarily high dimensions. ANN assumes that distances are measured using any class of distance functions called Minkowski metrics. These include the well known Euclidean distance, Manhattan distance, and max distance. ANN performs quite efficiently for point sets ranging in size from thousands to hundreds of thousands, and in dimensions as high as 20.