summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorilbiondo <61497728+ilbiondo@users.noreply.github.com>2020-07-23 17:06:35 +0200
committerGitHub <noreply@github.com>2020-07-23 17:06:35 +0200
commit10dacc258865039cf40d1f47aa165687585c92bd (patch)
tree90d960ec4c6f9703485e03d8aa697bae630fec51 /var
parent5067b956f45187686a10592b1c25037b5881c086 (diff)
downloadspack-10dacc258865039cf40d1f47aa165687585c92bd.tar.gz
spack-10dacc258865039cf40d1f47aa165687585c92bd.tar.bz2
spack-10dacc258865039cf40d1f47aa165687585c92bd.tar.xz
spack-10dacc258865039cf40d1f47aa165687585c92bd.zip
nn-c: added new package at v1.86.2 (#17675)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nn-c/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nn-c/package.py b/var/spack/repos/builtin/packages/nn-c/package.py
new file mode 100644
index 0000000000..20fa95054d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nn-c/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2020 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 NnC(AutotoolsPackage):
+ """nn: Natural Neighbours interpolation. nn is a C code
+ for Natural Neighbours interpolation of 2D scattered data.
+ It provides a C library and a command line utility nnbathy."""
+
+ homepage = "https://github.com/sakov/nn-c"
+ git = "https://github.com/sakov/nn-c.git"
+
+ version('master', branch='master')
+ version('1.86.2', commit='343c7784d38d3270d75d450569fc0b64767c37e9')
+
+ variant('pic', default=True,
+ description='Produce position-independent code (for shared libs)')
+
+ configure_directory = 'nn'
+
+ def configure_args(self):
+ args = []
+ if '+pic' in self.spec:
+ args.extend([
+ 'CFLAGS={0}'.format(self.compiler.pic_flag),
+ 'CXXFLAGS={0}'.format(self.compiler.pic_flag),
+ 'FFLAGS={0}'.format(self.compiler.pic_flag)
+ ])
+ return args