28 lines
965 B
Ruby
28 lines
965 B
Ruby
class Clinfo < Formula
|
|
desc "Print information about OpenCL platforms and devices"
|
|
homepage "https://github.com/Oblomov/clinfo"
|
|
url "https://github.com/Oblomov/clinfo/archive/3.0.21.02.21.tar.gz"
|
|
sha256 "e52f5c374a10364999d57a1be30219b47fb0b4f090e418f2ca19a0c037c1e694"
|
|
license "CC0-1.0"
|
|
head "https://github.com/Oblomov/clinfo.git"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, big_sur: "cb20a0053dd57a483815485e804884ba93cafde11b2d265285a7ad0b49fd3705"
|
|
sha256 cellar: :any_skip_relocation, catalina: "fe9953456ce92ca4701c040d4971be611671ab058c4743802c4721a5313e2bf1"
|
|
sha256 cellar: :any_skip_relocation, mojave: "6165806150adf656308b999a1fac88effdf0fe5128b39d21c4faa0cda9b3c491"
|
|
end
|
|
|
|
def install
|
|
system "make", "MANDIR=#{man}", "PREFIX=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match(/Device Type +CPU/, shell_output(bin/"clinfo"))
|
|
end
|
|
end
|