homebrew-core/Formula/phoronix-test-suite.rb

28 lines
922 B
Ruby

class PhoronixTestSuite < Formula
desc "Open-source automated testing/benchmarking software"
homepage "https://www.phoronix-test-suite.com/"
url "https://github.com/phoronix-test-suite/phoronix-test-suite/archive/v9.8.0.tar.gz"
sha256 "6313c5ad1fa4a62726f1347c3674a704582ec5a3a0ca1af20b034ccc6f64af9e"
license "GPL-3.0"
head "https://github.com/phoronix-test-suite/phoronix-test-suite.git"
bottle :unneeded
def install
ENV["DESTDIR"] = buildpath/"dest"
system "./install-sh", prefix
prefix.install (buildpath/"dest/#{prefix}").children
bash_completion.install "dest/#{prefix}/../etc/bash_completion.d/phoronix-test-suite"
end
# 7.4.0 installed files in the formula's rack so clean up the mess.
def post_install
rm_rf [prefix/"../etc", prefix/"../usr"]
end
test do
cd pkgshare
assert_match version.to_s, shell_output("#{bin}/phoronix-test-suite version")
end
end