From 34b7d99becd1664c1a5881da178fb4ae8b871bee Mon Sep 17 00:00:00 2001
From: darmac <xiaojun2@hisilicon.com>
Date: Mon, 17 Aug 2020 06:30:03 +0800
Subject: [PATCH] Add new package: mahout (#18048)

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

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)
-- 
GitLab