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
/
securecoin.rb
61 lines (51 loc) · 1.71 KB
/
securecoin.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
52
53
54
55
56
57
58
59
60
61
require 'formula'
class Securecoin < Formula
homepage ''
url 'https://github.com/lokkju/Securecoin/archive/0.8.3-beta-1.tar.gz'
head 'https://github.com/lokkju/Securecoin.git'
version '0.8.3-beta1'
sha1 '3554adda1812558e86ff1a95656ee7b51de58675'
depends_on :x11 => :recommended
depends_on 'boost'
depends_on 'berkeley-db4'
depends_on 'openssl'
depends_on 'miniupnpc'
depends_on 'qrencode' => :recommended
depends_on 'qt' => :recommended
def install
# ENV.j1 # if your formula's build system can't parallelize
# Remove unrecognized options if warned by configure
system "qmake"
system "make"
prefix.install "Securecoin-Qt.app"
Dir.chdir "src"
system "make","-f","makefile.osx"
bin.install "securecoind"
end
def caveats; <<-EOS.undent
Securecoin-Qt.app installed to:
#{prefix}
To link the application to a normal Mac OS X location:
brew linkapps
or:
ln -s #{prefix}/Securecoin-qt.app /Applications
You can also bootstrap your peers.dat and blockchain via the bootstrap.zip file available for this release:
https://github.com/lokkju/Securecoin/releases/download/#{version}/bootstrap.zip
EOS
end
def patches
# DATA
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__