Diff gmsh-4.9.5-r3 with a gmsh-4.10.3-r1

/usr/portage/sci-libs/gmsh/gmsh-4.10.3-r1.ebuild 2023-10-09 14:52:35.072368491 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..10} )
6
PYTHON_COMPAT=( python3_{9..11} )
7 7

  
8 8
inherit cmake fortran-2 python-any-r1 toolchain-funcs
9 9

  
10 10
DESCRIPTION="Three-dimensional finite element mesh generator"
11
HOMEPAGE="https://gmsh.info/"
11
HOMEPAGE="https://gmsh.info"
12 12
SRC_URI="https://gmsh.info/src/${P}-source.tgz"
13 13
S="${WORKDIR}/${P}-source"
14 14

  
15
LICENSE="GPL-3 free-noncomm"
15
LICENSE="
16
	GPL-2+ free-noncomm
17
	alglib? ( MIT )
18
	gmm? ( LGPL-2.1+ )
19
	metis? ( Apache-2.0 )
20
	netgen? ( LGPL-2.1+ )
21
	voro? ( BSD )
22
"
16 23
SLOT="0"
17 24
KEYWORDS="~amd64 ~x86"
18 25
## cgns is not compiling ATM, maybe fix cgns lib first
19
IUSE="blas cgns examples jpeg med metis mpi netgen opencascade petsc png python shared X zlib"
26
IUSE="+alglib +blas cgns eigen examples +gmm jpeg med metis mpi mumps netgen opencascade petsc pdf png python shared slepc X voro zlib"
20 27

  
21
REQUIRED_USE="med? ( mpi )"
28
REQUIRED_USE="
29
	^^ ( blas eigen )
30
	mumps? ( blas )
31
	slepc? ( petsc )
32
	"
22 33

  
23 34
RDEPEND="
24 35
	virtual/fortran
25 36
	X? ( x11-libs/fltk:1[xft] )
26
	blas? ( virtual/blas virtual/lapack sci-libs/fftw:3.0 )
27
	cgns? ( sci-libs/cgnslib )
37
	alglib? ( sci-libs/alglib )
38
	blas? (
39
		virtual/blas
40
		virtual/lapack
41
		sci-libs/fftw:3.0
42
	)
43
	cgns? (
44
		sci-libs/cgnslib
45
		sci-libs/hdf5[mpi=]
46
	)
47
	eigen? ( dev-cpp/eigen )
48
	gmm? ( sci-mathematics/gmm )
28 49
	jpeg? ( media-libs/libjpeg-turbo )
29
	med? ( sci-libs/med[mpi] )
50
	med? (
51
		sci-libs/med[mpi=]
52
		sci-libs/hdf5[mpi=]
53
	)
30 54
	metis? ( <sci-libs/metis-5.2.0 )
55
	mpi? ( virtual/mpi[cxx] )
56
	mumps? ( sci-libs/mumps[mpi=] )
31 57
	opencascade? ( sci-libs/opencascade:* )
58
	pdf? ( app-text/poppler:= )
32 59
	png? ( media-libs/libpng:0 )
33 60
	petsc? ( sci-mathematics/petsc[mpi=] )
61
	slepc? ( sci-mathematics/slepc[mpi=] )
62
	voro? ( sci-libs/voro++ )
34 63
	zlib? ( sys-libs/zlib )
35
	mpi? ( virtual/mpi[cxx] )
36 64
	"
37 65

  
38 66
DEPEND="${RDEPEND}
......
41 69
	python? ( dev-lang/swig:0 )
42 70
	"
43 71

  
44
PATCHES=( "${FILESDIR}"/${P}-opencascade.patch )
72
PATCHES=( "${FILESDIR}"/${PN}-4.9.5-opencascade.patch )
45 73

  
46 74
pkg_setup() {
47 75
	fortran-2_pkg_setup
......
54 82
		mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77))
55 83

  
56 84
	mycmakeargs+=(
85
		-DENABLE_ALGLIB="$(usex alglib)"
57 86
		-DENABLE_BLAS_LAPACK="$(usex blas)"
58 87
		-DENABLE_BUILD_DYNAMIC="$(usex shared)"
59 88
		-DENABLE_CGNS="$(usex cgns)"
89
		-DENABLE_EIGEN="$(usex eigen)"
60 90
		-DENABLE_FLTK="$(usex X)"
91
		-DENABLE_GMM="$(usex gmm)"
61 92
		-DENABLE_GRAPHICS="$(usex X)"
62 93
		-DENABLE_MED="$(usex med)"
63 94
		-DENABLE_MPI="$(usex mpi)"
64 95
		-DENABLE_METIS="$(usex metis)"
96
		-DENABLE_MUMPS="$(usex mumps)"
65 97
		-DENABLE_NETGEN="$(usex netgen)"
66 98
		-DENABLE_OCC="$(usex opencascade)"
67 99
		-DENABLE_PETSC="$(usex petsc)"
100
		-DENABLE_POPPLER="$(usex pdf)"
101
		-DENABLE_SLEPC="$(usex slepc)"
68 102
		-DENABLE_PRIVATE_API="$(usex shared)"
103
		-DENABLE_SYSTEM_CONTRIB="YES"
104
		-DENABLE_VOROPP="$(usex voro)"
69 105
		-DENABLE_WRAP_PYTHON="$(usex python)")
70 106

  
71 107
	cmake_src_configure
Thank you!