From 7add9de2e531e7a498cff85c20ff474d6d4eddec Mon Sep 17 00:00:00 2001
From: ketsubouchi <kenta.tsubouchi@allin-one.jp>
Date: Sat, 13 Feb 2021 03:00:54 +0900
Subject: neartree: new package at v3.1 (#21534)

---
 .../repos/builtin/packages/neartree/package.py     | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 var/spack/repos/builtin/packages/neartree/package.py

diff --git a/var/spack/repos/builtin/packages/neartree/package.py b/var/spack/repos/builtin/packages/neartree/package.py
new file mode 100644
index 0000000000..51da0d1813
--- /dev/null
+++ b/var/spack/repos/builtin/packages/neartree/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Neartree(MakefilePackage):
+    """This is a release of an API for finding nearest neighbors among
+    points in spaces of arbitrary dimensions."""
+
+    homepage = "http://neartree.sourceforge.net/"
+    url      = "https://downloads.sourceforge.net/project/neartree/neartree/NearTree-3.1/NearTree-3.1.tar.gz"
+
+    version('3.1', sha256='07b668516f15a7c13c219fd005b14e73bced5dc6b23857edcc24d3e5cf0d3be3')
+
+    depends_on('libtool',  type='build')
+    depends_on('cvector')
+
+    def edit(self, spec, prefix):
+        mf = FileFilter('Makefile')
+        mf.filter(r'^CC.+', "CC = {0}".format(spack_cc))
+        mf.filter(r'^INSTALL_PREFIX .+', "INSTALL_PREFIX = {0}".format(prefix))
+
+    def build(self, spec, prefix):
+        pass
-- 
cgit v1.2.3-70-g09d2