--- hercules-3.13.ebuild 2020-02-28 15:39:39.000000000 -0500 +++ hercules-3.13-r1.ebuild 2020-05-01 16:48:37.470690400 -0400 @@ -55,3 +55,13 @@ # no static archives find "${D}" -name '*.la' -delete || die } + +pkg_postinst() { + + # Bugfix for Gentoo bug #720342 + # /usr/lib/hercules is a symlink to /usr/lib/hercules on 64-bits systems + for so_file in /usr/lib/hercules/*.so; + do + ln -s ${so_file} /usr/lib/hercules/`basename -s .so ${so_file}` + done; +}