Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / w / wla-dx.rb
bloba2a73b7c6dd26fba39b9d9c8bdc745b4b7c2d86c
1 class WlaDx < Formula
2   desc "Yet another crossassembler package"
3   homepage "https://github.com/vhelin/wla-dx"
4   url "https://github.com/vhelin/wla-dx/archive/refs/tags/v10.6.tar.gz"
5   sha256 "010c4d426fd1733b978cbca7530a5e68bdfb6f62976c0d5ff7bff447894e19a8"
6   license "GPL-2.0-or-later"
8   livecheck do
9     url :stable
10     regex(/v?(\d+(?:\.\d+)+)(?:-fix)*/i)
11     strategy :github_latest
12   end
14   bottle do
15     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "f89cc32f88279298a841ee744557214695dffdc76c35f43f28610715c38b35d1"
16     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "01e0f38cf29c205e76cb0950a41847867d3ee007e877f6607e5e5c352fe222da"
17     sha256 cellar: :any_skip_relocation, arm64_ventura:  "d86083d1dd34ccbb5f8309052d57e9b5ee52de04f7382510f41ba82e19d3b1ff"
18     sha256 cellar: :any_skip_relocation, arm64_monterey: "3ca9f57e6ed396fd20774c44c4619e4b9583a772d3d0751ea90751e3ddb06545"
19     sha256 cellar: :any_skip_relocation, sonoma:         "9ff72ea731a055cf23c426ab45fe5e33169ba1a4979c74ac90a9edd84a04730b"
20     sha256 cellar: :any_skip_relocation, ventura:        "db9b75eba0fe4403c2c41faaa0fc7d49bf173e32c8240718d18413aee0609d35"
21     sha256 cellar: :any_skip_relocation, monterey:       "6397fad5d0f3bbdb81022766ca0784206cb611dd7db402fb7eff80bb703860b8"
22     sha256 cellar: :any_skip_relocation, x86_64_linux:   "3e5860c11c5bbbdb62949e01df2af3d006f8315f5d30a2d4f4c25740a57ef883"
23   end
25   depends_on "cmake" => :build
27   def install
28     system "cmake", "-S", ".", "-B", "build", *std_cmake_args
29     system "cmake", "--build", "build"
30     system "cmake", "--install", "build"
31   end
33   test do
34     (testpath/"test-gb-asm.s").write <<~ASM
35       .MEMORYMAP
36        DEFAULTSLOT 1.01
37        SLOT 0.001 $0000 $2000
38        SLOT 1.2 STArT $2000 sIzE $6000
39        .ENDME
41        .ROMBANKMAP
42        BANKSTOTAL 2
43        BANKSIZE $2000
44        BANKS 1
45        BANKSIZE $6000
46        BANKS 1
47        .ENDRO
49        .BANK 1 SLOT 1
51        .ORGA $2000
54        ld hl, sp+127
55        ld hl, sp-128
56        add sp, -128
57        add sp, 127
58        adc 200
59        jr -128
60        jr 127
61        jr nc, 127
62     ASM
64     system bin/"wla-gb", "-o", testpath/"test-gb-asm.s"
65   end
66 end