Updates to follow some Homebrew best practices

Hi,

Here are some changes to migrate to more current features of Homebrew and adhere to best practices.

I will leave some comments in the diff.

Thanks!
It wasn't clear to me what the intention was here, but `std_cmake_parameters` is a method that returns a new string on each call, so it can't be mutated. The only way it can change is if we changed it upstream, which we won't, because it is deprecated in favor of `std_cmake_args`.