Copy from homebrew main formula