File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ class Cryfs < Formula
33 homepage "https://www.cryfs.org"
44 url "https://github.com/cryfs/cryfs/releases/download/0.9.9/cryfs-0.9.9.tar.xz"
55 sha256 "aa8d90bb4c821cf8347f0f4cbc5f68a1e0f4eb461ffd8f1ee093c4d37eac2908"
6- head "https://github.com/cryfs/cryfs.git" , :branch => "develop"
76
87 bottle do
98 cellar :any
@@ -13,6 +12,11 @@ class Cryfs < Formula
1312 sha256 "2fab8415b94e7b2f782ec642e2e4fb0ce345524f5fd014cc21d14b2b410c8635" => :el_capitan
1413 end
1514
15+ head do
16+ url "https://github.com/cryfs/cryfs.git" , :branch => "develop" , :shallow => false
17+ depends_on "libomp"
18+ end
19+
1620 depends_on "cmake" => :build
1721 depends_on "boost"
1822 depends_on "cryptopp"
@@ -22,7 +26,22 @@ class Cryfs < Formula
2226 needs :cxx11
2327
2428 def install
25- system "cmake" , "." , "-DBUILD_TESTING=off" , *std_cmake_args
29+ configure_args = [
30+ "-DBUILD_TESTING=off" ,
31+ ]
32+
33+ if build . head?
34+ libomp = Formula [ "libomp" ]
35+ configure_args . concat (
36+ [
37+ "-DOpenMP_CXX_FLAGS='-Xpreprocessor -fopenmp -I#{ libomp . include } '" ,
38+ "-DOpenMP_CXX_LIB_NAMES=omp" ,
39+ "-DOpenMP_omp_LIBRARY=#{ libomp . lib } /libomp.dylib" ,
40+ ] ,
41+ )
42+ end
43+
44+ system "cmake" , "." , *configure_args , *std_cmake_args
2645 system "make" , "install"
2746 end
2847
You can’t perform that action at this time.
0 commit comments