|
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)
|
@@ -92,13 +65,6 @@ class Qemu < Formula
|
92 | 65 | depends_on "systemd"
|
93 | 66 | end
|
94 | 67 |
|
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 | 68 | def install
|
103 | 69 | ENV["LIBTOOL"] = "glibtool"
|
104 | 70 |
|
@@ -144,6 +110,13 @@ def install
|
144 | 110 | end
|
145 | 111 |
|
146 | 112 | test do
|
| 113 | + # 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU |
| 114 | + # NOTE: Keep outside test block so that `brew fetch` is able to handle slow download/retries |
| 115 | + resource "homebrew-test-image" do |
| 116 | + url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip" |
| 117 | + sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807" |
| 118 | + end |
| 119 | + |
147 | 120 | archs = %w[
|
148 | 121 | aarch64 alpha arm avr hppa i386 loongarch64 m68k microblaze microblazeel mips
|
149 | 122 | mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 rx
|
|
0 commit comments