11class Quantumxx < Formula
22 desc "Modern C++ quantum computing library"
33 homepage "https://github.com/softwareQinc/qpp"
4- url "https://github.com/softwareQinc/qpp/archive/refs/tags/v5.1 .tar.gz"
5- sha256 "971483eefbf5e4d427553276d9bfd237e3d22ea8757a1ee7afa25417aca158ea "
4+ url "https://github.com/softwareQinc/qpp/archive/refs/tags/v6.0 .tar.gz"
5+ sha256 "cdd6acf287b2f2dd124120ef2aba85660eee9482f5484dbd229c93b53a7d8a54 "
66 license "MIT"
7+ head "https://github.com/softwareQinc/qpp.git" , branch : "main"
78
89 bottle do
9- sha256 cellar : :any_skip_relocation , all : "0ff3efd01b8a28045694ee46bc49bdbf510652e6318fcf3a7976b545aed1e53d "
10+ sha256 cellar : :any_skip_relocation , all : "13832215cff599c6d60a58a3c40d0206d3f1082c0c42f1a8b9ee2a3c49087be8 "
1011 end
1112
1213 depends_on "cmake" => [ :build , :test ]
14+ depends_on "googletest" => :build
1315 depends_on "eigen"
16+ depends_on "pybind11"
1417
1518 def install
16- system "cmake" , "-S" , "." , "-B" , "build" , *std_cmake_args
17- system "cmake" , "--install" , "build"
19+ args = %w[
20+ -DFETCHCONTENT_FULLY_DISCONNECTED=OFF
21+ -DHOMEBREW_ALLOW_FETCHCONTENT=ON
22+ ]
23+ system "cmake" , "-S" , "." , "-B" , "build" , *args , *std_cmake_args
24+ system "cmake" , "--build" , "build" , "--target" , "install"
1825 end
1926
2027 test do
@@ -29,7 +36,7 @@ def install
2936 CMAKE
3037 ( testpath /"qpp_test.cpp" ) . write <<~CPP
3138 #include <iostream>
32- #include <qpp/qpp.h >
39+ #include <qpp/qpp.hpp >
3340
3441 int main() {
3542 using namespace qpp;
0 commit comments