-
Notifications
You must be signed in to change notification settings - Fork 2
/
cgminer.rb
29 lines (24 loc) · 825 Bytes
/
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
require 'formula'
class Cgminer < Formula
homepage ""
url 'https://github.com/vthoang/cgminer.git', :branch => 'master'
version "4.11.1"
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'coreutils' => :build
depends_on 'curl'
depends_on 'libusb'
def install
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-gekko"
system "make", "install"
end
test do
system "false"
end
end