aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2018-10-10 22:16:58 -0500
committerMatthias Maier <tamiko@gentoo.org>2018-10-10 22:16:58 -0500
commitb0a34b6bd2fb16f3573087b81701433076af2472 (patch)
tree742b940884fe1abfdab4a6fcbe7e3929609e3d12
parentdev-cpp/kokkos: initial commit (diff)
downloadsci-b0a34b6bd2fb16f3573087b81701433076af2472.tar.gz
sci-b0a34b6bd2fb16f3573087b81701433076af2472.tar.bz2
sci-b0a34b6bd2fb16f3573087b81701433076af2472.zip
sci-libs/gmsh: version bump to 4.0.2
Signed-off-by: Matthias Maier <tamiko@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11
-rw-r--r--sci-libs/gmsh/Manifest1
-rw-r--r--sci-libs/gmsh/gmsh-4.0.2.ebuild93
2 files changed, 94 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest
index 43df16968..c64941ce4 100644
--- a/sci-libs/gmsh/Manifest
+++ b/sci-libs/gmsh/Manifest
@@ -1,2 +1,3 @@
DIST gmsh-2.16.0-source.tgz 10867812 BLAKE2B a769fb19e4201b245c5c525e1581253cf93489a7720180ebb05d4656d274b9f8aa5a3258090966119249f9240de82d942be82ae5cb4b5418f35be9d9ca2b88bd SHA512 00b26232dbd8e95826f608f11a9e93eca750db2c70334e3c0c957856dddeeaf68ccba3e727e00f916762eeba54e58558c8795934ebeef3c99844c22cc7dfacf7
DIST gmsh-3.0.6-source.tgz 12663776 BLAKE2B 041ab0ba8af5e4b96dd27bbbb146b4f9582dc425c07a35665df0392ae545f185852bc2f5cddb53fed4754904762585e14da1ed2067cafecf9eaa550b6b69424f SHA512 6221c1e68bcfed41b6ad13bfadf79a5d5a2b2d8e577d94c984364b480c330f9e2d9fa20f7374ac58cd124f57530c51d8977061f4179879a03d0b31b27869485a
+DIST gmsh-4.0.2-source.tgz 12764404 BLAKE2B b7b9d24c44d59efc5ea5d9ce525488c60f7de764bc3d6d192aca6a09583cd1bd426df72b5a36553867c796c3a90733a27d76cc5a8bb6f6d4a13400872f9a8faa SHA512 95557000a8007b3a006b341af438fa9511eb9460371ba1a4d53ff7cc70c81695a5aa26e8edde84efdfe2beb874ba8f5465e3016ef89f9b53d7c5ab47d7e6501b
diff --git a/sci-libs/gmsh/gmsh-4.0.2.ebuild b/sci-libs/gmsh/gmsh-4.0.2.ebuild
new file mode 100644
index 000000000..7f4690090
--- /dev/null
+++ b/sci-libs/gmsh/gmsh-4.0.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils flag-o-matic fortran-2 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"
+
+## gmsh comes with its own copies of (at least) metis, netgen and tetgen, therefore inform the user of their special licenses
+LICENSE="GPL-3 free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+## cgns is not compiling ATM, maybe fix cgns lib first
+IUSE="blas cgns chaco doc examples jpeg lua med metis mpi netgen opencascade petsc png python taucs tetgen 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] )
+ taucs? ( sci-libs/taucs )"
+
+REQUIRED_USE="
+ taucs? ( || ( metis ) )
+ "
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( virtual/latex-base )
+ 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_CHACO="$(usex chaco)"
+ -DENABLE_FLTK="$(usex X)"
+ -DENABLE_GRAPHICS="$(usex X)"
+ -DENABLE_MED="$(usex med)"
+ -DENABLE_METIS="$(usex metis)"
+ -DENABLE_NETGEN="$(usex netgen)"
+ -DENABLE_TAUCS="$(usex taucs)"
+ -DENABLE_TETGEN="$(usex tetgen)"
+ -DENABLE_OCC="$(usex opencascade)"
+ -DENABLE_PETSC="$(usex petsc)"
+ -DENABLE_WRAP_PYTHON="$(usex python)")
+
+ cmake-utils_src_configure mycmakeargs
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc ; then
+ cd "${BUILD_DIR}" || die
+ emake pdf
+ cd "${S}" || die
+ dodoc doc/texinfo/gmsh.pdf
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r demos tutorial
+ fi
+}