3 sha256 "2289bfff62df4a1903d99ffa3d7a6fbc913b7e21b07078ec179327d93b430bc9"
5 url "https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc8-v#{version}-full-install-macos-x64-installer.dmg"
6 name "MPLab XC8 Compiler"
7 desc "Compiler for 8-bit PIC and SAM MCUs and MPUs"
8 homepage "https://www.microchip.com/mplab/compilers"
11 url "https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8"
12 regex(%r{href=.*?ProductDocuments/SoftwareTools/xc8[._-]v?(\d+(?:\.\d+)+)-full-install-macos-x64-installer\.dmg}i)
16 executable: "xc8-v#{version}-full-install-macos-x64-installer.app/Contents/MacOS/installbuilder.sh",
18 "--mode", "unattended",
19 "--unattendedmodeui", "none",
21 "--netservername", '""',
22 "--LicenseType", "WorkstationMode",
23 "--prefix", staged_path.to_s
28 binary "#{staged_path}/bin/xc-ccov"
29 binary "#{staged_path}/bin/xc8-ar"
30 binary "#{staged_path}/bin/xc8-cc"
31 binary "#{staged_path}/bin/xc8-clangd"
32 binary "#{staged_path}/bin/xclm"
35 set_ownership staged_path.to_s
39 executable: "Uninstall-xc8-v#{version}.app/Contents/MacOS/installbuilder.sh",
40 args: ["--mode", "unattended"],
44 # No zap stanza required