-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdcore.rb
More file actions
57 lines (51 loc) · 1.73 KB
/
dcore.rb
File metadata and controls
57 lines (51 loc) · 1.73 KB
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
class Dcore < Formula
desc "Fast, powerful and cost-efficient blockchain"
homepage "https://decent.ch/dcore"
url "https://github.com/DECENTfoundation/DECENT-Network.git", :using => :git, :tag => "1.4.2", :revision => "00d04c1f6c7cd5b26f8c2648bd634b1f61431527"
head "https://github.com/DECENTfoundation/DECENT-Network.git", :branch => "master", :shallow => false
bottle do
root_url "https://dl.bintray.com/decentfoundation/homebrew"
cellar :any_skip_relocation
sha256 "3159627a21430bcff25b08e3078e6a07cea11d5c334a677e2038da4d6e40097c" => :mojave
end
depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "nlohmann-json" => :build
depends_on "cryptopp"
depends_on "ipfs"
depends_on "openssl@1.1"
depends_on "pbc"
depends_on "readline"
def install
system "cmake", ".", *std_cmake_args
system "make", ENV["MAKEFLAGS"], "install"
end
plist_options :manual => "decentd"
def plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/decentd</string>
<string>--daemon</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOS
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
# system "#{bin}/decentd", "--version"
system "true"
end
end