Created attachment 424272 [details] field3d-1.6.1.ebuild Please find an ebuild for Field3D attached. It can be used by e.g. OpenImageIO, whose ebuild currently contains this line: -DUSE_FIELD3D=OFF # missing in Portage Instead of patching CMakeLists.txt, upstream should probably be asked to include a switch to enable/disable MPI support and documentation generation.
Created attachment 424280 [details] field3d-1.6.1.ebuild I previously forgot the dependency on CMake.
Please note that the license is unknown to me, which is why I left the LICENSE field in the ebuild empty. https://github.com/imageworks/Field3D/blob/master/COPYING
Created attachment 471270 [details] field3d-1.7.2.ebuild Version bump to 1.7.2 and support for sub-slots / ABI versioning.
Field3D is in portage now: https://github.com/gentoo/gentoo/blob/master/media-libs/Field3D/Field3D-1.7.2.ebuild Soon,the OpenImageIO ebuilds will be updated to use this and also the 1.7.x series will finally be in portage. :) First, I need the OpenEXR ebuilds approved as they fix support for oiio.
I suggest to add IUSE=mpi and strip the MPI support from CMakeLists.txt if it is not set: sed -r '/FIND_PACKAGE\s*\(\s*MPI\s*\)/d' -i CMakeLists.txt MPI support in field3d is optional, but there is not yet a flag to switch it of if the libraries are found.
P.S. Same goes for IUSE=doc and DEPEND=app-doc/doxygen.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ec025cfb18c105c97dbeac18b7eb1ef5112fab1 commit 2ec025cfb18c105c97dbeac18b7eb1ef5112fab1 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-05-21 21:48:52 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-05-21 21:55:04 +0000 media-libs/Field3D: EAPI-7 bump, USE mpi, add proper src_configure() Properly disabling Doxygen (don't even build it if it ain't finished). Closes: https://bugs.gentoo.org/573440 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/Field3D/Field3D-1.7.2.ebuild | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)