summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-04-08 00:57:21 +0800
committerGitHub <noreply@github.com>2020-04-07 11:57:21 -0500
commitcb9c86e5262e14bc257a7aef7f1fd0525dbe0bb8 (patch)
treedff8680a68904bd31222a1c56518eb0f003ad085 /var
parent8b275080ea56b3545a40993ea6e8008d7f60d38d (diff)
downloadspack-cb9c86e5262e14bc257a7aef7f1fd0525dbe0bb8.tar.gz
spack-cb9c86e5262e14bc257a7aef7f1fd0525dbe0bb8.tar.bz2
spack-cb9c86e5262e14bc257a7aef7f1fd0525dbe0bb8.tar.xz
spack-cb9c86e5262e14bc257a7aef7f1fd0525dbe0bb8.zip
Add new package: shark (#15913)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/shark/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/shark/package.py b/var/spack/repos/builtin/packages/shark/package.py
new file mode 100644
index 0000000000..6c6fa433a4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/shark/package.py
@@ -0,0 +1,25 @@
+# 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 Shark(CMakePackage):
+ """Shark is a fast, modular, general open-source C++ machine
+ learning library. """
+
+ homepage = "http://www.shark-ml.org/"
+ url = "https://github.com/Shark-ML/Shark/archive/v4.0.1.tar.gz"
+
+ version('4.0.1', sha256='1caf9c73c5ebf54f9543a090e2b05ac646f95559aa1de483cd7662c378c1ec21')
+ version('4.0.0', sha256='19d4099776327d5f8a2e2be286818c6081c61eb13ca279c1e438c86e70d90210')
+ version('3.1.4', sha256='160c35ddeae3f6aeac3ce132ea4ba2611ece39eee347de2faa3ca52639dc6311')
+
+ depends_on('boost')
+
+ def cmake_args(self):
+ args = ["-DBoost_USE_STATIC_LIBS=ON", "-DBOOST_ROOT={0}".format(
+ self.spec['boost'].prefix)]
+ return args