summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2020-09-11 09:22:48 -0500
committerMatthias Maier <tamiko@gentoo.org>2020-09-11 09:50:39 -0500
commit49db50cda939f4d0c931b1d962c20394affdfbac (patch)
treec64eb988ed0da1a437665da9d7de0de552c61a22 /sci-libs
parentsci-visualization/paraview: version bump to 5.8.1 (diff)
downloadgentoo-49db50cda939f4d0c931b1d962c20394affdfbac.tar.gz
gentoo-49db50cda939f4d0c931b1d962c20394affdfbac.tar.bz2
gentoo-49db50cda939f4d0c931b1d962c20394affdfbac.zip
sci-libs/gmsh: version bump to 4.6.0
Closes: https://bugs.gentoo.org/715194 Closes: https://bugs.gentoo.org/708386 Closes: https://bugs.gentoo.org/735478 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/gmsh/Manifest1
-rw-r--r--sci-libs/gmsh/gmsh-4.6.0.ebuild76
2 files changed, 77 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest
index 810e33fd3444..0c39d5945959 100644
--- a/sci-libs/gmsh/Manifest
+++ b/sci-libs/gmsh/Manifest
@@ -1 +1,2 @@
DIST gmsh-4.4.1-source.tgz 13227645 BLAKE2B 68df0a54655d2a85012d2961daafbe92f0295661f6f71b0be4c7a78b7c814af21b39b29e65a201c4918d7e31462ac391b208fcceca356c4d9974c5de3c88da13 SHA512 cfdd353de051d1deffca90bfa31a007a466d39c145e704612b92441556dec0c8d7b58ab07c2fa3166de893d99f0308ffb66b4f321172ea60da0b6db907aa7a2e
+DIST gmsh-4.6.0-source.tgz 12048076 BLAKE2B 2de1ded477ec675fa7bcb56c1e2a1352f6f6d642b9872dd5c167bafac0e7648cbbce6921b556d59796e035f40bc24e9ce38ccedb690ca54cbeab5f3ab94eeeea SHA512 9d6dde6b1f6b6193eb859cc6425a0161d42ccf449aeb84f43e1dba661b0ccb593821b9371272e06351c4dd26b7b8b6a5c39475c0f5b1332be188551abc88ae45
diff --git a/sci-libs/gmsh/gmsh-4.6.0.ebuild b/sci-libs/gmsh/gmsh-4.6.0.ebuild
new file mode 100644
index 000000000000..06538f3d21c4
--- /dev/null
+++ b/sci-libs/gmsh/gmsh-4.6.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,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 lua 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 )
+ lua? ( dev-lang/lua:0 )
+ med? ( sci-libs/med )
+ opencascade? ( sci-libs/opencascade:* )
+ png? ( media-libs/libpng:0 )
+ petsc? ( sci-mathematics/petsc )
+ 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_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
+}