Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/sundials/files/, sci-libs/sundials/
Date: Tue, 24 Dec 2019 14:47:46
Message-Id: 1577198855.8537444806d831ac0a5fe847d0da95c446aaea87.tamiko@gentoo
1 commit: 8537444806d831ac0a5fe847d0da95c446aaea87
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 14:32:21 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 14:47:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85374448
7
8 sci-libs/sundials: version bump to 5.0.0
9
10 Package-Manager: Portage-2.3.81, Repoman-2.3.20
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 sci-libs/sundials/Manifest | 1 +
14 .../sundials-5.0.0-fix-license-install-path.patch | 16 +++++
15 sci-libs/sundials/sundials-5.0.0.ebuild | 69 ++++++++++++++++++++++
16 3 files changed, 86 insertions(+)
17
18 diff --git a/sci-libs/sundials/Manifest b/sci-libs/sundials/Manifest
19 index e3e6893d43f..b98d5eaf31f 100644
20 --- a/sci-libs/sundials/Manifest
21 +++ b/sci-libs/sundials/Manifest
22 @@ -1,3 +1,4 @@
23 DIST sundials-3.2.1.tar.gz 14958699 BLAKE2B ecc4b454ec589e9177acc9375e1db370ad6281f8d29580d9558ad3146dbbaab52794013e9cb56ad83f7309dbd3084a1ccaf6972c6b1468cefcc86bf30d3a460c SHA512 1f3e4b12f368e4f50c38b970c012f1702e339319ee0a858661bdf83e5739bb5b8a36f98b82e2ef76d1ce8a473123046347ee1b44f3cb685509823864f0af1384
24 DIST sundials-4.0.2.tar.gz 17183377 BLAKE2B e322a978186f41d84a936faa55962ef6794bf99d6c6a108bfa2bd5615f27f32f7ab6ca4989802fa052d3132b53dca3069b7e4ec9941f95efb92de7bf0792dd88 SHA512 6d0a6fc49c695e70593da71892f0906585dee9c94899bb6b8c9a56c85f345809565166a62544647fdac411d22e37276b9b1bb78ba9be46eaeb28dcd3f6162ef5
25 DIST sundials-4.1.0.tar.gz 17221960 BLAKE2B 598c7adc9e37fcfb1f44a3235f58af489ad907d053cb67ee0d3b076076621958374eb847e48318ddf7ced85a7601c5330ac640c7abe8723aaee7d650e3298b8d SHA512 1922dca3f0b8869098670aede802e48abec39607c96304e4efd9b03d195b16920175846fce10641aeebc48c216bda73c8691139dce57ffa7731a6bc8194b81b0
26 +DIST sundials-5.0.0.tar.gz 18820465 BLAKE2B 77bc7bd489b52ff316f3e889aad4ec27830c42650591270443d45a0aa958d06663e93931a8933ca2d228619263219be4d7441cb473eaaedeab958ae47418a44e SHA512 4962adabcde19207b5044d1e63758d58b5d3cfeefcd0eae65ddfe5499931bf19fa98bafbd4742045cc255f6b4a45653f41df7a7739f86d6eb47c79c9312b4471
27
28 diff --git a/sci-libs/sundials/files/sundials-5.0.0-fix-license-install-path.patch b/sci-libs/sundials/files/sundials-5.0.0-fix-license-install-path.patch
29 new file mode 100644
30 index 00000000000..5de76573630
31 --- /dev/null
32 +++ b/sci-libs/sundials/files/sundials-5.0.0-fix-license-install-path.patch
33 @@ -0,0 +1,16 @@
34 +diff --git a/CMakeLists.txt b/CMakeLists.txt
35 +index d5436bf..76b27c5 100644
36 +--- a/CMakeLists.txt
37 ++++ b/CMakeLists.txt
38 +@@ -1122,9 +1122,9 @@ endif()
39 + # install license and notice files
40 + install(
41 + FILES ${PROJECT_SOURCE_DIR}/LICENSE
42 +- DESTINATION include/sundials
43 ++ DESTINATION share/doc/sundials-5.0.0
44 + )
45 + install(
46 + FILES ${PROJECT_SOURCE_DIR}/NOTICE
47 +- DESTINATION include/sundials
48 ++ DESTINATION share/doc/sundials-5.0.0
49 + )
50
51 diff --git a/sci-libs/sundials/sundials-5.0.0.ebuild b/sci-libs/sundials/sundials-5.0.0.ebuild
52 new file mode 100644
53 index 00000000000..9505cbb40bf
54 --- /dev/null
55 +++ b/sci-libs/sundials/sundials-5.0.0.ebuild
56 @@ -0,0 +1,69 @@
57 +# Copyright 1999-2019 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +
62 +CMAKE_MAKEFILE_GENERATOR="emake"
63 +FORTRAN_NEEDED=fortran
64 +FORTRAN_STANDARD=90
65 +
66 +inherit cmake-utils toolchain-funcs fortran-2
67 +
68 +DESCRIPTION="Suite of nonlinear solvers"
69 +HOMEPAGE="https://computation.llnl.gov/projects/sundials"
70 +SRC_URI="https://computation.llnl.gov/projects/sundials/download/${P}.tar.gz"
71 +
72 +LICENSE="BSD"
73 +SLOT="0/$(ver_cut 1)"
74 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
75 +IUSE="cxx doc examples fortran hypre lapack mpi openmp sparse static-libs superlumt threads"
76 +REQUIRED_USE="hypre? ( mpi )"
77 +
78 +RDEPEND="
79 + lapack? ( virtual/lapack )
80 + mpi? ( virtual/mpi sci-libs/hypre:= )
81 + sparse? ( sci-libs/klu:= )
82 + superlumt? ( sci-libs/superlu_mt:= )
83 +"
84 +DEPEND="${RDEPEND}
85 + virtual/pkgconfig"
86 +
87 +PATCHES=( "${FILESDIR}"/${P}-fix-license-install-path.patch )
88 +
89 +pkg_setup() {
90 + if [[ ${MERGE_TYPE} != binary ]] && use openmp && [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
91 + ewarn "OpenMP is not available in your current selected gcc"
92 + die "need openmp capable gcc"
93 + fi
94 +}
95 +
96 +src_configure() {
97 + mycmakeargs+=(
98 + -DBUILD_SHARED_LIBS=ON
99 + -DBUILD_STATIC_LIBS="$(usex static-libs)"
100 + -DCXX_ENABLE="$(usex cxx)"
101 + -DFCMIX_ENABLE="$(usex fortran)"
102 + -DF90_ENABLE="$(usex fortran)"
103 + -DHYPRE_ENABLE="$(usex hypre)"
104 + -DHYPRE_INCLUDE_DIR="${EPREFIX}/usr/include/hypre"
105 + -DKLU_ENABLE="$(usex sparse)"
106 + -DKLU_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libklu.so"
107 + -DLAPACK_ENABLE="$(usex lapack)"
108 + -DMPI_ENABLE="$(usex mpi)"
109 + -DOPENMP_ENABLE="$(usex openmp)"
110 + -DPTHREAD_ENABLE="$(usex threads)"
111 + -DSUPERLUMT_ENABLE="$(usex superlumt)"
112 + -DSUPERLUMT_INCLUDE_DIR="${EPREFIX}/usr/include/superlu_mt"
113 + -DSUPERLUMT_LIBRARY="-lsuperlu_mt"
114 + -DEXAMPLES_ENABLE="$(usex examples)"
115 + -DEXAMPLES_INSTALL=ON
116 + -DEXAMPLES_INSTALL_PATH="/usr/share/doc/${PF}/examples"
117 + -DUSE_GENERIC_MATH=ON
118 + )
119 + cmake-utils_src_configure
120 +}
121 +
122 +src_install() {
123 + cmake-utils_src_install
124 + use doc && dodoc doc/*/*.pdf
125 +}