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