Look at the Scala formula in Homebrew, and update this version to also use resources.