diff options
author | 2017-03-14 10:41:00 +0100 | |
---|---|---|
committer | 2017-03-14 09:41:00 +0000 | |
commit | 0f5a9c04ec86f859c1cad9bd0a34e765e357f0af (patch) | |
tree | 0a29cf0d23da2cef9c34a09b39fb0d4a6f32b1fa | |
parent | sci-mathematics/axel: added new ebuild (#744) (diff) | |
download | sci-0f5a9c04ec86f859c1cad9bd0a34e765e357f0af.tar.gz sci-0f5a9c04ec86f859c1cad9bd0a34e765e357f0af.tar.bz2 sci-0f5a9c04ec86f859c1cad9bd0a34e765e357f0af.zip |
Add new gmsh ebuild. (#724)
* Add new gmsh ebuild.
* Move doc compilation to src_compile
-rw-r--r-- | sci-libs/gmsh/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/gmsh/gmsh-2.16.0.ebuild | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest index 500ca62da..e3c6270cd 100644 --- a/sci-libs/gmsh/Manifest +++ b/sci-libs/gmsh/Manifest @@ -1 +1,2 @@ +DIST gmsh-2.16.0-source.tgz 10867812 SHA256 e829eaf32ea02350a385202cc749341f2a3217c464719384b18f653edd028eea SHA512 00b26232dbd8e95826f608f11a9e93eca750db2c70334e3c0c957856dddeeaf68ccba3e727e00f916762eeba54e58558c8795934ebeef3c99844c22cc7dfacf7 WHIRLPOOL d4a84760cd3d74ee725efac7aed6caf3f29618b838d1d11d562eeb7fb61730f5bf160bb64aee211cf504d224d898d75669cdbacbf7a6fd81b7de390a8ea047ed DIST gmsh-2.8.5-source.tgz 8665258 SHA256 0ea2fdbcc9ba44c90e03dbc553e7f0ddb2f9044173ac34db123db4fe65af3130 SHA512 2dc132551ce6b3aebb84367c2e1f65448ef68398021a799070413bb2b4616bca2b25b61166ed9977775e8c5c27ba802b4119c240c89b69817336b8a5241171a7 WHIRLPOOL f1538f611938b593a33189ece14fd804fd0c54ffe90677af1244688ad25f088541371b236fac8d375f345124bdaf3f2368529ee4c5d24e6bbe136ec94b5fb285 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 +} |