-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcgminer.rb
43 lines (39 loc) · 1.61 KB
/
cgminer.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'formula'
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
head 'https://github.com/ckolivas/cgminer.git', :branch => 'master'
url 'https://github.com/ckolivas/cgminer/archive/v4.9.1.tar.gz'
sha1 '02caaea660e63a0a53d90e98eb0e256c18ab3f22'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'coreutils' => :build
depends_on 'curl'
def install
inreplace "autogen.sh", "libtoolize", "glibtoolize"
system "autoreconf -fvi"
system "./autogen.sh", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"PKG_CONFIG_PATH=#{HOMEBREW_PREFIX}/opt/curl/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/jansson/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/libusb/lib/pkgconfig",
"--enable-bflsc",
"--enable-bitforce",
"--enable-icarus",
"--enable-modminer",
"--enable-avalon",
"--disable-adl",
"--enable-opencl",
"--enable-bitfury",
"--enable-hashfast",
"--enable-klondike",
"--enable-drillbit",
"--enable-avalon2",
"--enable-blockerupter",
"--enable-cointerra",
"--enable-hashratio"
system "make", "install"
end
test do
system "cgminer"
end
end