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!
Resources are preferred over subformulae these days.