Add new package: mrbench (#16062)

This commit is contained in:
darmac 2020-04-16 00:25:49 +08:00 committed by GitHub
parent c470a8da6a
commit 6eee7b6bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,23 @@
# 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 Mrbench(Package):
"""A simple Java tool for SMTP server benchmarking."""
homepage = "https://github.com/marcorosi/mrbench"
git = "https://github.com/marcorosi/mrbench.git"
version('master', branch='master')
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)