encfs: Fix license, make macOS-only

This commit is contained in:
Adrian Ho 2021-04-27 10:10:51 +08:00
parent 028348e87c
commit b8d2992721

View file

@ -1,4 +1,4 @@
require_relative "../require/macfuse" if OS.mac?
require_relative "../require/macfuse"
class Encfs < Formula
desc "Encrypted pass-through FUSE file system"
@ -7,7 +7,7 @@ class Encfs < Formula
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"
license all_of: ["GPL-3.0-only", "LGPL-3.0-only", "MIT", "Zlib"]
head "https://github.com/vgough/encfs.git"
bottle do
@ -15,22 +15,15 @@ class Encfs < Formula
sha256 big_sur: "a3ad5e221f05f624c74ff3015164ae6e2bac3a99537b3b0a9d8f0b546130abe7"
sha256 catalina: "41efd14389d04bf5d2a0bc957972b15b6e1ff511452c89749ddc68b6bca6e3e7"
sha256 mojave: "aaf2aa568786ed055114cf54ee4b46acd66f74a7bc10715b446198164afa1871"
sha256 x86_64_linux: "8f4401c6165c596ce0e9f4e526c355cd573581c64da5661e754afde9300e71b5"
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on MacfuseRequirement
depends_on :macos
depends_on "openssl@1.1"
on_macos do
depends_on MacfuseRequirement
end
on_linux do
depends_on "libfuse"
end
def install
ENV.cxx11