public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/gmsh/
Date: Thu, 16 Mar 2017 19:35:26 +0000 (UTC)	[thread overview]
Message-ID: <1489484460.0f5a9c04ec86f859c1cad9bd0a34e765e357f0af.jlec@gentoo> (raw)

commit:     0f5a9c04ec86f859c1cad9bd0a34e765e357f0af
Author:     Marek Wojciechowski <mrkwjc <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Mar 14 09:41:00 2017 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 09:41:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0f5a9c04

Add new gmsh ebuild. (#724)

* Add new gmsh ebuild.

* Move doc compilation to src_compile

 sci-libs/gmsh/gmsh-2.16.0.ebuild | 93 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)

diff --git a/sci-libs/gmsh/gmsh-2.16.0.ebuild b/sci-libs/gmsh/gmsh-2.16.0.ebuild
new file mode 100644
index 000000000..242b31d03
--- /dev/null
+++ b/sci-libs/gmsh/gmsh-2.16.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )
+	python? ( dev-lang/python:2.7 dev-lang/swig:0 )
+	zlib? ( sys-libs/zlib )
+	mpi? ( virtual/mpi[cxx] )
+	taucs? ( sci-libs/taucs )"
+
+REQUIRED_USE="
+	taucs? ( || ( metis ) )
+	"
+
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	dev-util/cmake
+	doc? ( virtual/latex-base )"
+
+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() {
+	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
+}


             reply	other threads:[~2017-03-16 19:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 19:35 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-08-05  6:52 [gentoo-commits] proj/sci:master commit in: sci-libs/gmsh/ Matthias Maier
2019-05-18 15:48 Matthias Maier
2018-10-11  3:36 Matthias Maier
2018-04-24 15:03 Matthias Maier
2017-03-26  8:18 Justin Lecher
2015-09-21 17:44 Justin Lecher
2014-09-01 19:47 Jauhien Piatlicki
2014-09-01 19:47 Jauhien Piatlicki
2013-02-22 15:48 Justin Lecher
2012-11-12 19:54 Justin Lecher
2012-11-12 19:54 Justin Lecher
2012-02-08 10:48 Kacper Kowalik
2011-06-24 17:09 Justin Lecher
2011-06-21 11:54 Justin Lecher
2011-03-27 15:50 Justin Lecher
2011-03-14 10:16 Justin Lecher
2011-03-09 13:19 Oliver Borm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489484460.0f5a9c04ec86f859c1cad9bd0a34e765e357f0af.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox