53 lines
1.5 KiB
Ruby
53 lines
1.5 KiB
Ruby
class Xmount < Formula
|
|
desc "Convert between multiple input & output disk image types"
|
|
homepage "https://www.pinguin.lu/xmount/"
|
|
url "https://files.pinguin.lu/xmount-0.7.6.tar.gz"
|
|
sha256 "76e544cd55edc2dae32c42a38a04e11336f4985e1d59cec9dd41e9f9af9b0008"
|
|
revision 2
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 catalina: "55de429679b12e85dcfb854d4add045363a287c172b7b77765591d7d1d89324c"
|
|
sha256 mojave: "ae937d5fdba6c278bef72a4f87d62a6dafc2f78ad642ee6995bc228743ed37cd"
|
|
sha256 high_sierra: "a4436c7060d9b84abfa6450c7156cd994f42c130eebf1281e21319d6e5c00415"
|
|
sha256 x86_64_linux: "e33278ea02578921565961c9671d64fe13d5290a0f3bf0db08e636099c382fb8"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "afflib"
|
|
depends_on "libewf"
|
|
depends_on "openssl@1.1"
|
|
|
|
on_macos do
|
|
disable! date: "2021-04-08", because: "requires closed-source macFUSE"
|
|
end
|
|
|
|
on_linux do
|
|
depends_on "libfuse@2"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_path "PKG_CONFIG_PATH", Formula["openssl@1.1"].opt_lib/"pkgconfig"
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
|
|
def caveats
|
|
on_macos do
|
|
<<~EOS
|
|
The reasons for disabling this formula can be found here:
|
|
https://github.com/Homebrew/homebrew-core/pull/64491
|
|
|
|
An external tap may provide a replacement formula. See:
|
|
https://docs.brew.sh/Interesting-Taps-and-Forks
|
|
EOS
|
|
end
|
|
end
|
|
|
|
test do
|
|
system bin/"xmount", "--version"
|
|
end
|
|
end
|