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"
10 regex(/v?(\d+(?:\.\d+)+)(?:-fix)*/i)
11 strategy :github_latest
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"
25 depends_on "cmake" => :build
28 system "cmake", "-S", ".", "-B", "build", *std_cmake_args
29 system "cmake", "--build", "build"
30 system "cmake", "--install", "build"
34 (testpath/"test-gb-asm.s").write <<~ASM
37 SLOT 0.001 $0000 $2000
38 SLOT 1.2 STArT $2000 sIzE $6000
64 system bin/"wla-gb", "-o", testpath/"test-gb-asm.s"