gfan 0.5 dates back to 2011. There was a majot update to 0.6.2 in 2017, please bump up the Gentoo package.
the current gfan package is sci-mathematics/gfan-0.5-r1
I would feel better if there was an upstream bug tracker or VCS where we could collect the patches that everyone applies, but gfan is relatively stable so it's not too annoying to re-patch every few years.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72f1a1873ac70ee1a9ecd27afa8c3c5fb10b58f7 commit 72f1a1873ac70ee1a9ecd27afa8c3c5fb10b58f7 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-03-06 16:52:59 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-03-06 16:53:28 +0000 sci-mathematics/gfan: new version 0.6.2. Update our version of gfan to the latest upstream v0.6.2, from September 28th 2017. The new ebuild is based off of the version that François Bissey maintains in the sage-on-gentoo overlay, with a few additional changes: * Merged the EAPI=7 and slot dependency updates from ::gentoo. * Change the LICENSE to "GPL-2+", to match the upstream LICENSE file. * Stripped some more CFLAGS mangling out of the upstream Makefile. Corresponding to this we now replace "-O3" by "-O2" in the ebuild. * Added USE="doc", to build and install the LaTeX manual. Closes: https://bugs.gentoo.org/711492 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/gfan/Manifest | 1 + .../gfan/files/gfan-0.6.2-Makefile.patch | 155 ++++++++++++++ .../gfan/files/gfan-0.6.2-testsuite.patch | 222 +++++++++++++++++++++ .../gfan/files/gfan-0.6.2-xcode9.3_compat.patch | 13 ++ sci-mathematics/gfan/gfan-0.6.2.ebuild | 56 ++++++ 5 files changed, 447 insertions(+)