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/libsc/
Date: Mon, 15 Apr 2019 01:34:12
Message-Id: 1555292029.01435162798860770bbd8966125481438a121195.tamiko@gentoo
1 commit: 01435162798860770bbd8966125481438a121195
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 15 00:34:30 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 15 01:33:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01435162
7
8 sci-libs/libsc: version bump to 2.2
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 sci-libs/libsc/Manifest | 1 +
14 sci-libs/libsc/libsc-2.2.ebuild | 93 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 94 insertions(+)
16
17 diff --git a/sci-libs/libsc/Manifest b/sci-libs/libsc/Manifest
18 index a9780e3e091..e05dc541788 100644
19 --- a/sci-libs/libsc/Manifest
20 +++ b/sci-libs/libsc/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libsc-1.0.tar.gz 257930 BLAKE2B b67ee98d8a31dcd09af70783a253b7289657c51e345c59b6551ab8be3a2067ce20d75c3f6323f4113501d57baf31d95c5a40b025c77f37a693616ae2bb118266 SHA512 bf5af600e9cbd4038b1bd40c88776b21be5d474e34f9aacf287b890d262a22dc50ca27982c2eb9adba9735c8d9bb1fc31de2a27b24cdab534e3b2f610d76db7d
23 DIST libsc-1.1.tar.gz 263643 BLAKE2B 827c0e01154983dd309301c6ecfa380d3489b5b764f131c2df2554b002a6c726a44272963cef4b4a853af5fb4c9ba98c77b01e107fc555432317662d985de2a9 SHA512 a3d8bea406a1987e68e88dd587aebe28c796f2a5bddfc381b34b5eb1448e0ac23889cc6f97fc1e4010289f83996180db42cbb001d0518360349b993dd37d4579
24 DIST libsc-2.0.tar.gz 296392 BLAKE2B b5e1ca5cf6802ed38c32db5e7a77aec2fc636d88f2562314088dc16d13a0dccd24706276b05f8ddd70bc3769270a378c0089873fb2a21ebc93d6ca2622d7a58e SHA512 e4cfe42a1c1fe17412e1ffb6ebebe1f760861a7fb707a6f8fd01cdebda96b166ee05e7ff034f3b9e30de5e9baa82c9a2cebe93d40772dbd206603321de40559c
25 +DIST libsc-2.2.tar.gz 311542 BLAKE2B 0879be69208f0964d73cc297a64b158ad88344e876a90dd4bd39c80fc0cf8237f4551cb684dee36e08068fa04644b887ec56230335a9984363055c1248aa6185 SHA512 97953794fdeb985bedb1dc9378f10ed4824446c63762d7813aced3309c2d6b27368c91fecb22587dccdf8b3b42aaaba9e782b739086cf542570360795897ac14
26
27 diff --git a/sci-libs/libsc/libsc-2.2.ebuild b/sci-libs/libsc/libsc-2.2.ebuild
28 new file mode 100644
29 index 00000000000..832e275e91d
30 --- /dev/null
31 +++ b/sci-libs/libsc/libsc-2.2.ebuild
32 @@ -0,0 +1,93 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools toolchain-funcs eutils
39 +
40 +DESCRIPTION="Support for parallel scientific applications"
41 +HOMEPAGE="http://www.p4est.org/"
42 +
43 +if [[ ${PV} = *9999* ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/cburstedde/${PN}.git"
46 + EGIT_BRANCH="develop"
47 + SRC_URI=""
48 + KEYWORDS=""
49 +else
50 + SRC_URI="https://github.com/cburstedde/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +LICENSE="LGPL-2.1+"
55 +SLOT="0"
56 +IUSE="debug examples mpi openmp romio static-libs threads"
57 +
58 +REQUIRED_USE="romio? ( mpi )"
59 +
60 +RDEPEND="
61 + dev-lang/lua:*
62 + sys-apps/util-linux
63 + virtual/blas
64 + virtual/lapack
65 + mpi? ( virtual/mpi[romio?] )"
66 +
67 +DEPEND="
68 + ${RDEPEND}
69 + virtual/pkgconfig"
70 +
71 +DOCS=( AUTHORS NEWS README )
72 +
73 +AUTOTOOLS_AUTORECONF=true
74 +
75 +pkg_pretend() {
76 + if [[ ${MERGE_TYPE} != "binary" ]] && use openmp; then
77 + tc-has-openmp || \
78 + die "Please select an openmp capable compiler like gcc[openmp]"
79 + fi
80 +}
81 +
82 +src_prepare() {
83 + default
84 +
85 + # Inject a version number into the build system
86 + echo "${PV}" > ${S}/.tarball-version
87 + eautoreconf
88 +}
89 +
90 +src_configure() {
91 + local myeconfargs=(
92 + $(use_enable debug)
93 + $(use_enable mpi)
94 + $(use_enable openmp openmp)
95 + $(use_enable romio mpiio)
96 + $(use_enable static-libs static)
97 + $(use_enable threads pthread)
98 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
99 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
100 + )
101 + econf "${myeconfargs[@]}"
102 +}
103 +
104 +src_install() {
105 + default
106 +
107 + if use examples; then
108 + docinto examples
109 + dodoc -r example/*
110 + docompress -x /usr/share/doc/${PF}/examples
111 + else
112 + # Remove compiled example binaries in case of -examples:
113 + rm -r "${ED}"/usr/bin || die "rm failed"
114 + fi
115 +
116 + # Remove ac files, bug #619806
117 + rm -r "${ED}"/usr/share/aclocal || die "rm failed"
118 +
119 + # Fix wrong installation paths:
120 + dodir /usr/share/libsc
121 + mv "${ED}"/etc/* "${ED}"/usr/share/libsc || die "mv failed"
122 + rmdir "${ED}"/etc/ || die "rmdir failed"
123 + mv "${ED}"/usr/share/ini/* "${ED}"/usr/share/libsc || die "mv failed"
124 + rmdir "${ED}"/usr/share/ini || die "rmdir failed"
125 +}