diff --git a/Formula/avr-gcc@8.rb b/Formula/avr-gcc@8.rb index 7d0e394..9b7ac05 100644 --- a/Formula/avr-gcc@8.rb +++ b/Formula/avr-gcc@8.rb @@ -7,17 +7,9 @@ class AvrGccAT8 < Formula sha256 "d308841a511bb830a6100397b0042db24ce11f642dab6ea6ee44842e5325ed50" license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" } - revision 2 head "https://gcc.gnu.org/git/gcc.git", branch: "releases/gcc-8" - bottle do - root_url "https://github.com/osx-cross/homebrew-avr/releases/download/avr-gcc@8-8.5.0_2" - sha256 arm64_sonoma: "e83a6abfe3325d48095b12e66b211bbad5d1f97b3741329745e7d6a2b39b124a" - sha256 ventura: "e0461aa32e2c6e9f4a26e16bf58c46e2a68c11bb660585ccfae4ce8ed56c5328" - sha256 monterey: "00188e6a36f4375908e83b8812448ecfca6049aaee204ecaa07a2b23899432f3" - end - # The bottles are built on systems with the CLT installed, and do not work # out of the box on Xcode-only systems due to an incorrect sysroot. pour_bottle? do @@ -31,8 +23,6 @@ class AvrGccAT8 < Formula "This is useful if you want to have multiple version of avr-gcc\n" \ "installed on the same machine" - option "with-ATMega168pbSupport", "Add ATMega168pb Support to avr-gcc" - # automake & autoconf are needed to build from source # with the ATMega168pbSupport option. depends_on "autoconf" => :build @@ -49,19 +39,9 @@ class AvrGccAT8 < Formula # GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib cxxstdlib_check :skip - current_build = build - resource "avr-libc" do - url "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.1.0.tar.bz2" - mirror "https://download-mirror.savannah.gnu.org/releases/avr-libc/avr-libc-2.1.0.tar.bz2" - sha256 "0b84cee5c08b5d5cba67c36125e5aaa85251bc9accfba5773bfa87bc34b654e8" - - if current_build.with? "ATMega168pbSupport" - patch do - url "https://raw.githubusercontent.com/osx-cross/homebrew-avr/d2e2566b06b90355952ed996707a0a1a24673cd3/Patch/avr-libc-add-mcu-atmega168pb.patch" - sha256 "7a2bf2e11cfd9335e8e143eecb94480b4871e8e1ac54392c2ee2d89010b43711" - end - end + url "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-2_2_1-release/avr-libc-2.2.1.tar.bz2" + sha256 "006a6306cbbc938c3bdb583ac54f93fe7d7c8cf97f9cde91f91c6fb0273ab465" end # This patch fixes a GCC compilation error on Apple ARM systems by adding @@ -129,8 +109,6 @@ def install rm_r(info) rm_r(man7) - current_build = build - resource("avr-libc").stage do ENV.prepend_path "PATH", bin @@ -147,7 +125,6 @@ def install puts "Forcing build system to aarch64-apple-darwin." end - system "./bootstrap" if current_build.with? "ATMega168pbSupport" system "./configure", "--prefix=#{prefix}", "--host=avr" system "make", "install" end