@@ -6,25 +6,30 @@ class Staq < Formula
66 license "MIT"
77
88 bottle do
9- sha256 cellar : :any_skip_relocation , arm64_sonoma : "f29a73fe7f84e7ba37c5b09f433ecbf3388ab8131b2e185a7890cb42d444c025"
10- sha256 cellar : :any_skip_relocation , arm64_ventura : "609b7cff660d38139392cb80745e992ea20998886c38c9f3e1b99fae0c4540f1 "
11- sha256 cellar : :any_skip_relocation , arm64_monterey : "55e15069ca3e7830d6d5147f60d03dafd118a8636390d0c0584f5e03af46985d "
12- sha256 cellar : :any_skip_relocation , sonoma : "b693740d394888d92fa991b20a5740a2cd27dc28aa29a26a9b232128220f95eb "
13- sha256 cellar : :any_skip_relocation , ventura : "4fc208e0bae6d80eeaa8d440cf13634dc93b07eb0f2fdb138480c0e4f39e4188 "
14- sha256 cellar : :any_skip_relocation , monterey : "68ebaa20a66420c76631803f6285345b27eb71eaa4dfb4f2e95dd3208dcd1f04 "
15- sha256 cellar : :any_skip_relocation , x86_64_linux : "bbbc33cbd8374d3218dcf4da026f5733bd8bed35b8ccbe1c493e9b2618970eca "
9+ rebuild 1
10+ sha256 cellar : :any , arm64_sequoia : "4a78fb5391ce391ef6df17138cd12b2cdb940b6826ad87f31ae4c28e879d1f87 "
11+ sha256 cellar : :any , arm64_sonoma : "ab344e9a41f34a721802904a1f216f9e386c7b4b90036f5058a1d62d5c969ced "
12+ sha256 cellar : :any , arm64_ventura : "64702f48420ef83e1d3d6286b332a785db0cc0860ae9d1ba553171155df563bf "
13+ sha256 cellar : :any , sonoma : "0e2d26ec6e834188613c7c9005c871922ecc6b5e9c92c9da7195b3121f663df3 "
14+ sha256 cellar : :any , ventura : "ba4e7fab6b78e93d8fe4bec9dac21bff7cb88f33101d6d69cf17f8671677a42f "
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "78b7917bca6fd1e92003d7fd4fd308eae7d764f65eecb6cd8a8c41e0a1bfe9f7 "
1616 end
1717
1818 depends_on "cmake" => :build
19+ depends_on "gmp"
1920
2021 def install
21- system "cmake" , "-S" , "." , "-B" , "build" , "-D" , "INSTALL_SOURCES=ON" , *std_cmake_args
22+ system "cmake" , "-S" , "." , "-B" , "build" ,
23+ "-DINSTALL_SOURCES=ON" ,
24+ "-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST=/dev/null" , # skip unused FetchContent
25+ "-DPython3_EXECUTABLE=/dev/null" , # skip macOS /usr/bin/python3
26+ *std_cmake_args
2227 system "cmake" , "--build" , "build"
2328 system "cmake" , "--install" , "build"
2429 end
2530
2631 test do
27- ( testpath /"input.qasm" ) . write <<~EOS
32+ ( testpath /"input.qasm" ) . write <<~QASM
2833 OPENQASM 2.0;
2934 include "qelib1.inc";
3035
@@ -33,14 +38,14 @@ def install
3338 h q[0];
3439 h q[0];
3540 measure q->c;
36- EOS
37- assert_equal <<~EOS , shell_output ( "#{ bin } /staq -O3 ./input.qasm" ) . chomp
41+ QASM
42+ assert_equal <<~QASM , shell_output ( "#{ bin } /staq -O3 ./input.qasm" ) . chomp
3843 OPENQASM 2.0;
3944 include "qelib1.inc";
4045
4146 qreg q[1];
4247 creg c[1];
4348 measure q[0] -> c[0];
44- EOS
49+ QASM
4550 end
4651end
0 commit comments