1 |
commit: 5c2b0563b86b2624b5a4aef7f96b9d7672e3fd29 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 23 03:40:39 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 23 03:40:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c2b0563 |
7 |
|
8 |
sci-libs/ann: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sci-libs/ann/Manifest | 2 ++ |
14 |
sci-libs/ann/ann-1.1.2_p7.ebuild | 68 ++++++++++++++++++++++++++++++++++++++++ |
15 |
sci-libs/ann/metadata.xml | 16 ++++++++++ |
16 |
3 files changed, 86 insertions(+) |
17 |
|
18 |
diff --git a/sci-libs/ann/Manifest b/sci-libs/ann/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..dc57b22 |
21 |
--- /dev/null |
22 |
+++ b/sci-libs/ann/Manifest |
23 |
@@ -0,0 +1,2 @@ |
24 |
+DIST ann_1.1.2+doc-7.debian.tar.xz 172056 BLAKE2B ca20ef1c53c02b27d8a6b1ee416267ddd719df4e9b3fc7215624dd3253a9a3a7a2e548adb58546566487927e7a5f926f6b66ea9df3d5d35a4341d691750f3d4f SHA512 d575df042676c7a074339eeeaf5fa4c4c7a1739af16c3f05c4c40e2c51df1d05d7c271bcb811b7934707f3f8ab63ac13ea71517a373e775083bafb4f591615d3 |
25 |
+DIST ann_1.1.2+doc.orig.tar.gz 693957 BLAKE2B 8cb9316329b2de8f0870701114f403d6ee20c842c0861f2341f41dc3e111f818b7929b35a099a723d4ec8baaed64cde19da46043a7a2909a870376615e2c322f SHA512 fb004a014add109d0b0949443c4c599795363d20ee65386421f898f5276b5df08714a3cd8d371d5a03417e7c3f7f3451335f90df2ca274ce95c658b958a253ae |
26 |
|
27 |
diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..1716b3b |
30 |
--- /dev/null |
31 |
+++ b/sci-libs/ann/ann-1.1.2_p7.ebuild |
32 |
@@ -0,0 +1,68 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+inherit autotools eutils flag-o-matic |
39 |
+ |
40 |
+MY_PV="${PV//_p*/}" |
41 |
+MY_P="${PN}-${MY_PV}" |
42 |
+ |
43 |
+DESCRIPTION="A Library for Approximate Nearest Neighbor Searching" |
44 |
+HOMEPAGE="https://www.cs.umd.edu/~mount/ANN/" |
45 |
+SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc.orig.tar.gz |
46 |
+http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc-${PV##*p}.debian.tar.xz" |
47 |
+ |
48 |
+LICENSE="LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="debug test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+RDEPEND="" |
54 |
+DEPEND="" |
55 |
+BDEPEND="dev-util/quilt" |
56 |
+ |
57 |
+S="${WORKDIR}/${MY_P}+doc" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ export QUILT_PATCHES="${WORKDIR}/debian/patches" |
61 |
+ export QUILT_SERIES="${QUILT_PATCHES}/series" |
62 |
+ quilt push -a || die |
63 |
+ eapply_user |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ use debug && append-cxxflags -DANN_PERF |
69 |
+ econf --disable-static |
70 |
+} |
71 |
+ |
72 |
+src_test() { |
73 |
+ cd test |
74 |
+ ./ann_test < test1.in > /dev/null || die |
75 |
+ ./ann_test < test2.in > /dev/null || die |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ emake DESTDIR="${D}" install |
80 |
+ insinto /usr/include/ANN |
81 |
+ doins -r include/ANN/. |
82 |
+ |
83 |
+ dodoc doc/ANNmanual.pdf |
84 |
+ dodoc doc/Copyright.txt |
85 |
+ dodoc doc/ReadMe.txt |
86 |
+ |
87 |
+ insinto /usr/share/ANN/sample |
88 |
+ doins sample/query.pts |
89 |
+ doins sample/sample.save |
90 |
+ doins sample/data.pts |
91 |
+ |
92 |
+ cd "${WORKDIR}/debian" |
93 |
+ pod2man --center="User Commands" ann2fig.pod ann2fig.1 |
94 |
+ pod2man --center="User Commands" ann_sample.pod ann_sample.1 |
95 |
+ pod2man --center="User Commands" ann_test.pod ann_test.1 |
96 |
+ doman ann_sample.1 |
97 |
+ doman ann_test.1 |
98 |
+ doman ann2fig.1 |
99 |
+ find "${D}" -name '*.la' -delete || die |
100 |
+} |
101 |
|
102 |
diff --git a/sci-libs/ann/metadata.xml b/sci-libs/ann/metadata.xml |
103 |
new file mode 100644 |
104 |
index 0000000..2931ad8 |
105 |
--- /dev/null |
106 |
+++ b/sci-libs/ann/metadata.xml |
107 |
@@ -0,0 +1,16 @@ |
108 |
+<?xml version="1.0" encoding="UTF-8"?> |
109 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
110 |
+<pkgmetadata> |
111 |
+ <maintainer type="person"> |
112 |
+ <email>lssndrbarbieri@×××××.com</email> |
113 |
+ <name>Alessandro Barbieri</name> |
114 |
+ </maintainer> |
115 |
+ <upstream> |
116 |
+ <maintainer> |
117 |
+ <email>mount@××××××.edu</email> |
118 |
+ <name>Dave Mount</name> |
119 |
+ </maintainer> |
120 |
+ </upstream> |
121 |
+ <longdescription lang="en">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. |
122 |
+ </longdescription> |
123 |
+</pkgmetadata> |