From 6f85dc66a730a05899c6f0229954c2f20b6d1570 Mon Sep 17 00:00:00 2001 From: darmac Date: Mon, 25 May 2020 19:46:42 +0800 Subject: [PATCH] testdfsio: added new package at v0.0.1 (#16789) --- .../builtin/packages/testdfsio/package.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 var/spack/repos/builtin/packages/testdfsio/package.py diff --git a/var/spack/repos/builtin/packages/testdfsio/package.py b/var/spack/repos/builtin/packages/testdfsio/package.py new file mode 100644 index 0000000000..890c17cc05 --- /dev/null +++ b/var/spack/repos/builtin/packages/testdfsio/package.py @@ -0,0 +1,24 @@ +# 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 Testdfsio(Package): + """A corrected and enhanced version of Apache Hadoop TestDFSIO""" + + homepage = "https://github.com/tthx/testdfsio" + url = "https://github.com/tthx/testdfsio/archive/0.0.1.tar.gz" + + version('0.0.1', sha256='fe8cc47260ffb3e3ac90e0796ebfe73eb4dac64964ab77671e5d32435339dd09') + + depends_on('maven', type='build') + depends_on('java@8', type=('build', 'run')) + depends_on('hadoop@3.2.1:', type='run') + + def install(self, spec, prefix): + mvn = which('mvn') + mvn('clean', 'package', '-Dmaven.test.skip=true') + install_tree('.', prefix)