commit:     3ded1dcb3c80d0ba6214b8a33d809c54386d5c54
Author:     Fabio Rossi <rossi.f <AT> inwind <DOT> it>
AuthorDate: Fri Nov 26 18:36:03 2021 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Mon Jan  3 21:37:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ded1dcb

sci-libs/gmsh: install also *.h and lib* files

The installation is conditional on the shared useflag

Closes: https://github.com/gentoo/gentoo/pull/23092
Closes: https://bugs.gentoo.org/827278
Signed-off-by: Fabio Rossi <rossi.f <AT> inwind.it>
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sci-libs/gmsh/gmsh-4.8.4.ebuild | 3 ++-
 sci-libs/gmsh/metadata.xml      | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sci-libs/gmsh/gmsh-4.8.4.ebuild b/sci-libs/gmsh/gmsh-4.8.4.ebuild
index 0c32a563f7a1..616a2fa69ffd 100644
--- a/sci-libs/gmsh/gmsh-4.8.4.ebuild
+++ b/sci-libs/gmsh/gmsh-4.8.4.ebuild
@@ -15,7 +15,7 @@ LICENSE="GPL-3 free-noncomm"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 ## cgns is not compiling ATM, maybe fix cgns lib first
-IUSE="blas cgns examples jpeg med metis mpi netgen opencascade petsc png 
python X zlib"
+IUSE="blas cgns examples jpeg med metis mpi netgen opencascade petsc png 
python shared X zlib"
 
 REQUIRED_USE="med? ( mpi )"
 
@@ -56,6 +56,7 @@ src_configure() {
 
        mycmakeargs+=(
                -DENABLE_BLAS_LAPACK="$(usex blas)"
+               -DENABLE_BUILD_DYNAMIC="$(usex shared)"
                -DENABLE_CGNS="$(usex cgns)"
                -DENABLE_FLTK="$(usex X)"
                -DENABLE_GRAPHICS="$(usex X)"

diff --git a/sci-libs/gmsh/metadata.xml b/sci-libs/gmsh/metadata.xml
index 4b35b67a85cd..896b5d03abdb 100644
--- a/sci-libs/gmsh/metadata.xml
+++ b/sci-libs/gmsh/metadata.xml
@@ -16,5 +16,6 @@
                <flag name="netgen"> Enable 3D Frontal triangulation using 
netgen lib</flag>
                <flag name="petsc"> Enable sci-mathematics/petsc support</flag>
                <flag name="opencascade"> Enable OpenCASCADE support</flag>
+               <flag name="shared">Install shared library and headers</flag>
        </use>
 </pkgmetadata>

Reply via email to