From 5f47170492e6e14830252ac7a9b9499e1950ba44 Mon Sep 17 00:00:00 2001 From: darmac Date: Mon, 14 Sep 2020 22:57:40 +0800 Subject: [PATCH] Add new package: webbench (#18650) * Add new package: webbench * Update var/spack/repos/builtin/packages/webbench/package.py Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../builtin/packages/webbench/package.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 var/spack/repos/builtin/packages/webbench/package.py diff --git a/var/spack/repos/builtin/packages/webbench/package.py b/var/spack/repos/builtin/packages/webbench/package.py new file mode 100644 index 0000000000..8681d283df --- /dev/null +++ b/var/spack/repos/builtin/packages/webbench/package.py @@ -0,0 +1,28 @@ +# 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 Webbench(MakefilePackage): + """Webbench is a simple website pressure test tool used in Linux.""" + + homepage = "http://home.tiscali.cz/~cz210552/webbench.html" + git = "https://github.com/EZLippi/WebBench.git" + + version('1.5', commit='b1acf3c01cc914729fe188dfc8ed761858028d4f') + + depends_on('ntirpc') + + def setup_build_environment(self, env): + env.prepend_path('CPATH', self.spec['ntirpc'].prefix.include.ntirpc) + + def edit(self, spec, prefix): + makefile = FileFilter('Makefile') + makefile.filter('$(DESTDIR)/usr/local/man/man1', self.prefix.man.man1, + string=True) + + def install(self, spec, prefix): + make('install', 'PREFIX={0}'.format(prefix))