summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2019-08-05 00:42:52 -0500
committerMatthias Maier <tamiko@gentoo.org>2019-08-05 01:51:22 -0500
commitd391eb27ea4151ffd950c76f07d1b79c42d469c8 (patch)
tree65299dddde149ddb90b5359cc89443b4a166fd68 /sci-libs/gmsh
parentsci-libs/med: package migration from ::science overlay (diff)
downloadgentoo-d391eb27ea4151ffd950c76f07d1b79c42d469c8.tar.gz
gentoo-d391eb27ea4151ffd950c76f07d1b79c42d469c8.tar.bz2
gentoo-d391eb27ea4151ffd950c76f07d1b79c42d469c8.zip
sci-libs/gmsh: package migration from ::science overlay
Package-Manager: Portage-2.3.70, Repoman-2.3.16 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/gmsh')
-rw-r--r--sci-libs/gmsh/Manifest1
-rw-r--r--sci-libs/gmsh/gmsh-4.4.1.ebuild74
-rw-r--r--sci-libs/gmsh/metadata.xml20
3 files changed, 95 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest
new file mode 100644
index 000000000000..810e33fd3444
--- /dev/null
+++ b/sci-libs/gmsh/Manifest
@@ -0,0 +1 @@
+DIST gmsh-4.4.1-source.tgz 13227645 BLAKE2B 68df0a54655d2a85012d2961daafbe92f0295661f6f71b0be4c7a78b7c814af21b39b29e65a201c4918d7e31462ac391b208fcceca356c4d9974c5de3c88da13 SHA512 cfdd353de051d1deffca90bfa31a007a466d39c145e704612b92441556dec0c8d7b58ab07c2fa3166de893d99f0308ffb66b4f321172ea60da0b6db907aa7a2e
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>