summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/webbench/package.py
blob: 67e47a24aa6318abf5ca2aa9e7a863f0c0c0d186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2013-2024 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.package 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"

    license("GPL-3.0-or-later")

    version("1.5", commit="b1acf3c01cc914729fe188dfc8ed761858028d4f")

    depends_on("c", type="build")  # generated

    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))