5.0.4 was ok to skip, because the only change was about the Debian/Ubuntu repository GPG keys, but 5.1 actually has a bunch of bugfixes and features. Renaming the ebuild seems to suffice. Reproducible: Always
please test