commit:     56bb49e97ee1dc6ee5a257bed3e45c2154b87dab
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 21:11:18 2020 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 21:11:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56bb49e9

sci-libs/arpack: Fix build with gcc10

Closes: https://bugs.gentoo.org/721858
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 sci-libs/arpack/arpack-3.4.0.ebuild | 13 +++++++------
 sci-libs/arpack/arpack-3.5.0.ebuild | 11 ++++++-----
 sci-libs/arpack/arpack-9999.ebuild  | 10 +++++-----
 3 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/sci-libs/arpack/arpack-3.4.0.ebuild 
b/sci-libs/arpack/arpack-3.4.0.ebuild
index bdb9445f39b..0b424e22868 100644
--- a/sci-libs/arpack/arpack-3.4.0.ebuild
+++ b/sci-libs/arpack/arpack-3.4.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit autotools eutils fortran-2 toolchain-funcs
+inherit autotools eutils flag-o-matic fortran-2 toolchain-funcs
 
 DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
 HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/ 
https://github.com/opencollab/arpack-ng";
@@ -33,6 +33,7 @@ src_prepare() {
 }
 
 src_configure() {
+       append-fflags -fallow-argument-mismatch
        econf \
                --disable-static \
                --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
@@ -47,11 +48,11 @@ src_install() {
        newdoc DOCUMENTS/README README.doc
        use doc && dodoc "${WORKDIR}"/*.ps
        if use examples; then
-               insinto /usr/share/doc/${PF}
-               doins -r EXAMPLES
+               docinto /usr/share/doc/${PF}
+               dodoc -r EXAMPLES
                if use mpi; then
-                       insinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
-                       doins -r PARPACK/EXAMPLES/MPI
+                       docinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
+                       dodoc -r PARPACK/EXAMPLES/MPI
                fi
        fi
 }

diff --git a/sci-libs/arpack/arpack-3.5.0.ebuild 
b/sci-libs/arpack/arpack-3.5.0.ebuild
index 8f4f64772fd..097be6e89f8 100644
--- a/sci-libs/arpack/arpack-3.5.0.ebuild
+++ b/sci-libs/arpack/arpack-3.5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools eutils fortran-2 toolchain-funcs
+inherit autotools eutils flag-o-matic fortran-2 toolchain-funcs
 
 DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
 HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/ 
https://github.com/opencollab/arpack-ng";
@@ -33,6 +33,7 @@ src_prepare() {
 }
 
 src_configure() {
+       append-fflags -fallow-argument-mismatch
        econf \
                --disable-static \
                --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
@@ -47,11 +48,11 @@ src_install() {
        newdoc DOCUMENTS/README README.doc
        use doc && dodoc "${WORKDIR}"/*.ps
        if use examples; then
-               insinto /usr/share/doc/${PF}
-               doins -r EXAMPLES
+               docinto /usr/share/doc/${PF}
+               dodoc -r EXAMPLES
                if use mpi; then
-                       insinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
-                       doins -r PARPACK/EXAMPLES/MPI
+                       docinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
+                       dodoc -r PARPACK/EXAMPLES/MPI
                fi
        fi
 }

diff --git a/sci-libs/arpack/arpack-9999.ebuild 
b/sci-libs/arpack/arpack-9999.ebuild
index e81afe18fb4..e295ad66c2c 100644
--- a/sci-libs/arpack/arpack-9999.ebuild
+++ b/sci-libs/arpack/arpack-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -47,11 +47,11 @@ src_install() {
        dodoc DOCUMENTS/*.doc
        newdoc DOCUMENTS/README README.doc
        if use examples; then
-               insinto /usr/share/doc/${PF}
-               doins -r EXAMPLES
+               docinto /usr/share/doc/${PF}
+               dodoc -r EXAMPLES
                if use mpi; then
-                       insinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
-                       doins -r PARPACK/EXAMPLES/MPI
+                       docinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
+                       dodoc -r PARPACK/EXAMPLES/MPI
                fi
        fi
 }

Reply via email to