See https://github.com/killercup/homebrew-openresty. This repository is no longer maintained. @killercup has ran with it and it's in a much better shape there.