homebrew-core/Formula/encfs.rb

38 lines
1.1 KiB
Ruby

class Encfs < 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"
# The code comprising the EncFS library (libencfs) is licensed under the LGPL.
# The main programs (encfs, encfsctl, etc) are licensed under the GPL.
license "GPL-3.0"
revision 3
head "https://github.com/vgough/encfs.git", branch: "master"
bottle do
sha256 x86_64_linux: "2c8863fccfcdb4e42cca450763879b7238b5a506a9385b25c3a3c3e2bf27c69d"
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "libfuse@2"
depends_on :linux # on macOS, requires closed-source macFUSE
depends_on "openssl@1.1"
def install
ENV.cxx11
mkdir "build" do
system "cmake", "..", *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