Last active
December 17, 2015 03:19
-
-
Save acidtib/5542493 to your computer and use it in GitHub Desktop.
Homebrew formula for cgminer brew install GIST_RAW_URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Cgminer < Formula | |
| homepage 'https://github.com/ckolivas/cgminer' | |
| url 'https://github.com/ckolivas/cgminer/archive/v3.1.0.tar.gz' | |
| sha1 '745465a0626b5c398aa1a675f533445e79a3cef4' | |
| 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 'jansson' | |
| depends_on 'libusb' | |
| def install | |
| inreplace "autogen.sh", "readlink", "greadlink" | |
| system "./autogen.sh", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}", | |
| "PKG_CONFIG_PATH=/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig", | |
| "--enable-bflsc" | |
| system "make", "install" | |
| end | |
| test do | |
| system "cgminer" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment