diff options
Diffstat (limited to 'sci-libs/gmsh')
-rw-r--r-- | sci-libs/gmsh/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/gmsh/gmsh-4.8.4.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest index d293c71f3ea5..72413e1ae60d 100644 --- a/sci-libs/gmsh/Manifest +++ b/sci-libs/gmsh/Manifest @@ -1,3 +1,5 @@ DIST gmsh-4.6.0-source.tgz 12048076 BLAKE2B 2de1ded477ec675fa7bcb56c1e2a1352f6f6d642b9872dd5c167bafac0e7648cbbce6921b556d59796e035f40bc24e9ce38ccedb690ca54cbeab5f3ab94eeeea SHA512 9d6dde6b1f6b6193eb859cc6425a0161d42ccf449aeb84f43e1dba661b0ccb593821b9371272e06351c4dd26b7b8b6a5c39475c0f5b1332be188551abc88ae45 +DIST gmsh-4.8.4-source.tgz 13838352 BLAKE2B 26c7f68e41d1c339c7d5fd499b2261c2ce79c38648df9f4f3853ba69421d59be36992d8aac1d1ebc1fe872bb828769693c12fd9770878fa3b59c179176105ea4 SHA512 c3880e67af03aa6d00300b5f56fd229ffe37da9af66e8c7c87a3bbf7abcb3a90b4858ec76093ef8f039a70d4da1d5cc7f7c687c05b6642299c95e1a07f9513bf EBUILD gmsh-4.6.0.ebuild 1784 BLAKE2B 0cd3d1b0981c3dfd5739e10dc2bbf2e2c40130a09997982105ba331dec9ac1ac669e6e50ec12ecca5233cbe5e4e194af708334ec1e9c549fe2bdec9cec9ddd1a SHA512 aec9980a9dae689db3d6a1adcc44614c718922e624ce473571d00d59836b5a4d36027f7fd1c6a695d4cefe5320d22d6900ceb98c7f86eb1297a9962448616150 +EBUILD gmsh-4.8.4.ebuild 1784 BLAKE2B 0cd3d1b0981c3dfd5739e10dc2bbf2e2c40130a09997982105ba331dec9ac1ac669e6e50ec12ecca5233cbe5e4e194af708334ec1e9c549fe2bdec9cec9ddd1a SHA512 aec9980a9dae689db3d6a1adcc44614c718922e624ce473571d00d59836b5a4d36027f7fd1c6a695d4cefe5320d22d6900ceb98c7f86eb1297a9962448616150 MISC metadata.xml 737 BLAKE2B fc604a0966c3106fabcd1379cf0cecbd28bd80c9068330206127cd35e134436a5ec3f43b19dfe0793e2a7a299a4b8f335b11cf2f723b6451a3b341077d27a6c7 SHA512 03f6a246c66264a58638c5ef89ec10737cbb15bd6d443f2f866fc77d21bf052c3ff4e00ca919546aa0da5b91c31a96af8dea5609a72dbb92a20c534e6a6f639b diff --git a/sci-libs/gmsh/gmsh-4.8.4.ebuild b/sci-libs/gmsh/gmsh-4.8.4.ebuild new file mode 100644 index 000000000000..df5ea5533a0a --- /dev/null +++ b/sci-libs/gmsh/gmsh-4.8.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit cmake-utils flag-o-matic fortran-2 python-any-r1 toolchain-funcs + +DESCRIPTION="A three-dimensional finite element mesh generator" +HOMEPAGE="http://www.geuz.org/gmsh/" +SRC_URI="http://www.geuz.org/gmsh/src/${P}-source.tgz" + +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" + +REQUIRED_USE="med? ( mpi )" + +RDEPEND=" + virtual/fortran + X? ( x11-libs/fltk:1 ) + blas? ( virtual/blas virtual/lapack sci-libs/fftw:3.0 ) + cgns? ( sci-libs/cgnslib ) + jpeg? ( virtual/jpeg:0 ) + med? ( sci-libs/med[mpi] ) + opencascade? ( sci-libs/opencascade:* ) + png? ( media-libs/libpng:0 ) + petsc? ( sci-mathematics/petsc[mpi=] ) + zlib? ( sys-libs/zlib ) + mpi? ( virtual/mpi[cxx] )" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + python? ( dev-lang/swig:0 ) + " + +S=${WORKDIR}/${P}-source + +pkg_setup() { + fortran-2_pkg_setup +} + +src_configure() { + local mycmakeargs=( ) + + use blas && \ + mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77)) + + mycmakeargs+=( + -DENABLE_BLAS_LAPACK="$(usex blas)" + -DENABLE_CGNS="$(usex cgns)" + -DENABLE_FLTK="$(usex X)" + -DENABLE_GRAPHICS="$(usex X)" + -DENABLE_MED="$(usex med)" + -DENABLE_MPI="$(usex mpi)" + -DENABLE_METIS="$(usex metis)" + -DENABLE_NETGEN="$(usex netgen)" + -DENABLE_OCC="$(usex opencascade)" + -DENABLE_PETSC="$(usex petsc)" + -DENABLE_WRAP_PYTHON="$(usex python)") + + cmake-utils_src_configure mycmakeargs +} + +src_install() { + cmake-utils_src_install + + if use examples ; then + insinto /usr/share/doc/${PF} + doins -r demos tutorial + fi +} |