steal recipe from homebrew
upgrading to mercurial 3.1