forked from atlassian/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunison.rb
27 lines (23 loc) · 945 Bytes
/
unison.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
class Unison < Formula
desc "File synchronization tool for OSX"
homepage "https://www.cis.upenn.edu/~bcpierce/unison/"
url "https://github.com/bcpierce00/unison/archive/v2.48.15v4.tar.gz"
bottle do
cellar :any_skip_relocation
sha256 "1622a673b2bc8ef6d00dd754c26cfd3d5f737ed1dc48a46bbce486fa0f766181" => :high_sierra
sha256 "fd00605490100ec224f5d86a79da341ce639e1d0772fb48cc133672d1bc2a812" => :sierra
sha256 "53c945e143961a5d158a36980664d5be7153b84074bfa4220eee2db35404b7d3" => :el_capitan
end
depends_on "ocaml" => :build
def install
ENV.deparallelize
ENV.delete "CFLAGS" # ocamlopt reads CFLAGS but doesn't understand common options
ENV.delete "NAME" # https://github.com/Homebrew/homebrew/issues/28642
system "make", "UISTYLE=text"
bin.install "src/unison"
prefix.install_metafiles "src"
end
test do
assert_match version.to_s, shell_output("#{bin}/unison -version")
end
end