@@ -3,8 +3,8 @@ class Dssp < Formula
33 # cite Kabsch_1983: "https://doi.org/10.1002/bip.360221211"
44 desc "Assign secondary structure to proteins"
55 homepage "https://github.com/PDB-REDO/dssp"
6- url "https://github.com/PDB-REDO/dssp/archive/refs/tags/v4.5.6 .tar.gz"
7- sha256 "940062a5c97be30546af045020761dbba68d4ca64cbaf2343b3765c0bf1f10b3 "
6+ url "https://github.com/PDB-REDO/dssp/archive/refs/tags/v4.5.8 .tar.gz"
7+ sha256 "634bf8d8dd96954bd680da90f3dcb66b87189c13b12b52b61de8af9d597b74ac "
88 license "BSD-2-Clause"
99 head "https://github.com/PDB-REDO/dssp.git" , branch : "trunk"
1010
@@ -19,6 +19,7 @@ class Dssp < Formula
1919
2020 depends_on "cmake" => :build
2121 depends_on "eigen" => :build
22+ depends_on "fast_float" => :build
2223 depends_on "pkgconf" => :build
2324 depends_on "boost"
2425 depends_on "boost-python3"
@@ -48,13 +49,13 @@ class Dssp < Formula
4849 end
4950
5051 resource "libcifpp" do
51- url "https://github.com/PDB-REDO/libcifpp/archive/refs/tags/v9.0.3 .tar.gz"
52- sha256 "f4f359d77c4e29b95a7d3a85658c783022def8f70a9bb94a9da47111f45f5edd "
52+ url "https://github.com/PDB-REDO/libcifpp/archive/refs/tags/v9.0.6 .tar.gz"
53+ sha256 "e6263a63404762671d6875de385e0c7ad869b0fe3fae41808003e00c94e7ed8c "
5354 end
5455
5556 resource "libmcfp" do
56- url "https://github.com/mhekkel/libmcfp/archive/refs/tags/v1.4.2 .tar.gz"
57- sha256 "dcdf3e81601081b2a9e2f2e1bb1ee2a8545190358d5d9bec9158ad70f5ca355e "
57+ url "https://github.com/mhekkel/libmcfp/archive/refs/tags/v2.0.0 .tar.gz"
58+ sha256 "696d1fc1b8280ccc51af311458596220a20865b5fd1402a0f719120b5b4fd2a2 "
5859 end
5960
6061 resource "homebrew-testdata" do
@@ -79,6 +80,14 @@ def install
7980
8081 resource ( "libmcfp" ) . stage do
8182 # libmcfp should be installed in 'prefix' directory since the path of dic files are always required.
83+ if OS . mac? && MacOS . version <= :sequoia
84+ inreplace "CMakeLists.txt" do |s |
85+ s . gsub! "if(NOT STD_CHARCONV_COMPILING)\n \t message" ,
86+ "find_package(FastFloat 8.0 QUIET CONFIG)\n if(STD_CHARCONV_COMPILING)\n \t message"
87+ s . gsub! "PRIVATE $<TARGET_PROPERTY:FastFloat::fast_float,INTERFACE_INCLUDE_DIRECTORIES>" ,
88+ "PRIVATE FastFloat::fast_float"
89+ end
90+ end
8291 system "cmake" , "-S" , "." , "-B" , "build" ,
8392 "-DCMAKE_CXX_STANDARD=20" ,
8493 *std_cmake_args ( install_prefix : prefix /"libmcfp" )
@@ -90,10 +99,15 @@ def install
9099 'LIBRARY DESTINATION "${Python_SITELIB}"' ,
91100 "LIBRARY DESTINATION #{ prefix /Language ::Python . site_packages ( python3 ) } "
92101
93- dssp_rpath = rpath ( source : prefix / Language :: Python . site_packages ( python3 ) / "dssp" )
94- inreplace " python-module/CMakeLists.txt" , " ${Python_LIBRARIES}",
95- " -Wl,-undefined,dynamic_lookup,-rpath,#{ dssp_rpath } "
102+ inreplace "python-module/CMakeLists.txt" ,
103+ "Boost:: python ${Python_LIBRARIES}",
104+ "Boost::python -Wl,-undefined,dynamic_lookup,-rpath,#{ prefix / Language :: Python . site_packages ( python3 ) / "dssp" } "
96105
106+ if OS . mac? && MacOS . version <= :sequoia
107+ inreplace "CMakeLists.txt" ,
108+ "find_package(mrc QUIET)" ,
109+ "find_package(mrc QUIET)\n find_package(FastFloat 8.0 QUIET CONFIG)"
110+ end
97111 system "cmake" , "-S" , "." , "-B" , "build" ,
98112 "-Dcifpp_DIR=#{ prefix /"libcifpp/lib/cmake/cifpp" } " ,
99113 "-Dmcfp_DIR=#{ prefix /"libmcfp/lib/cmake/mcfp" } " ,
0 commit comments