OSDN Git Service

update
[bytom/homebrew-bytom.git] / bytom.rb
1 class Bytom < Formula
2     desc "A digital asset layer protocol is the infrastructure of asset Internet."
3     homepage 'https://bytom.io/'
4     url 'https://github.com/bytom/bytom.git', :tag => 'v1.0.6rc1'
5
6     devel do
7       url 'https://github.com/bytom/bytom.git', :branch => 'dev'
8     end
9   
10     # Require El Capitan at least
11     depends_on :macos => :el_capitan
12   
13     # Is there a better way to ensure that frameworks (IOKit, CoreServices, etc) are installed?
14     depends_on :xcode => :build
15   
16     depends_on 'go' => :build
17   
18     def install
19     #   ENV["GOROOT"] = "#{HOMEBREW_PREFIX}/opt/go/libexec"
20       system "go", "env" # Debug env
21       system "make", "bytomd"
22       system "make", "bytomcli"
23       bin.install 'cmd/bytomd/bytomd'
24       bin.install 'cmd/bytomd/bytomcli'
25     end
26
27     test do
28         system "bytomcli", "version"
29     end
30   end