@@ -3,21 +3,18 @@ class Gcovr < Formula
33
44 desc "Reports from gcov test coverage program"
55 homepage "https://gcovr.com/"
6- url "https://files.pythonhosted.org/packages/40/9f/2883275d71f27f81919a7f000afe7eb344496ab74d62e1c0e4a804918b9f /gcovr-8.3 .tar.gz"
7- sha256 "faa371f9c4a7f78c9800da655107d4f99f04b718d1c0d9f48cafdcbef0049079 "
6+ url "https://files.pythonhosted.org/packages/e4/ce/b7516854699f807f58c3c9801ad44de7f51a952be16b62a5948b358f1aa4 /gcovr-8.4 .tar.gz"
7+ sha256 "8ea0cf23176b1029f28db679d712ca6477b3807097c3755c135bdc53b51cfa72 "
88 license "BSD-3-Clause"
9- revision 1
10- head "https://github.com/gcovr/gcovr.git" , branch : "master"
9+ head "https://github.com/gcovr/gcovr.git" , branch : "main"
1110
1211 bottle do
13- sha256 cellar : :any_skip_relocation , arm64_tahoe : "d1405218652e7b7cd26ad0f5517e10e3d4da082c06f00a36b4cf5a1843a48eb1"
14- sha256 cellar : :any_skip_relocation , arm64_sequoia : "9bbb80b9db76a6b006d56229948f56abae10a00ede9fe0a4546bddf847d078e1"
15- sha256 cellar : :any_skip_relocation , arm64_sonoma : "fe5e05f6529a00d03b708fa4588b2741d9b7f1df01905a55a4e4dbc6ab254fff"
16- sha256 cellar : :any_skip_relocation , arm64_ventura : "0fd089bfa06c18013cae107199c2da512fb7b9c2a4bdb7cdaf260f17931681c3"
17- sha256 cellar : :any_skip_relocation , sonoma : "7dcdf19da6dd9ac9a6aebc0da570b5a849ecd0f39ef195c287c0f765c933fd96"
18- sha256 cellar : :any_skip_relocation , ventura : "823beec7344b7dce24e94660603d5a4c9b1199ed232803983ee70e92a3a0e992"
19- sha256 cellar : :any_skip_relocation , arm64_linux : "e2f76e4d8551cc2f636aa90b60a9cffbdb9d6a17dcee8d0ed5c6e5f232887568"
20- sha256 cellar : :any_skip_relocation , x86_64_linux : "1bd87ae3e136cf7758e904e80510ff06c6fa8005c42f38beba6e375248f62a19"
12+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "fbd32a8af206b84c3873eb96392965b16c70521a1684632495d62c018eb34168"
13+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "feccb19c986b8ac416afe0d84e6c86c2d448fa6cbd082638f13730bd9597421d"
14+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "8f7e2021aac091187c7981ae1ac3d8410f87709f7e0cb0ed2647224e0260c5ac"
15+ sha256 cellar : :any_skip_relocation , sonoma : "c894165b29d9e9d6080ede1b7eacebe75a58d8489ab378b6903fdb8438ada3f4"
16+ sha256 cellar : :any_skip_relocation , arm64_linux : "904fd0a938350ede0dbca166c3580e7d702069afc6658e268977d137b40b4998"
17+ sha256 cellar : :any_skip_relocation , x86_64_linux : "6af0f56c662192c902dbf1a334676fbc7f0fdae86461e7b3d659fa38b28e6729"
2118 end
2219
2320@@ -36,28 +33,34 @@ class Gcovr < Formula
3633 end
3734
3835 resource "lxml" do
39- url "https://files.pythonhosted.org/packages/ef/f6/c15ca8e5646e937c148e147244817672cf920b56ac0bf2cc1512ae674be8 /lxml-5.3.1 .tar.gz"
40- sha256 "106b7b5d2977b339f1e97efe2778e2ab20e99994cbb0ec5e55771ed0795920c8 "
36+ url "https://files.pythonhosted.org/packages/aa/88/262177de60548e5a2bfc46ad28232c9e9cbde697bd94132aeb80364675cb /lxml-6.0.2 .tar.gz"
37+ sha256 "cd79f3367bd74b317dda655dc8fcfa304d9eb6e4fb06b7168c5cf27f96e0cd62 "
4138 end
4239
4340 resource "markupsafe" do
44- url "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62 /markupsafe-3.0.2 .tar.gz"
45- sha256 "ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0 "
41+ url "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7 /markupsafe-3.0.3 .tar.gz"
42+ sha256 "722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698 "
4643 end
4744
4845 resource "pygments" do
49- url "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84 /pygments-2.19.1 .tar.gz"
50- sha256 "61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f "
46+ url "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924 /pygments-2.19.2 .tar.gz"
47+ sha256 "636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887 "
5148 end
5249
5350 def install
5451 virtualenv_install_with_resources
5552 end
5653
5754 test do
58- ( testpath /"example.c" ) . write "int main() { return 0; }"
59- system ENV . cc , "-fprofile-arcs" , "-ftest-coverage" , "-fPIC" , "-O0" , "-o" ,
60- "example" , "example.c"
61- assert_match "Code Coverage Report" , shell_output ( "#{ bin } /gcovr -r ." )
55+ ( testpath /"example.c" ) . write <<~C
56+ int main() {
57+ return 0;
58+ }
59+ C
60+
61+ # gcov must match the c compiler version, which is gcc-12 on linux
62+ ENV [ "GCOV" ] = ENV . cc . sub ( "gcc" , "gcov" ) if OS . linux?
63+ system ENV . cc , "--coverage" , "-g" , "-O0" , "-o" , "example" , "example.c"
64+ assert_match "Code Coverage Report" , shell_output ( "#{ bin } /gcovr" )
6265 end
6366end
0 commit comments