From 99f1575aa19c4f727561c8e8a6f858e8c681958d Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Wed, 11 Jan 2023 21:23:33 -0800 Subject: [PATCH] math/annoy: New port: Approximate Nearest Neighbors in C++ --- math/Makefile | 1 + math/annoy/Makefile | 27 +++++++++++++++++++++++++++ math/annoy/distinfo | 3 +++ math/annoy/pkg-descr | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 math/annoy/Makefile create mode 100644 math/annoy/distinfo create mode 100644 math/annoy/pkg-descr diff --git a/math/Makefile b/math/Makefile index 6e2c159a88df..6392ae0c3cdd 100644 --- a/math/Makefile +++ b/math/Makefile @@ -167,6 +167,7 @@ SUBDIR += amgcl SUBDIR += analitza SUBDIR += ann + SUBDIR += annoy SUBDIR += antic SUBDIR += apache-commons-math SUBDIR += apc diff --git a/math/annoy/Makefile b/math/annoy/Makefile new file mode 100644 index 000000000000..ac0bd0c37e3b --- /dev/null +++ b/math/annoy/Makefile @@ -0,0 +1,27 @@ +PORTNAME= annoy +DISTVERSIONPREFIX= v +DISTVERSION= 1.17.1 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Approximate Nearest Neighbors in C++ +WWW= https://github.com/spotify/annoy + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake + +USE_GITHUB= yes +GH_ACCOUNT= spotify + +PLIST_FILES= include/annoy/annoylib.h \ + include/annoy/kissrandom.h \ + include/annoy/mman.h + +NO_ARCH= yes + +do-install: + cd ${WRKSRC}/include && ${COPYTREE_SHARE} annoy ${STAGEDIR}${PREFIX}/include + +.include diff --git a/math/annoy/distinfo b/math/annoy/distinfo new file mode 100644 index 000000000000..7820871881b9 --- /dev/null +++ b/math/annoy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1673498821 +SHA256 (spotify-annoy-v1.17.1_GH0.tar.gz) = 4f7a2f2d86d45b432de68dba06667b23d0ce2b03595d64bd5c05f42dc32e7f4b +SIZE (spotify-annoy-v1.17.1_GH0.tar.gz) = 674087 diff --git a/math/annoy/pkg-descr b/math/annoy/pkg-descr new file mode 100644 index 000000000000..8d40cf570d67 --- /dev/null +++ b/math/annoy/pkg-descr @@ -0,0 +1,4 @@ +Annoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python +bindings to search for points in space that are close to a given query point. +It also creates large read-only file-based data structures that are mmapped +into memory so that many processes may share the same data.