homebrew-fuse/Formula/encfs-mac.rb

44 lines
1.5 KiB
Ruby
Raw Normal View History

2021-04-27 10:10:51 +08:00
require_relative "../require/macfuse"
class EncfsMac < Formula
desc "Encrypted pass-through FUSE file system"
homepage "https://vgough.github.io/encfs/"
url "https://github.com/vgough/encfs/archive/v1.9.5.tar.gz"
sha256 "4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63"
2021-04-24 12:59:33 +08:00
# The code comprising the EncFS library (libencfs) is licensed under the LGPL.
# The main programs (encfs, encfsctl, etc) are licensed under the GPL.
2021-04-27 10:10:51 +08:00
license all_of: ["GPL-3.0-only", "LGPL-3.0-only", "MIT", "Zlib"]
head "https://github.com/vgough/encfs.git"
bottle do
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/encfs-mac-1.9.5"
2021-11-12 00:41:24 +08:00
sha256 monterey: "606d9e55178edbf88c29b36942740f731ace9c913e8db1c0351cc821276115a5"
2021-04-27 15:26:15 +08:00
sha256 big_sur: "1e40532f256119f88304d5fa3033b8a60e513f3c3531cd3471455a83fcebafa7"
sha256 catalina: "ab083e7303625337405e8f384f99d51a5208c54f4cd713dbd99b3bc196da2e90"
2021-04-27 15:43:26 +08:00
sha256 mojave: "7c363d28eac6e6582b352202db79f17f0a0efa4871a4991313c158cd04911dcd"
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
2021-04-27 10:10:51 +08:00
depends_on MacfuseRequirement
depends_on :macos
depends_on "openssl@1.1"
2021-04-24 12:59:33 +08:00
def install
setup_fuse
ENV.cxx11
mkdir "build" do
system "cmake", "..", *fuse_cmake_args, *std_cmake_args
system "make", "install"
end
end
test do
# Functional test violates sandboxing, so punt.
# Issue #50602; upstream issue vgough/encfs#151
assert_match version.to_s, shell_output("#{bin}/encfs 2>&1", 1)
end
end