DEPENDS part and "binary" function makes me sad panda: they assumes there are no "vims" exist, while there is at least `vim-qt` (well, actually that one is dropped from gentoo) and `neovim-qt` (and that one is in overlays, but anyway), and so on.
I think, it'd be nice to somehow avoid exact binary names matching (just as exact package names), or, uhm... make it extendable somehow?