diff --git a/Formula/avr-binutils.rb b/Formula/avr-binutils.rb index 432f256..9c5dbf4 100644 --- a/Formula/avr-binutils.rb +++ b/Formula/avr-binutils.rb @@ -49,11 +49,6 @@ def install info.rmtree # info files conflict with native binutils end - test do - version_output = "GNU ld (GNU Binutils) 2.35.1\n" - assert_equal `avr-ld -v`, version_output - end - def caveats <<~EOS For Mac computers with Apple silicon, avr-binutils might need Rosetta 2 to work properly. @@ -61,4 +56,9 @@ def caveats > https://support.apple.com/en-us/HT211861 EOS end + + test do + version_output = "GNU ld (GNU Binutils) 2.35.1\n" + assert_equal `avr-ld -v`, version_output + end end diff --git a/Formula/avr-gcc@10.rb b/Formula/avr-gcc@10.rb index d72a1f1..45b7867 100644 --- a/Formula/avr-gcc@10.rb +++ b/Formula/avr-gcc@10.rb @@ -140,6 +140,14 @@ def install end end + def caveats + <<~EOS + For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. + You can learn more about Rosetta 2 here: + > https://support.apple.com/en-us/HT211861 + EOS + end + test do ENV.clear @@ -215,12 +223,4 @@ def install assert_equal `cat hello.cpp.hex`, hello_cpp_hex end - - def caveats - <<~EOS - For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end end diff --git a/Formula/avr-gcc@11.rb b/Formula/avr-gcc@11.rb index 87a0036..afc03fc 100644 --- a/Formula/avr-gcc@11.rb +++ b/Formula/avr-gcc@11.rb @@ -140,6 +140,14 @@ def install end end + def caveats + <<~EOS + For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. + You can learn more about Rosetta 2 here: + > https://support.apple.com/en-us/HT211861 + EOS + end + test do ENV.clear @@ -215,12 +223,4 @@ def install assert_equal `cat hello.cpp.hex`, hello_cpp_hex end - - def caveats - <<~EOS - For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end end diff --git a/Formula/avr-gcc@5.rb b/Formula/avr-gcc@5.rb index 87f6e99..d4810e0 100644 --- a/Formula/avr-gcc@5.rb +++ b/Formula/avr-gcc@5.rb @@ -137,6 +137,14 @@ def install end end + def caveats + <<~EOS + For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. + You can learn more about Rosetta 2 here: + > https://support.apple.com/en-us/HT211861 + EOS + end + test do ENV.clear @@ -217,12 +225,4 @@ def install assert_equal `cat hello.cpp.hex`, hello_cpp_hex end - - def caveats - <<~EOS - For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end end diff --git a/Formula/avr-gcc@8.rb b/Formula/avr-gcc@8.rb index 98fdeab..a89f0ef 100644 --- a/Formula/avr-gcc@8.rb +++ b/Formula/avr-gcc@8.rb @@ -140,6 +140,14 @@ def install end end + def caveats + <<~EOS + For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. + You can learn more about Rosetta 2 here: + > https://support.apple.com/en-us/HT211861 + EOS + end + test do ENV.clear @@ -215,12 +223,4 @@ def install assert_equal `cat hello.cpp.hex`, hello_cpp_hex end - - def caveats - <<~EOS - For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end end diff --git a/Formula/avr-gcc@9.rb b/Formula/avr-gcc@9.rb index 106db0a..be6655a 100644 --- a/Formula/avr-gcc@9.rb +++ b/Formula/avr-gcc@9.rb @@ -136,6 +136,14 @@ def install end end + def caveats + <<~EOS + For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. + You can learn more about Rosetta 2 here: + > https://support.apple.com/en-us/HT211861 + EOS + end + test do ENV.clear @@ -222,12 +230,4 @@ def install assert_equal `cat hello.cpp.hex`, hello_cpp_hex end - - def caveats - <<~EOS - For Mac computers with Apple silicon, avr-gcc might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end end