-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwarfs.rb
54 lines (50 loc) · 1.65 KB
/
dwarfs.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
require_relative "macfuse"
class Dwarfs < Formula
desc "efficient high-compression read-only filesystem"
homepage "https://github.com/mhx/dwarfs"
url "http://bananas.debian.net/macos/dwarfs/dwarfs-0.9.9.orig.tar.xz"
sha256 "76db2515e12530319a90798703d788e50c3c6eb96a993b8f89e2349e23bd6354"
license "GPL-3.0"
depends_on "cmake" => :build
depends_on "pkgconf" => :build
depends_on "xxhash" => :build
depends_on "range-v3" => :build
depends_on "libarchive" => :build
depends_on "brotli" => :build
depends_on "libdwarf" => :build
depends_on "libelf" => :build
depends_on "libunwind-headers" => :build
depends_on "jemalloc" => :build
depends_on "ronn" => :build
depends_on "xz" => :build
depends_on "double-conversion" => :build
depends_on "ninja" => :build
depends_on "python3" => :build
depends_on "howard-hinnant-date" => :build
depends_on "glog" => :build
depends_on "libevent" => :build
depends_on "flac" => :build
depends_on "openssl" => :build
depends_on "utf8cpp" => :build
depends_on "boost" => :build
depends_on "zstd" => :build
depends_on MacfuseRequirement
def install
system "cmake", "."
system "make"
bin.install "dwarfs"
bin.install "dwarfsbench"
bin.install "dwarfsck"
bin.install "dwarfsextract"
bin.install "mkdwarfs"
# mount.dwarfs symlink to dwarfs
man1.install "man1/dwarfs.1" => "dwarfs.1"
man1.install "man1/dwarfsck.1" => "dwarfsck.1"
man1.install "man1/dwarfsextract.1" => "dwarfsextract.1"
man1.install "man1/mkdwarfs.1" => "mkdwarfs.1"
man5.install "man5/dwarfs-format.5" => "dwarfs-format.5"
end
test do
system "#{bin}/dwarfs", "-v"
end
end