homebrew-core/Formula/clinfo.rb

22 lines
777 B
Ruby
Raw Normal View History

class Clinfo < Formula
desc "Print information about OpenCL platforms and devices"
homepage "https://github.com/Oblomov/clinfo"
url "https://github.com/Oblomov/clinfo/archive/2.2.17.10.25.tar.gz"
sha256 "23cab774915eea6730582abfc449ac57dc10f2ce7b39293e56166ed500383862"
2017-08-20 14:59:29 +00:00
bottle do
cellar :any_skip_relocation
2017-10-26 07:56:59 +00:00
sha256 "301063822ff72ea7885216b4172b0b5ee2fbc4ac6a28e5adf00a9b6f532f4a71" => :high_sierra
sha256 "782a4194425daa821c116f21641d0de02a7af6d58f978fa0d6d94296f3b11fc8" => :sierra
sha256 "16f633430d1c10d5c07dc6b24577263e2b7b08a27435a1c8446bb8aca99a352c" => :el_capitan
2017-08-20 14:59:29 +00:00
end
def install
system "make", "MANDIR=#{man}", "PREFIX=#{prefix}", "install"
end
test do
assert_match /Device Type +CPU/, shell_output(bin/"clinfo")
end
end