It's not yet the production tool that Homebrew is, but there is Spack: https://spack.io, which allows installing arbitrarily many builds of a package, with different versions, compilers, and options (disclaimer: I'm the original author).
No comments yet.