diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-08-04 12:04:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 23:04:09 -0500 |
commit | 1884822b566ed199e4b32c1e092fe0a697600b16 (patch) | |
tree | e9f63649f5ff236111853fc46d2d97e4a5fd3de9 /var | |
parent | 0cc2377de65e12447fc8bf7d2f32c6d8c050de8f (diff) | |
download | spack-1884822b566ed199e4b32c1e092fe0a697600b16.tar.gz spack-1884822b566ed199e4b32c1e092fe0a697600b16.tar.bz2 spack-1884822b566ed199e4b32c1e092fe0a697600b16.tar.xz spack-1884822b566ed199e4b32c1e092fe0a697600b16.zip |
Add new package: slider (#17799)
* Add new package: slider
* refine version check
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/slider/package.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/slider/package.py b/var/spack/repos/builtin/packages/slider/package.py new file mode 100644 index 0000000000..bbc9ce243c --- /dev/null +++ b/var/spack/repos/builtin/packages/slider/package.py @@ -0,0 +1,39 @@ +# 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 Slider(Package): + """Slider is a framework for deployment and management of these + long-running data access applications in Hadoop.""" + + homepage = "https://www.cloudera.com/products/open-source/apache-hadoop/apache-slider.html" + url = "http://archive.apache.org/dist/incubator/slider/0.92.0-incubating/apache-slider-0.92.0-incubating-source-release.tar.gz" + list_url = "http://archive.apache.org/dist/incubator/slider" + list_depth = 1 + + version('0.92.0', sha256='485f02f4f9f0b270017717c9471b83b0d77d005d25261b741fb381791ce838b9') + version('0.91.0', sha256='212a5cde6de60060c9a081f553d66940b70af4bccb469072febb554c4005bcef') + version('0.90.2', sha256='410941f772d29f564c4bb90ca0631f29dc895f509048cb6052f8695302e3f944') + + depends_on('maven', type='build') + depends_on('java@8', type=('build', 'run')) + depends_on('python@2.7.0:2.7.99', type='run') + + def url_for_version(self, version): + return "http://archive.apache.org/dist/incubator/slider/{0}-incubating/apache-slider-{0}-incubating-source-release.tar.gz".format(version) + + def install(self, spec, prefix): + mvn = which('mvn') + mvn('clean', 'package', '-DskipTests') + slider_path = join_path(self.stage.source_path, + 'slider-assembly', 'target', + 'slider-{0}-incubating-all' + .format(spec.version), + 'slider-{0}-incubating' + .format(spec.version)) + with working_dir(slider_path): + install_tree('.', prefix) |