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
parent
66cf84f9e0
commit
5453f9116a
|
@ -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
|
Loading…
Reference in New Issue