This repository has been archived by the owner on Dec 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxolominer.rb
52 lines (42 loc) · 1.55 KB
/
xolominer.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
44
45
46
47
48
49
50
51
require 'formula'
class Xolominer < Formula
homepage 'http://primecoin.org/'
url 'https://github.com/lokkju/primecoin.git', :revision => 'e71d317a5ba9b587f6f37c8e2f34458ae486dd65'
head 'https://github.com/lokkju/primecoin.git'
version '0.8.RC1-2'
sha1 ''
depends_on 'leveldb'
depends_on 'boost'
depends_on 'berkeley-db4'
depends_on 'openssl'
depends_on 'miniupnpc'
depends_on 'gmp'
def install
# Remove unrecognized options if warned by configure
Dir.chdir "src"
system "make","-f","makefile.osx"
File.rename "primeminer","xolominer"
bin.install "xolominer"
end
def patches
# DATA
end
def caveats; <<-EOS.undent
Bug reports and suggestions for this homebrew formula may be filed at: https://github.com/lokkju/homebrew-formulae/issues/
Bug reports and suggestions for this branch of the xolominer project may be filed at: https://github.com/lokkju/primecoin/issues/
If you find this formula useful, consider sending a tip to the formula author at XPM: AN7g5PqQdYJhrSNfG5soHVX7xkzzPsB4HL
EOS
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test Extremecoin`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "--version"`.
system "false"
end
end
__END__