From e9ea8d1e815acb74dcb3115929c9cb776365d5d6 Mon Sep 17 00:00:00 2001 From: darmac Date: Sun, 30 Aug 2020 04:42:19 +0800 Subject: Add new package: wrk (#18390) --- var/spack/repos/builtin/packages/wrk/package.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/wrk/package.py diff --git a/var/spack/repos/builtin/packages/wrk/package.py b/var/spack/repos/builtin/packages/wrk/package.py new file mode 100644 index 0000000000..0eaddbd82e --- /dev/null +++ b/var/spack/repos/builtin/packages/wrk/package.py @@ -0,0 +1,25 @@ +# 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 Wrk(MakefilePackage): + """Wrk is a modern HTTP benchmarking tool capable + of generating significant load when run on a single + multi-core CPU.""" + + homepage = "https://github.com/wg/wrk" + url = "https://github.com/wg/wrk/archive/4.1.0.tar.gz" + + version('4.1.0', sha256='6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e') + version('4.0.2', sha256='a4a6ad6727733023771163e7250189a9a23e6253b5e5025191baa6092d5a26fb') + version('4.0.1', sha256='c03bbc283836cb4b706eb6bfd18e724a8ce475e2c16154c13c6323a845b4327d') + version('4.0.0', sha256='8fa8fb05f4663d03c1ca7804367eb602882f9630441bd56e8e9aaf3a2bd26067') + version('3.1.2', sha256='da88a25f0eeb9e1fd6a9dcf4a96859e9e758f9446f0787cf7c95e4ccde14eefc') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + install('wrk', prefix.bin) -- cgit v1.2.3-70-g09d2