-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
/
encfs.rb
39 lines (35 loc) · 1.31 KB
/
encfs.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
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
rebuild 1
sha256 x86_64_linux: "765ec364935df8b4e7d4845cd287d70cc2eaeb6ef7634c5109fe27f0dc0bb1fd"
end
depends_on "cmake" => :build
depends_on "gettext" => :build
depends_on "pkg-config" => :build
depends_on "libfuse@2"
depends_on :linux # on macOS, requires closed-source macFUSE
depends_on "openssl@3"
depends_on "tinyxml2"
def install
system "cmake", "-S", ".", "-B", "build",
"-DBUILD_UNIT_TESTS=OFF",
"-DUSE_INTERNAL_TINYXML=OFF",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
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