summaryrefslogtreecommitdiff
path: root/sci-libs/gmsh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-18 18:16:17 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-18 18:16:17 +0100
commitfc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch)
tree326613a08f25851c388715e205576a2e7d25dc4f /sci-libs/gmsh
parentb24bd25253fe093f722ab576d29fdc41d04cb1ee (diff)
gentoo resync : 18.08.2019
Diffstat (limited to 'sci-libs/gmsh')
-rw-r--r--sci-libs/gmsh/Manifest3
-rw-r--r--sci-libs/gmsh/gmsh-4.4.1.ebuild74
-rw-r--r--sci-libs/gmsh/metadata.xml20
3 files changed, 97 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest
new file mode 100644
index 000000000000..734e9e99c16e
--- /dev/null
+++ b/sci-libs/gmsh/Manifest
@@ -0,0 +1,3 @@
+DIST gmsh-4.4.1-source.tgz 13227645 BLAKE2B 68df0a54655d2a85012d2961daafbe92f0295661f6f71b0be4c7a78b7c814af21b39b29e65a201c4918d7e31462ac391b208fcceca356c4d9974c5de3c88da13 SHA512 cfdd353de051d1deffca90bfa31a007a466d39c145e704612b92441556dec0c8d7b58ab07c2fa3166de893d99f0308ffb66b4f321172ea60da0b6db907aa7a2e
+EBUILD gmsh-4.4.1.ebuild 1740 BLAKE2B 77ac37edcdc391cf69151c289b2958e8f6d3d1ddd482bee66695d573dc8a9435b6bab4c4be9ae9f03b492c58502be85d1621382912392d205e6153091d400fa5 SHA512 5ac483d00af4d61871a6391b730b83fe6c36426dd511efd1ad7c3f20b0ee3e07068c80f11e47d2c916e1427e7a7e26739c30900209e70b3147204d26a9551f80
+MISC metadata.xml 737 BLAKE2B fc604a0966c3106fabcd1379cf0cecbd28bd80c9068330206127cd35e134436a5ec3f43b19dfe0793e2a7a299a4b8f335b11cf2f723b6451a3b341077d27a6c7 SHA512 03f6a246c66264a58638c5ef89ec10737cbb15bd6d443f2f866fc77d21bf052c3ff4e00ca919546aa0da5b91c31a96af8dea5609a72dbb92a20c534e6a6f639b
diff --git a/sci-libs/gmsh/gmsh-4.4.1.ebuild b/sci-libs/gmsh/gmsh-4.4.1.ebuild
new file mode 100644
index 000000000000..fa56d3eae139
--- /dev/null
+++ b/sci-libs/gmsh/gmsh-4.4.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+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"
+
+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
+}
diff --git a/sci-libs/gmsh/metadata.xml b/sci-libs/gmsh/metadata.xml
new file mode 100644
index 000000000000..20c781af95c5
--- /dev/null
+++ b/sci-libs/gmsh/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tamiko@gentoo.org</email>
+ <name>Matthias Maier</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="cgns"> Enables cgns output support</flag>
+ <flag name="metis"> Enables metis support</flag>
+ <flag name="med"> Enables med support</flag>
+ <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>
+ </use>
+</pkgmetadata>