Sage just gained support for this as well: https://trac.sagemath.org/ticket/29063 The ebuild is simple enough with no dependencies and only one patch that's been submitted upstream (which also fixes the -fno-common problem).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153d3a3b7e4da128e6214308868c666c3d62e173 commit 153d3a3b7e4da128e6214308868c666c3d62e173 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-01-29 22:49:38 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-01-30 01:00:49 +0000 sci-mathematics/planarity: new package of graph planarity algorithms. This commit imports the "planarity" package from the sage-on-gentoo overlay with a few minor changes: * Update to EAPI=7. * Drop autotools.eclass and use the tarball from sagemath.org that contains the autotools stuff. * Add USE=examples to install some sample input/output. * Update the old code.google.com HOMEPAGE to point to github. The SageMath project now has the ability to detect and use a system copy of planarity, so this will help Gentoo users of SageMath avoid some pointless rebuilds of planarity. Closes: https://bugs.gentoo.org/707324 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/planarity/Manifest | 1 + .../planarity/files/planarity-3.0.0.5-extern.patch | 21 ++++++++++++++ sci-mathematics/planarity/metadata.xml | 26 +++++++++++++++++ sci-mathematics/planarity/planarity-3.0.0.5.ebuild | 33 ++++++++++++++++++++++ 4 files changed, 81 insertions(+)