-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfreeze.rb
31 lines (26 loc) · 874 Bytes
/
freeze.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
class Freeze < Formula
desc "Persistent Storage for Ice Objects"
homepage "https://zeroc.com"
url "https://github.com/zeroc-ice/freeze.git", tag: "v3.7.5"
bottle do
root_url "https://zeroc.com/download/homebrew/bottles"
sha256 cellar: :any_skip_relocation, big_sur: "dc50dbd42e3584afc550df0710fd9646662eebefed67ffa7a4ae6cfe2c205d4e"
end
depends_on "zeroc-ice/tap/[email protected]"
depends_on "zeroc-ice/tap/ice"
def install
args = [
"prefix=#{prefix}",
"V=1",
"ICE_BIN_DIST=all",
"ICE_HOME=#{Formula["ice"].opt_prefix}",
"DB_HOME=#{Formula["[email protected]"].opt_prefix}",
"LANGUAGES=cpp",
]
system "make", "-C", "ice/cpp", "IceUtil", "Slice", "V=1"
system "make", "install", *args
end
test do
system "#{bin}/slice2freeze", "--dict", "StringIntMap,string,int", "StringIntMap"
end
end