Skip to content

Commit

Permalink
Fix caveats style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jun 4, 2021
1 parent ac5fbd0 commit 93de1ba
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 45 deletions.
10 changes: 5 additions & 5 deletions Formula/avr-binutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ 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.
You can learn more about Rosetta 2 here:
> 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
16 changes: 8 additions & 8 deletions Formula/avr-gcc@10.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions Formula/avr-gcc@11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions Formula/avr-gcc@5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions Formula/avr-gcc@8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions Formula/avr-gcc@9.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 93de1ba

Please sign in to comment.