bfgminer 5.5.0 (new formula)

* bfgminer 5.5.0 (new formula)
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb
* Update bfgminer.rb

Closes #105560.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Ishaan Ahuja 2022-07-11 10:08:11 -05:00 committed by BrewTestBot
parent 66cf84f9e0
commit 5453f9116a
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 39 additions and 0 deletions

39
Formula/bfgminer.rb Normal file
View File

@ -0,0 +1,39 @@
class Bfgminer < Formula
desc "Modular CPU/GPU/ASIC/FPGA miner written in C"
homepage "http://bfgminer.org"
url "http://bfgminer.org/files/latest/bfgminer-5.5.0.txz"
sha256 "ac254da9a40db375cb25cacdd2f84f95ffd7f442e31d2b9a7f357a48d32cc681"
license "GPL-3.0-or-later"
head "https://github.com/luke-jr/bfgminer.git", branch: "bfgminer"
depends_on "hidapi" => :build
depends_on "libgcrypt" => :build
depends_on "libscrypt" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "uthash" => :build
depends_on "jansson"
depends_on "libevent"
depends_on "libusb"
uses_from_macos "curl"
def install
configure_args = std_configure_args + %w[
--without-system-libbase58
--enable-cpumining
--enable-opencl
--enable-scrypt
--enable-keccak
--enable-bitmain
--enable-alchemist
]
configure_args << "--with-udevrulesdir=#{lib}/udev" if OS.linux?
system "./configure", *configure_args
system "make", "install"
end
test do
assert_match "Work items generated", shell_output("bash -c \"#{bin}/bfgminer --benchmark 2>/dev/null <<< q\"")
end
end