summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-04-16 00:25:49 +0800
committerGitHub <noreply@github.com>2020-04-15 11:25:49 -0500
commit6eee7b6bb876bb06d936603b4a4bb65a71320d36 (patch)
treef5f411073de0fae6f66438d462729040d6c382d2
parentc470a8da6a42764e7b9b57e4ca7bff11f19819ea (diff)
downloadspack-6eee7b6bb876bb06d936603b4a4bb65a71320d36.tar.gz
spack-6eee7b6bb876bb06d936603b4a4bb65a71320d36.tar.bz2
spack-6eee7b6bb876bb06d936603b4a4bb65a71320d36.tar.xz
spack-6eee7b6bb876bb06d936603b4a4bb65a71320d36.zip
Add new package: mrbench (#16062)
-rw-r--r--var/spack/repos/builtin/packages/mrbench/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mrbench/package.py b/var/spack/repos/builtin/packages/mrbench/package.py
new file mode 100644
index 0000000000..8f1b269b55
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mrbench/package.py
@@ -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)