summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mahout/package.py
blob: c865e871d47d58537b1593eda129ee540af7f791 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)