summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-17 06:30:03 +0800
committerGitHub <noreply@github.com>2020-08-16 17:30:03 -0500
commit34b7d99becd1664c1a5881da178fb4ae8b871bee (patch)
treed90f4fa0c84e9991929f6b1164ecf06ecac1e0a5 /var
parent06a0fe9d942182327d650edcf5e2f9d6f6bbab2c (diff)
downloadspack-34b7d99becd1664c1a5881da178fb4ae8b871bee.tar.gz
spack-34b7d99becd1664c1a5881da178fb4ae8b871bee.tar.bz2
spack-34b7d99becd1664c1a5881da178fb4ae8b871bee.tar.xz
spack-34b7d99becd1664c1a5881da178fb4ae8b871bee.zip
Add new package: mahout (#18048)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mahout/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mahout/package.py b/var/spack/repos/builtin/packages/mahout/package.py
new file mode 100644
index 0000000000..c865e871d4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mahout/package.py
@@ -0,0 +1,29 @@
+# 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 Mahout(Package):
+ """The Apache Mahout project's goal is to build an environment for
+ quickly creating scalable performant machine learning applications."""
+
+ homepage = "https://mahout.apache.org/"
+ url = "https://archive.apache.org/dist/mahout/0.13.0/apache-mahout-distribution-0.13.0-src.tar.gz"
+ list_url = "https://archive.apache.org/dist/mahout"
+ list_depth = 1
+
+ version('0.13.0', sha256='bbe5a584fa83eb4ea3e0c146256e3e913c225426434759458d1423508da7c519')
+ version('0.12.2', sha256='cac9a3fd4f11b2cb850b86d1bd23aec90e960cfae91850c49056c2eaae71afba')
+ version('0.12.1', sha256='32e334115e4b2bfa21ba58e888fc47cdde2ca32c915d1694ed6761bda3b05dbb')
+ version('0.12.0', sha256='65f340072131b1178b7bf4da115782254bdb20d6abd9789f10fc6dfe1ea7e7ad')
+
+ depends_on('maven', type='build')
+ depends_on('java@8', type=('build', 'run'))
+
+ def install(self, spec, prefix):
+ mvn = which('mvn')
+ mvn('package', '-DskipTests')
+ install_tree('.', prefix)