commit: 005b0063b97065dc4d9cb60febae1f34c359336b Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> AuthorDate: Thu Sep 14 18:29:07 2017 +0000 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> CommitDate: Thu Sep 14 18:29:07 2017 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=005b0063
sci-mathematics/dolfin: version bump to 2017.1.0 Package-Manager: Portage-2.3.6, Repoman-2.3.3 sci-mathematics/dolfin/dolfin-2017.1.0.ebuild | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/sci-mathematics/dolfin/dolfin-2017.1.0.ebuild b/sci-mathematics/dolfin/dolfin-2017.1.0.ebuild new file mode 100644 index 000000000..4d5d8f716 --- /dev/null +++ b/sci-mathematics/dolfin/dolfin-2017.1.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils python-single-r1 + +DESCRIPTION="C++/Python interface of FEniCS" +HOMEPAGE="https://bitbucket.org/fenics-project/dolfin" +SRC_URI="https://bitbucket.org/fenics-project/${PN}/downloads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="hdf5 mpi parmetis petsc scotch trilinos umfpack zlib vtk" + +REQUIRED_USE="${PYTHON_REQUIRED_USE} + trilinos? ( mpi )" + +# Yes, swig is an RDEPEND +DEPEND=" + ${PYTHON_DEPS} + dev-cpp/eigen:3 + dev-lang/swig:0= + dev-libs/boost:= + dev-libs/libxml2:2 + ~dev-python/dijitso-${PV}[${PYTHON_USEDEP}] + ~dev-python/ffc-${PV}[${PYTHON_USEDEP}] + ~dev-python/fiat-${PV}[${PYTHON_USEDEP}] + ~dev-python/instant-${PV}[${PYTHON_USEDEP}] + dev-python/sympy + ~dev-python/ufl-${PV}[${PYTHON_USEDEP}] + virtual/blas + virtual/lapack + hdf5? ( sci-libs/hdf5[mpi=] ) + mpi? ( virtual/mpi ) + parmetis? ( sci-libs/parmetis[mpi(+)] ) + petsc? ( sci-mathematics/petsc[mpi=] ) + sci-libs/armadillo + scotch? ( sci-libs/scotch ) + trilinos? ( sci-libs/trilinos ) + umfpack? ( + sci-libs/amd + sci-libs/cholmod + sci-libs/umfpack + ) + vtk? ( sci-libs/vtk ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-trilinos-superlu.patch +) + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_configure() { + # *sigh* + addpredict /proc/mtrr + addpredict /sys/devices/system/cpu/ + + mycmakeargs=( + -DDOLFIN_ENABLE_CHOLMOD="$(usex umfpack)" + -DDOLFIN_ENABLE_HDF5="$(usex hdf5)" + -DDOLFIN_ENABLE_MPI="$(usex mpi)" + -DDOLFIN_ENABLE_PARMETIS="$(usex parmetis)" + -DDOLFIN_ENABLE_PETSC="$(usex petsc)" + -DDOLFIN_ENABLE_PYTHON="yes" + -DDOLFIN_ENABLE_SCOTCH="$(usex scotch)" + -DDOLFIN_ENABLE_TRILINOS="$(usex trilinos)" + -DDOLFIN_ENABLE_UMFPACK="$(usex umfpack)" + -DDOLFIN_ENABLE_VTK="$(usex vtk)" + -DDOLFIN_ENABLE_ZLIB="$(usex zlib)" + ) + cmake-utils_src_configure +}
