diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-08-04 12:03:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 23:03:25 -0500 |
commit | 0cc2377de65e12447fc8bf7d2f32c6d8c050de8f (patch) | |
tree | c2b7859077d4490269d0e0db765d405caaad17bb | |
parent | ce7aefbb4fc8905e7bda932844c30bc08c073d00 (diff) | |
download | spack-0cc2377de65e12447fc8bf7d2f32c6d8c050de8f.tar.gz spack-0cc2377de65e12447fc8bf7d2f32c6d8c050de8f.tar.bz2 spack-0cc2377de65e12447fc8bf7d2f32c6d8c050de8f.tar.xz spack-0cc2377de65e12447fc8bf7d2f32c6d8c050de8f.zip |
Add new package: giraph (#17790)
* Add new package: giraph
* refine version check
-rw-r--r-- | var/spack/repos/builtin/packages/giraph/package.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/giraph/package.py b/var/spack/repos/builtin/packages/giraph/package.py new file mode 100644 index 0000000000..1e33b76736 --- /dev/null +++ b/var/spack/repos/builtin/packages/giraph/package.py @@ -0,0 +1,34 @@ +# 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 Giraph(Package): + """Apache Giraph is an iterative graph processing system built + for high scalability.""" + + homepage = "https://giraph.apache.org/" + url = "https://downloads.apache.org/giraph/giraph-1.0.0/giraph-dist-1.0.0-src.tar.gz" + list_url = "https://downloads.apache.org/giraph/" + list_depth = 1 + + version('1.2.0', sha256='6206f4ad220ea42aa0c4abecce343e36026cf9c6e0a2853f1eb08543da452ad1') + version('1.1.0', sha256='181d94b8198c0f312d4611e24b0056b5181c8358a7ec89b0393661736cd19a4c') + + depends_on('maven', type='build') + depends_on('java@8', type=('build', 'run')) + + def install(self, spec, prefix): + mvn = which('mvn') + mvn('clean', 'package', '-DskipTests') + giraph_path = join_path(self.stage.source_path, + 'giraph-dist', 'target', + 'giraph-{0}-for-hadoop-1.2.1-bin' + .format(spec.version), + 'giraph-{0}-for-hadoop-1.2.1' + .format(spec.version)) + with working_dir(giraph_path): + install_tree('.', prefix) |