In according to comments 19-22 in #693146, let's migrate med ebuild back to the cmake-based system so that it's possible to enable/disable mpi support with an use flag. In addition the autotools based med doesn't install (or compile?) fortran libs so it's buggy. I started from the old libmed in portage removing the patch libmed-3.3.1-mpi.patch which causes problems when compiling other applications against med with mpi support (e.g. gmsh)
Created attachment 589886 [details] med-4.0.0-r1.ebuild
Created attachment 589888 [details, diff] med-3.3.1-cmake-fortran.patch
Created attachment 589890 [details, diff] med-3.3.1-disable-python-compile.patch
Created attachment 589892 [details, diff] med-4.0.0-cmakelist.patch
Created attachment 589894 [details, diff] med-4.0.0-installdoc.patch
Created attachment 589896 [details, diff] med-4.0.0-tests.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=650bfa08aad0ce31430f6a848b6c6631eada41be commit 650bfa08aad0ce31430f6a848b6c6631eada41be Author: Bernd Waibel <waebbl@gmail.com> AuthorDate: 2019-09-15 13:06:18 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2019-10-13 11:21:58 +0000 sci-libs/med: switch to cmake based build The patch moves back to the cmake based build used in sci-libs/libmed. The issues with sci-libs/gmsh not building with cmake built med have been resolved. See https://bugs.gentoo.org/693146 comments 19-22 Closes: https://bugs.gentoo.org/694468 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12930 Signed-off-by: Joonas Niilola <juippis@gentoo.org> sci-libs/med/files/med-3.3.1-cmake-fortran.patch | 21 ++++ .../files/med-3.3.1-disable-python-compile.patch | 17 +++ sci-libs/med/files/med-4.0.0-cmakelist.patch | 59 +++++++++++ sci-libs/med/files/med-4.0.0-installdoc.patch | 15 +++ sci-libs/med/med-4.0.0-r2.ebuild | 117 +++++++++++++++++++++ 5 files changed, 229 insertions(+)