From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B7A21382C5 for ; Tue, 24 Apr 2018 15:03:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 830DCE0872; Tue, 24 Apr 2018 15:03:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 519FDE0872 for ; Tue, 24 Apr 2018 15:03:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3919A335C43 for ; Tue, 24 Apr 2018 15:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C9C327C for ; Tue, 24 Apr 2018 15:03:21 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1524582182.e7079d08adc6cfa1cc0c97e2cf10e3472de80876.tamiko@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/gmsh/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/gmsh/gmsh-3.0.6.ebuild X-VCS-Directories: sci-libs/gmsh/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: e7079d08adc6cfa1cc0c97e2cf10e3472de80876 X-VCS-Branch: master Date: Tue, 24 Apr 2018 15:03:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b8a6ae50-5ab8-405e-aea4-adaa9151bf92 X-Archives-Hash: bdbd84652ebb89c0edeab3ec63a200d9 commit: e7079d08adc6cfa1cc0c97e2cf10e3472de80876 Author: Matthias Maier gentoo org> AuthorDate: Tue Apr 24 15:03:02 2018 +0000 Commit: Matthias Maier gentoo org> CommitDate: Tue Apr 24 15:03:02 2018 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e7079d08 sci-libs/gmsh: version bump to 3.0.6 Package-Manager: Portage-2.3.31, Repoman-2.3.9 sci-libs/gmsh/gmsh-3.0.6.ebuild | 93 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/sci-libs/gmsh/gmsh-3.0.6.ebuild b/sci-libs/gmsh/gmsh-3.0.6.ebuild new file mode 100644 index 000000000..8975cd76e --- /dev/null +++ b/sci-libs/gmsh/gmsh-3.0.6.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 +}