From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/mumps/
Date: Fri, 18 Sep 2020 16:47:40 +0000 (UTC) [thread overview]
Message-ID: <1600446074.4a1cc44e67e78a4d2f507e585df4deea4a91cb81.sam@gentoo> (raw)
commit: 4a1cc44e67e78a4d2f507e585df4deea4a91cb81
Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
AuthorDate: Sun Sep 15 16:18:51 2019 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 18 16:21:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a1cc44e
sci-libs/mumps: update scotch dependency
- Use >=sci-libs/scotch-6.0.1 for mumps as recommended by upstream
- Re-order inherits
- Bump to EAPI 7
- Fix missing / after ${EROOT}
Closes: https://bugs.gentoo.org/670759
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12936
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{mumps-5.1.2.ebuild => mumps-5.1.2-r1.ebuild} | 27 +++++++++++++---------
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/sci-libs/mumps/mumps-5.1.2.ebuild b/sci-libs/mumps/mumps-5.1.2-r1.ebuild
similarity index 90%
rename from sci-libs/mumps/mumps-5.1.2.ebuild
rename to sci-libs/mumps/mumps-5.1.2-r1.ebuild
index 477d6dbaeef..be2c5c64986 100644
--- a/sci-libs/mumps/mumps-5.1.2.ebuild
+++ b/sci-libs/mumps/mumps-5.1.2-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit eutils toolchain-funcs flag-o-matic versionator fortran-2 multilib
+inherit flag-o-matic fortran-2 toolchain-funcs multilib
MYP=MUMPS_${PV}
@@ -20,18 +20,23 @@ RDEPEND="
virtual/blas
metis? ( || ( >=sci-libs/metis-5 >=sci-libs/parmetis-4 )
mpi? ( >=sci-libs/parmetis-4 ) )
- scotch? ( <sci-libs/scotch-6[mpi=] )
- mpi? ( sci-libs/scalapack )"
-
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+ mpi? ( sci-libs/scalapack )
+ scotch? ( >=sci-libs/scotch-6.0.1[mpi=] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${MYP}"
+get_version_component_count() {
+ local cnt=( $(ver_rs 1- ' ') )
+ echo ${#cnt[@]}
+}
+
static_to_shared() {
local libstatic=${1}; shift
local libname=$(basename ${libstatic%.a})
- local soname=${libname}$(get_libname $(get_version_component_range 1-2))
+ local soname=${libname}$(get_libname $(ver_cut 1-2))
local libdir=$(dirname ${libstatic})
einfo "Making ${soname} from ${libstatic}"
@@ -46,7 +51,7 @@ static_to_shared() {
-Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \
"$@" -o ${libdir}/${soname} || die "${soname} failed"
[[ $(get_version_component_count) -gt 1 ]] && \
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version))
+ ln -s ${soname} ${libdir}/${libname}$(get_libname $(ver_cut 1))
ln -s ${soname} ${libdir}/${libname}$(get_libname)
fi
}
@@ -90,14 +95,14 @@ src_configure() {
if use scotch && use mpi; then
sed -i \
-e "s:#\s*\(LSCOTCH\s*=\).*:\1-lptesmumps -lptscotch -lptscotcherr:" \
- -e "s:#\s*\(ISCOTCH\s*=\).*:\1-I${EROOT}usr/include/scotch:" \
+ -e "s:#\s*\(ISCOTCH\s*=\).*:\1-I${EROOT}/usr/include/scotch:" \
Makefile.inc || die
LIBADD="${LIBADD} -lptesmumps -lptscotch -lptscotcherr"
ord="${ord} -Dptscotch"
elif use scotch; then
sed -i \
-e "s:#\s*\(LSCOTCH\s*=\).*:\1-lesmumps -lscotch -lscotcherr:" \
- -e "s:#\s*\(ISCOTCH\s*=\).*:\1-I${EROOT}usr/include/scotch:" \
+ -e "s:#\s*\(ISCOTCH\s*=\).*:\1-I${EROOT}/usr/include/scotch:" \
Makefile.inc || die
LIBADD="${LIBADD} -lesmumps -lscotch -lscotcherr"
ord="${ord} -Dscotch"
next reply other threads:[~2020-09-18 16:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 16:47 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-21 5:58 [gentoo-commits] repo/gentoo:master commit in: sci-libs/mumps/ Sam James
2024-03-21 3:16 Sam James
2023-03-07 0:18 Yixun Lan
2023-01-02 18:42 Matthias Maier
2022-12-04 9:23 WANG Xuerui
2021-09-07 17:56 Michael Orlitzky
2021-04-07 5:24 Sam James
2021-04-07 5:24 Sam James
2021-01-02 7:02 Sam James
2021-01-02 7:02 Sam James
2021-01-02 7:02 Sam James
2020-09-18 22:27 Sam James
2020-09-18 16:58 Sam James
2020-09-18 16:47 Sam James
2018-11-26 0:36 Matthias Maier
2018-11-26 0:36 Matthias Maier
2018-11-26 0:31 Matthias Maier
2018-10-08 17:56 Matthias Maier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1600446074.4a1cc44e67e78a4d2f507e585df4deea4a91cb81.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox