Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/hpl/, sys-cluster/hpl/files/
Date: Sun, 04 Oct 2020 22:55:40
Message-Id: 1601852129.543ea3b73fdbbc3f4717dfecc2db3c8f46d772f5.sam@gentoo
1 commit: 543ea3b73fdbbc3f4717dfecc2db3c8f46d772f5
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 4 22:55:24 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 22:55:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=543ea3b7
7
8 sys-cluster/hpl: bump to 2.3
9
10 Closes: https://bugs.gentoo.org/525714
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-cluster/hpl/Manifest | 1 +
15 sys-cluster/hpl/files/hpl-2.3-respect-AR.patch | 13 +++++++
16 sys-cluster/hpl/hpl-2.3.ebuild | 52 ++++++++++++++++++++++++++
17 3 files changed, 66 insertions(+)
18
19 diff --git a/sys-cluster/hpl/Manifest b/sys-cluster/hpl/Manifest
20 index 17816b32976..378d5054dd0 100644
21 --- a/sys-cluster/hpl/Manifest
22 +++ b/sys-cluster/hpl/Manifest
23 @@ -1 +1,2 @@
24 DIST hpl-2.0.tar.gz 591087 BLAKE2B d3fd738c40f89916c7a5a7cbb561d30c8b9defd08d552b6aeea707f2b6b87a4774d6dce4b9fd7983ee12b112f319e574b89fd8158a381e997dfb86a3572d5f95 SHA512 3aa76144526b01ec40d940cae50d47e480e2760a36d1e95bc6e431b216407db190946fc3d99a6a7caf7b61bcc76d805d28da3ef0b141ff467854e1cdf10bb274
25 +DIST hpl-2.3.tar.gz 660871 BLAKE2B c1f02a21d5ebcea1140e619a29fbaa70a7fe219e06ea26bd77ca49b95fabde413c4f09cd1670d0d628baf032d009a606a14c4d0ba66afce37e505a435db17753 SHA512 954297b6464e3f9d9315d2f1ce0c87b8486d3d60da92e6847e74b16fdf9fc6d73eb0b85317416c2fc088e72e81b8b3a3eb0148c14edcf575557cd86541d0d8cb
26
27 diff --git a/sys-cluster/hpl/files/hpl-2.3-respect-AR.patch b/sys-cluster/hpl/files/hpl-2.3-respect-AR.patch
28 new file mode 100644
29 index 00000000000..e7b112380c5
30 --- /dev/null
31 +++ b/sys-cluster/hpl/files/hpl-2.3-respect-AR.patch
32 @@ -0,0 +1,13 @@
33 +diff --git a/configure.ac b/configure.ac
34 +index eb91dc5..cc10681 100644
35 +--- a/configure.ac
36 ++++ b/configure.ac
37 +@@ -8,6 +8,8 @@ AX_PROG_CC_MPI
38 +
39 + AC_PROG_RANLIB
40 +
41 ++AM_PROG_AR
42 ++
43 + AC_PROG_INSTALL
44 +
45 + AM_INIT_AUTOMAKE([subdir-objects])
46
47 diff --git a/sys-cluster/hpl/hpl-2.3.ebuild b/sys-cluster/hpl/hpl-2.3.ebuild
48 new file mode 100644
49 index 00000000000..6ed3d0fbd20
50 --- /dev/null
51 +++ b/sys-cluster/hpl/hpl-2.3.ebuild
52 @@ -0,0 +1,52 @@
53 +# Copyright 1999-2020 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +inherit autotools toolchain-funcs
59 +
60 +DESCRIPTION="Portable Implementation of the Linpack Benchmark for Distributed-Memory Clusters"
61 +HOMEPAGE="http://www.netlib.org/benchmark/hpl/"
62 +SRC_URI="http://www.netlib.org/benchmark/hpl/hpl-${PV}.tar.gz"
63 +
64 +SLOT="0"
65 +LICENSE="HPL"
66 +KEYWORDS="~amd64 ~x86"
67 +IUSE="doc"
68 +
69 +BDEPEND="virtual/pkgconfig"
70 +RDEPEND="
71 + virtual/blas
72 + virtual/lapack
73 + virtual/mpi"
74 +DEPEND="${RDEPEND}"
75 +
76 +PATCHES=(
77 + "${FILESDIR}/${PN}-2.3-respect-AR.patch"
78 +)
79 +
80 +src_prepare() {
81 + default
82 +
83 + # Needed for the AR patch
84 + eautoreconf
85 +}
86 +
87 +src_install() {
88 + default
89 +
90 + doman man/man3/*.3
91 + dodoc testing/ptest/HPL.dat
92 +
93 + if use doc; then
94 + docinto html
95 + dodoc -r www/*
96 + fi
97 +}
98 +
99 +pkg_postinst() {
100 + einfo "Remember to copy (+ extract) ${EROOT}/usr/share/${PF}/HPL.dat.bzip2 to your working directory"
101 + einfo "before running xhpl. Typically one may run hpl by executing:"
102 + einfo "\"mpiexec -np 4 ${EROOT}/usr/bin/xhpl\""
103 + einfo "where -np specifies the number of processes."
104 +}