|
1 | 1 | class Qemu < Formula
|
2 | 2 | desc "Generic machine emulator and virtualizer"
|
3 | 3 | homepage "https://www.qemu.org/"
|
| 4 | + url "https://download.qemu.org/qemu-10.0.2.tar.xz" |
| 5 | + sha256 "ef786f2398cb5184600f69aef4d5d691efd44576a3cff4126d38d4c6fec87759" |
4 | 6 | license "GPL-2.0-only"
|
5 | 7 | head "https://gitlab.com/qemu-project/qemu.git", branch: "master"
|
6 | 8 |
|
7 |
| - stable do |
8 |
| - url "https://download.qemu.org/qemu-10.0.0.tar.xz" |
9 |
| - sha256 "22c075601fdcf8c7b2671a839ebdcef1d4f2973eb6735254fd2e1bd0f30b3896" |
10 |
| - |
11 |
| - # The next four patches fix segmentation faults on macOS 15.0-15.3 |
12 |
| - # See https://github.com/Homebrew/homebrew-core/issues/221154 |
13 |
| - # Changes already merged upstream, remove on next release |
14 |
| - |
15 |
| - patch do |
16 |
| - url "https://gitlab.com/qemu-project/qemu/-/commit/563cd698dffb977eea0ccfef3b95f6f9786766f3.diff" |
17 |
| - sha256 "51d07db06532bdd655bec3fdd7eb15cd2004fc96652f0d4dc25522917c9b129a" |
18 |
| - end |
19 |
| - |
20 |
| - patch do |
21 |
| - url "https://gitlab.com/qemu-project/qemu/-/commit/6804b89fb531f5dd49c1e038214c89272383e220.diff" |
22 |
| - sha256 "7e17787f09488fa731d6de8304b689df767236009c19a3bb662904189028d687" |
23 |
| - end |
24 |
| - |
25 |
| - patch do |
26 |
| - url "https://gitlab.com/qemu-project/qemu/-/commit/797150d69d2edba8b1bd4a7d8c7ba2df1219c503.diff" |
27 |
| - sha256 "82f14935f588f7ee103e2ba25852aa3cbf19a4319588f270e09d3bd33fe83001" |
28 |
| - end |
29 |
| - |
30 |
| - patch do |
31 |
| - url "https://gitlab.com/qemu-project/qemu/-/commit/a5b30be534538dc6e44a68ce9734e45dd08f52ec.diff" |
32 |
| - sha256 "a1ff1e8e7c64e7f7dfe7284277f2bef76b837a4c3a86394dd29768d1b1586818" |
33 |
| - end |
34 |
| - end |
35 |
| - |
36 | 9 | livecheck do
|
37 | 10 | url "https://www.qemu.org/download/"
|
38 | 11 | regex(/href=.*?qemu[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
39 | 12 | end
|
40 | 13 |
|
41 | 14 | bottle do
|
42 |
| - rebuild 1 |
43 |
| - sha256 arm64_sequoia: "7231d454bb9f7fd7cfeff99727552963c3e8e3fba527a081497e6f3d4540d308" |
44 |
| - sha256 arm64_sonoma: "aef31f95edeedeb93fd423a9baf655e532869cdeec46e206662a0a4f7370b285" |
45 |
| - sha256 arm64_ventura: "a071c06840012951d7f2103b64ad44dcaa79ab87aeb80429897f1b3114d8a495" |
46 |
| - sha256 sonoma: "409faa24495d47c4246109b8c10ba9a04e911c5682061cfe5872e8dbe2c2a07c" |
47 |
| - sha256 ventura: "8edf18802c7b11f88926bc6d6d6de2d09b7c967ad3bd0f678b0b1e7c311d556e" |
48 |
| - sha256 arm64_linux: "f1fb82f1381011a958406b1c27ae6070e2d042f73c4d3816c402dbb9e8e285d5" |
49 |
| - sha256 x86_64_linux: "e30368126aeb3ca11ed54502921826fd90a4d15535eb3f8a43d7900655af8ff7" |
| 15 | + sha256 arm64_sequoia: "2fbb46507db3640256480542b89188c6c0ffbea79331ad74af6d1aece2a957c0" |
| 16 | + sha256 arm64_sonoma: "7bffbc3fca962f111f452e8b9f019c77f8611a1d77d09f90cbd69b1234b90619" |
| 17 | + sha256 arm64_ventura: "9a4ab208884863423fe321d33411f0db53fd90a85c5e546a03485faf2732a3b4" |
| 18 | + sha256 sonoma: "19570a46c5d9ecfc29e7f55c5d5940a08dd7ccb270dc4e86124268827550dd31" |
| 19 | + sha256 ventura: "696f8a73d537069b1d4d808b4b02fd96d73ba9d66913201698610a082c671910" |
| 20 | + sha256 arm64_linux: "b74ed8c16cf4a9002f9727b7ef34a76fd1553786f0acb2eb22fb4a87a79b1acf" |
| 21 | + sha256 x86_64_linux: "b79fd2eae50f89ab74184a678291ffe671a7f0d66dfe9145eef615dab2d6e7e2" |
50 | 22 | end
|
51 | 23 |
|
52 | 24 | depends_on "libtool" => :build
|
@@ -92,13 +64,6 @@ class Qemu < Formula
|
92 | 64 | depends_on "systemd"
|
93 | 65 | end
|
94 | 66 |
|
95 |
| - # 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU |
96 |
| - # NOTE: Keep outside test block so that `brew fetch` is able to handle slow download/retries |
97 |
| - resource "homebrew-test-image" do |
98 |
| - url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip" |
99 |
| - sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807" |
100 |
| - end |
101 |
| - |
102 | 67 | def install
|
103 | 68 | ENV["LIBTOOL"] = "glibtool"
|
104 | 69 |
|
@@ -144,6 +109,13 @@ def install
|
144 | 109 | end
|
145 | 110 |
|
146 | 111 | test do
|
| 112 | + # 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU |
| 113 | + # NOTE: Keep outside test block so that `brew fetch` is able to handle slow download/retries |
| 114 | + resource "homebrew-test-image" do |
| 115 | + url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip" |
| 116 | + sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807" |
| 117 | + end |
| 118 | + |
147 | 119 | archs = %w[
|
148 | 120 | aarch64 alpha arm avr hppa i386 loongarch64 m68k microblaze microblazeel mips
|
149 | 121 | mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 rx
|
|
0 commit comments