diff options
author | band-a-prend <torokhov-s-a@yandex.ru> | 2019-06-23 00:56:22 +0300 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2019-07-15 16:33:24 -0500 |
commit | d8c8d5774ab358c10bb8007123aa334a8353f8f7 (patch) | |
tree | 15e2f563365bf4d408cc8ccd57307e5e0683dbad /sci-libs/sundials/sundials-3.2.1.ebuild | |
parent | dev-python/psycopg: 2.8.3 bump (diff) | |
download | gentoo-d8c8d5774ab358c10bb8007123aa334a8353f8f7.tar.gz gentoo-d8c8d5774ab358c10bb8007123aa334a8353f8f7.tar.bz2 gentoo-d8c8d5774ab358c10bb8007123aa334a8353f8f7.zip |
sci-libs/sundials: 3.2.1 version bump
This commit adds 'sci-libs/sundials-3.2.1' and replaces 'versionator'
with 'eapi7-ver' in 'inherit' section.
It seems that the block:
if [[ lib != $(get_libdir) ]]; then
mv "${ED%/}"/usr/lib "${ED%/}"/usr/$(get_libdir) || die
fi
within 'src_install()' section isn't required anymore
since sundials-3.2.1 so it's removed here.
Closes: https://github.com/gentoo/gentoo/pull/12309
Signed-off-by: Sergey Torokhov <torokhov_s_a@mail.ru>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/sundials/sundials-3.2.1.ebuild')
-rw-r--r-- | sci-libs/sundials/sundials-3.2.1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-libs/sundials/sundials-3.2.1.ebuild b/sci-libs/sundials/sundials-3.2.1.ebuild new file mode 100644 index 000000000000..649b2f4f7085 --- /dev/null +++ b/sci-libs/sundials/sundials-3.2.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD=90 + +inherit cmake-utils eapi7-ver toolchain-funcs fortran-2 + +DESCRIPTION="Suite of nonlinear solvers" +HOMEPAGE="https://computation.llnl.gov/projects/sundials" +SRC_URI="https://computation.llnl.gov/projects/sundials/download/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1)" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cxx doc examples fortran hypre lapack mpi openmp sparse static-libs superlumt threads" +REQUIRED_USE="hypre? ( mpi )" + +RDEPEND=" + lapack? ( virtual/lapack ) + mpi? ( virtual/mpi sci-libs/hypre:= ) + sparse? ( sci-libs/klu:= ) + superlumt? ( sci-libs/superlu_mt:= ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-fix-license-install-path.patch ) + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp && [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi +} + +src_configure() { + mycmakeargs+=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_LIBS="$(usex static-libs)" + -DCXX_ENABLE="$(usex cxx)" + -DFCMIX_ENABLE="$(usex fortran)" + -DF90_ENABLE="$(usex fortran)" + -DHYPRE_ENABLE="$(usex hypre)" + -DHYPRE_INCLUDE_DIR="${EPREFIX}/usr/include/hypre" + -DKLU_ENABLE="$(usex sparse)" + -DKLU_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libklu.so" + -DLAPACK_ENABLE="$(usex lapack)" + -DMPI_ENABLE="$(usex mpi)" + -DOPENMP_ENABLE="$(usex openmp)" + -DPTHREAD_ENABLE="$(usex threads)" + -DSUPERLUMT_ENABLE="$(usex superlumt)" + -DSUPERLUMT_INCLUDE_DIR="${EPREFIX}/usr/include/superlu_mt" + -DSUPERLUMT_LIBRARY="superlu_mt" + -DEXAMPLES_ENABLE="$(usex examples)" + -DEXAMPLES_INSTALL=ON + -DEXAMPLES_INSTALL_PATH="/usr/share/doc/${PF}/examples" + -DUSE_GENERIC_MATH=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + use doc && dodoc doc/*/*.pdf + cd src + for r in */README; do + newdoc ${r} README-${r%/*} + done +} |