mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-08 17:13:58 +00:00
cryfs-mac 1.0.1
Closes #77. Signed-off-by: Adrian Ho <215702+gromgit@users.noreply.github.com>
This commit is contained in:
parent
e7c454fd95
commit
a153103c9e
1 changed files with 17 additions and 18 deletions
|
|
@ -3,11 +3,10 @@ require_relative "../require/macfuse"
|
|||
class CryfsMac < Formula
|
||||
desc "Encrypts your files so you can safely store them in Dropbox, iCloud, etc."
|
||||
homepage "https://www.cryfs.org"
|
||||
url "https://github.com/cryfs/cryfs/releases/download/0.11.3/cryfs-0.11.3.tar.xz"
|
||||
sha256 "18f68e0defdcb7985f4add17cc199b6653d5f2abc6c4d237a0d48ae91a6c81c0"
|
||||
license "LGPL-3.0-only"
|
||||
|
||||
head "https://github.com/cryfs/cryfs.git", branch: "develop", shallow: false
|
||||
url "https://github.com/cryfs/cryfs/releases/download/1.0.1/cryfs-1.0.1.tar.xz"
|
||||
sha256 "7ad4cc45e1060431991538d3e671ec11285896c0d7a24880290945ef3ca248ed"
|
||||
license "LGPL-3.0-or-later"
|
||||
head "https://github.com/cryfs/cryfs.git", branch: "develop"
|
||||
|
||||
bottle do
|
||||
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/cryfs-mac-0.11.3"
|
||||
|
|
@ -18,33 +17,33 @@ class CryfsMac < Formula
|
|||
end
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "conan" => :build
|
||||
depends_on "ninja" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "pkgconf" => :build
|
||||
depends_on "python@3.13" => :build
|
||||
depends_on "boost"
|
||||
depends_on "curl"
|
||||
depends_on "fmt"
|
||||
depends_on "libomp"
|
||||
depends_on MacfuseRequirement
|
||||
depends_on :macos
|
||||
depends_on "openssl@1.1"
|
||||
depends_on "range-v3"
|
||||
depends_on "spdlog"
|
||||
|
||||
def install
|
||||
setup_fuse
|
||||
|
||||
libomp = Formula["libomp"]
|
||||
configure_args = [
|
||||
"-GNinja",
|
||||
libomp_args = [
|
||||
"-DBUILD_TESTING=off",
|
||||
"-DOpenMP_CXX_FLAGS='-Xpreprocessor -fopenmp -I#{libomp.include}'",
|
||||
"-DOpenMP_CXX_LIB_NAMES=omp",
|
||||
"-DOpenMP_omp_LIBRARY=#{libomp.lib}/libomp.dylib",
|
||||
]
|
||||
|
||||
# macFUSE puts pkg-config into /usr/local/lib/pkgconfig, which is not included in
|
||||
# homebrew's default PKG_CONFIG_PATH. We need to tell pkg-config about this path for our build
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{HOMEBREW_PREFIX}/lib/pkgconfig"
|
||||
|
||||
system "cmake", ".", *configure_args, *std_cmake_args
|
||||
system "ninja", "install"
|
||||
system "cmake", "-B", "build", "-S", ".",
|
||||
"-DCRYFS_UPDATE_CHECKS=OFF",
|
||||
"-DDEPENDENCY_CONFIG=cmake-utils/DependenciesFromLocalSystem.cmake",
|
||||
*libomp_args, *std_cmake_args
|
||||
system "cmake", "--build", "build"
|
||||
system "cmake", "--install", "build"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue