[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2024-03-20 Thread Sam James
commit: 598d2aea0a81d5cf3957a7d32ba987bdb81ed3ce
Author: Eli Schwartz  gmail  com>
AuthorDate: Thu Mar 21 01:26:17 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 21 03:16:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=598d2aea

sci-libs/scotch: remove redundant double sed

Introduced in commit 4af10b0593cbc3fa93b62b3755ba2bed748dbf7d as part of
other changes.

Signed-off-by: Eli Schwartz  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 39afc59e85ee..2c9d51f1b1e0 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -66,7 +66,6 @@ src_prepare() {
-e "s/-O3/${CFLAGS} -pthread/" \
-e "s/= ar$/= $(tc-getAR)/" \
-e "s/= ranlib$/= $(tc-getRANLIB)/" \
-   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
-e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
 }



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-06-03 Thread Arthur Zamarin
commit: ab1e4f5507a910c1ec7d926f1f7746e62b3d8015
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun  2 16:12:47 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jun  3 11:12:44 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab1e4f55

sci-libs/scotch: destabilize for ~ppc

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild| 4 ++--
 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index 7139e3d8fb22..0d4023655353 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 3767a4a5a696..3ee6ee308e01 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-31 Thread Sam James
commit: db2baaf8cdc69933bcd35e63148035990461610e
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr  1 00:54:49 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr  1 00:54:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db2baaf8

sci-libs/scotch: Stabilize 7.0.1-r1 arm64, #899454

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 3251df705520..3767a4a5a696 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-04 Thread Arthur Zamarin
commit: 4065529f6d3dd00fe19694624739e69a57cf7831
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 11:02:13 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 11:02:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4065529f

sci-libs/scotch: Stabilize 7.0.1-r1 amd64, #899454

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 9a90101f74fc..3251df705520 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-04 Thread Arthur Zamarin
commit: 656a4a9a03ff72a983d6b542ef241a824a0cf3fa
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 09:55:19 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 09:55:19 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=656a4a9a

sci-libs/scotch: Stabilize 7.0.1-r1 ppc, #899454

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 4eeba86e81d1..9a90101f74fc 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-04 Thread Arthur Zamarin
commit: 0dd013afa2a6ee00fb9793624660402b7ac4915a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 08:55:17 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 08:55:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd013af

sci-libs/scotch: Stabilize 7.0.1-r1 x86, #899454

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index c122bacdbdcb..4eeba86e81d1 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc 
~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc 
x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-03 Thread Arthur Zamarin
commit: 7f9ea40a1fa1d5c1f3e6f714acd1becf6d79f94b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 06:23:35 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 06:23:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f9ea40a

sci-libs/scotch: Stabilize 7.0.1-r1 arm, #899454

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index afb165975c82..c122bacdbdcb 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv 
~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc 
~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2023-03-03 Thread Arthur Zamarin
commit: 74aedf2496bf3a0a12678aa4c86af3a7b46236b7
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 06:20:59 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 06:20:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74aedf24

sci-libs/scotch: Stabilize 7.0.1-r1 ppc64, #899454

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-7.0.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/scotch/scotch-7.0.1-r1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 37ae5cb9d814..afb165975c82 100644
--- a/sci-libs/scotch/scotch-7.0.1-r1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv 
~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv 
~sparc ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-06-20 Thread David Seifert
commit: 6e69c00ebc05d5ea82243c00f3a83d5ce9efb3ee
Author: David Seifert  gentoo  org>
AuthorDate: Mon Jun 20 09:32:37 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon Jun 20 09:32:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e69c00e

sci-libs/scotch: drop 6.1.0, 6.1.0-r1, 6.1.1

Signed-off-by: David Seifert  gentoo.org>

 sci-libs/scotch/Manifest   |   2 -
 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 173 
 sci-libs/scotch/scotch-6.1.0.ebuild| 173 
 sci-libs/scotch/scotch-6.1.1.ebuild| 174 -
 4 files changed, 522 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index 9c1ce2781f46..4c27e3e7fea2 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,4 +1,2 @@
-DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
-DIST scotch-v6.1.1.tar.gz 6363384 BLAKE2B 
337c81608fd245dde5b19bb6c79924e0ee80181ce3c935ae37e6248be2511a2f4d70bdda5b9217e5e1ed79fc00269de15755c3b6829579aa190ca6da9c3c2dac
 SHA512 
daa62463f25416764250fe0452ae84bc6a2e485ee62a387418b4686c2ab93a2ca2d5a12cba922857c99a1c9ec67fc82951b0f9563ab97f5f3a6b86bb9da22b0c
 DIST scotch-v6.1.2.tar.gz 6395320 BLAKE2B 
07aa4f56c097cf364d7d63613f3c5d5d3f2a8419ce27da95a4a20d5ea48fcf2f036acaa62ab1f591b5d1dc672151562bc0721a66f203c60d5ee26a501cf90352
 SHA512 
dcf63c65bf8155590a70483f80ad21b4a303debf50d47a3c154983935dc056f3df93a61c3d88304f3d1a4517ab3a355e176d72b3835382cd65c1556fbbd21702
 DIST scotch-v7.0.1.tar.gz 6838403 BLAKE2B 
48cb928bf8586bbbe206dcb4f685e6c392ae078f5493e0384776cf6788137361286adbebceb7ad5c171eced34f5dda3f4852092413e79cbb791bd3ced204784c
 SHA512 
c3267d5c8785a2258af3baf999d2c1eb75ef361062e74962b6e985a75cc4f5ef1f79919759ba1b7cf028f94d06a5ddf3818108a97eca4123a11d7750b5d7093d

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
deleted file mode 100644
index d6ca0e868e39..
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ /dev/null
@@ -1,173 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs flag-o-matic multilib
-
-SOVER=$(ver_cut 1)
-
-DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
-HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
-SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="CeCILL-2"
-SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
-IUSE="doc int64 mpi static-libs test tools threads"
-# bug #532620
-REQUIRED_USE="test? ( threads )"
-RESTRICT="!test? ( test )"
-
-DEPEND="
-   sys-libs/zlib
-   mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-
-static_to_shared() {
-   local libstatic=${1}; shift
-   local libname=$(basename ${libstatic%.a})
-   local soname=${libname}$(get_libname ${SOVER})
-   local libdir=$(dirname ${libstatic})
-
-   einfo "Making ${soname} from ${libstatic}"
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
-   -Wl,-all_load -Wl,${libstatic} \
-   "$@" -o ${libdir}/${soname} || die "${soname} failed"
-   else
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -shared -Wl,-soname=${soname} \
-   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
-   "$@" -o ${libdir}/${soname} || die "${soname} failed"
-   VERS_COMP=${PV//.}
-   [[ "${#VERS_COMP}" -gt 1 ]] && \
-   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
-   ln -s ${soname} ${libdir}/${libname}$(get_libname)
-   fi
-}
-
-src_prepare() {
-   default
-   use int64 && append-cflags -DINTSIZE64 -DIDXSIZE64
-   if use threads; then
-   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
-   else
-   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
-   sed -i \
-   -e 's/ -DSCOTCH_PTHREAD//' \
-   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
-   fi
-
-   # Be careful with replacing here, bug #577272
-   sed -e "s/= gcc$/= $(tc-getCC)/" \
-   -e "s/-O3/${CFLAGS} -pthread/" \
-   -e "s/= ar$/= $(tc-getAR)/" \
-   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
-   -e "s/=

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-03-26 Thread Andrew Ammerlaan
commit: 0e3f952b738b07bb3d935b6b6cb81a031347bb93
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sat Mar 26 10:47:35 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat Mar 26 10:55:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e3f952b

sci-libs/scotch: fix build with USE=mpi

Closes: https://bugs.gentoo.org/835914

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 sci-libs/scotch/{scotch-7.0.1.ebuild => scotch-7.0.1-r1.ebuild} | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sci-libs/scotch/scotch-7.0.1.ebuild 
b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
similarity index 98%
rename from sci-libs/scotch/scotch-7.0.1.ebuild
rename to sci-libs/scotch/scotch-7.0.1-r1.ebuild
index 5f7ec4a8c16f..ddd574b69a8f 100644
--- a/sci-libs/scotch/scotch-7.0.1.ebuild
+++ b/sci-libs/scotch/scotch-7.0.1-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit toolchain-funcs flag-o-matic multilib
 
@@ -87,7 +87,6 @@ src_compile() {
static_to_shared lib/libptscotcherrexit.a
static_to_shared lib/libptscotch.a -Llib -lscotch -lptscotcherr 
-lz -lm -lrt
static_to_shared lib/libptesmumps.a -Llib -lscotch -lptscotch
-   static_to_shared lib/libptscotchparmetis.a -Llib -lscotch 
-lptscotch
fi
if use static-libs; then
emake -C src clean



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Sam James
commit: 4da6773013ed9699393143b73b5cbb76131887d8
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 21:03:06 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 22:37:33 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4da67730

sci-libs/scotch: add 7.0.1

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/Manifest|   1 +
 sci-libs/scotch/scotch-7.0.1.ebuild | 176 
 2 files changed, 177 insertions(+)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index fcf76ab6b400..9c1ce2781f46 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,3 +1,4 @@
 DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
 DIST scotch-v6.1.1.tar.gz 6363384 BLAKE2B 
337c81608fd245dde5b19bb6c79924e0ee80181ce3c935ae37e6248be2511a2f4d70bdda5b9217e5e1ed79fc00269de15755c3b6829579aa190ca6da9c3c2dac
 SHA512 
daa62463f25416764250fe0452ae84bc6a2e485ee62a387418b4686c2ab93a2ca2d5a12cba922857c99a1c9ec67fc82951b0f9563ab97f5f3a6b86bb9da22b0c
 DIST scotch-v6.1.2.tar.gz 6395320 BLAKE2B 
07aa4f56c097cf364d7d63613f3c5d5d3f2a8419ce27da95a4a20d5ea48fcf2f036acaa62ab1f591b5d1dc672151562bc0721a66f203c60d5ee26a501cf90352
 SHA512 
dcf63c65bf8155590a70483f80ad21b4a303debf50d47a3c154983935dc056f3df93a61c3d88304f3d1a4517ab3a355e176d72b3835382cd65c1556fbbd21702
+DIST scotch-v7.0.1.tar.gz 6838403 BLAKE2B 
48cb928bf8586bbbe206dcb4f685e6c392ae078f5493e0384776cf6788137361286adbebceb7ad5c171eced34f5dda3f4852092413e79cbb791bd3ced204784c
 SHA512 
c3267d5c8785a2258af3baf999d2c1eb75ef361062e74962b6e985a75cc4f5ef1f79919759ba1b7cf028f94d06a5ddf3818108a97eca4123a11d7750b5d7093d

diff --git a/sci-libs/scotch/scotch-7.0.1.ebuild 
b/sci-libs/scotch/scotch-7.0.1.ebuild
new file mode 100644
index ..5f7ec4a8c16f
--- /dev/null
+++ b/sci-libs/scotch/scotch-7.0.1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic multilib
+
+SOVER=$(ver_cut 1)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
+SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs test tools +threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   VERS_COMP=${PV//.}
+   [[ "${#VERS_COMP}" -gt 1 ]] && \
+   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
+   ln -s ${soname} ${libdir}/${libname}$(get_libname)
+   fi
+}
+
+src_prepare() {
+   default
+   use int64 && append-cflags -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake -C src

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Sam James
commit: eb4df7d3939fd9cf1ba0d2b19e133f9f47875066
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 19:26:34 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 19:26:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4df7d3

sci-libs/scotch: Stabilize 6.1.2 ppc, #833719

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index bfe44f4634d7..7139e3d8fb22 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Jakov Smolić
commit: 9d937ce398252fdec76013edabf114b236c9d1b6
Author: Jakov Smolić  gentoo  org>
AuthorDate: Sat Feb 19 15:47:34 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Sat Feb 19 15:47:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d937ce3

sci-libs/scotch: Stabilize 6.1.2 amd64, #833719

Signed-off-by: Jakov Smolić  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index 13469212ef50..bfe44f4634d7 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Arthur Zamarin
commit: 5b24d5ba6f7b9ac43fbed952f4c5f6391b3280ce
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 13:52:06 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 13:52:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b24d5ba

sci-libs/scotch: Stabilize 6.1.2 ppc64, #833719

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index b9746b63db95..13469212ef50 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Arthur Zamarin
commit: f767c3262049763b35bc8c339980a910d120bba1
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 13:35:07 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 13:35:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f767c326

sci-libs/scotch: Stabilize 6.1.2 arm64, #833719

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index ae14de084f05..b9746b63db95 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Jakov Smolić
commit: 47ee4327fbc69ad0adb4adbc80625772eb8c7b89
Author: Jakov Smolić  gentoo  org>
AuthorDate: Sat Feb 19 13:20:37 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Sat Feb 19 13:20:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47ee4327

sci-libs/scotch: Stabilize 6.1.2 x86, #833719

Signed-off-by: Jakov Smolić  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index 379b7c4b0e80..ae14de084f05 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-02-19 Thread Arthur Zamarin
commit: 968775a5fa4d9d4065a6751e1736e2db0c476abb
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 12:38:40 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 12:38:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=968775a5

sci-libs/scotch: Stabilize 6.1.2 arm, #833719

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-6.1.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
index 7075116f20e0..379b7c4b0e80 100644
--- a/sci-libs/scotch/scotch-6.1.2.ebuild
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/files/

2022-01-31 Thread Andrew Ammerlaan
commit: 58cdacee8b9359ce9a5f75ac6e27c9c0689d
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sat Jan 15 21:24:52 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Jan 31 13:54:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58cdacee

sci-libs/scotch: remove unused patch(es)

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/23815
Signed-off-by: Andrew Ammerlaan  gentoo.org>

 sci-libs/scotch/files/scotch-6.0.4-as-needed.patch | 128 -
 .../scotch/files/scotch-6.0.4-flex-2.6.3-fix.patch |  33 --
 2 files changed, 161 deletions(-)

diff --git a/sci-libs/scotch/files/scotch-6.0.4-as-needed.patch 
b/sci-libs/scotch/files/scotch-6.0.4-as-needed.patch
deleted file mode 100644
index 449449bec073..
--- a/sci-libs/scotch/files/scotch-6.0.4-as-needed.patch
+++ /dev/null
@@ -1,128 +0,0 @@
-diff -Nur scotch_6.0.4/src/check/Makefile 
scotch_6.0.4_patched/src/check/Makefile
 scotch_6.0.4/src/check/Makefile2015-03-01 03:18:02.0 -0700
-+++ scotch_6.0.4_patched/src/check/Makefile2015-07-17 15:15:58.447398954 
-0600
-@@ -53,7 +53,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) 
-I$(SCOTCHINCLUDEDIR) -c $(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(SCOTCHINCLUDEDIR) 
-L$(SCOTCHLIBDIR) $(<) -o $(@) $(SCOTCHLIBS) $(LDFLAGS)
-+  $(CC) $(CFLAGS) $(LDFLAGS) 
-I$(SCOTCHINCLUDEDIR) -L$(SCOTCHLIBDIR) $(<) $(SCOTCHLIBS) $(LIBS) -o $(@)
- 
- ##
- ##  Project rules.
-diff -Nur scotch_6.0.4/src/esmumps/Makefile 
scotch_6.0.4_patched/src/esmumps/Makefile
 scotch_6.0.4/src/esmumps/Makefile  2015-03-13 17:32:06.0 -0600
-+++ scotch_6.0.4_patched/src/esmumps/Makefile  2015-07-17 15:17:47.389600699 
-0600
-@@ -44,7 +44,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -I$(includedir) -c 
$(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(includedir) $(<) -o $(@) 
-L$(libdir) $(LDFLAGS) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -lscotch 
-l$(SCOTCHLIB)errexit -lm
-+  $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) $(<) 
-L$(libdir) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit 
$(LIBS) -o $(@)
- 
- ##
- ##  Project rules.
-@@ -57,7 +57,7 @@
-   libesmumps$(LIB)
\
-   main_esmumps$(EXE)
- 
--ptscotch  :   clean
-+ptscotch  :   clean common.h
-   $(MAKE) CFLAGS="$(CFLAGS) 
-DSCOTCH_PTSCOTCH" CC="$(CCP)" SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps\
-   libesmumps$(LIB)
\
-   main_esmumps$(EXE)
-@@ -160,6 +160,6 @@
-   order.h 
\
-   symbol.h
\
-   esmumps.h   
\
--  lib$(ESMUMPSLIB)$(LIB)  
\
-+  libesmumps$(LIB)  \
-   $(libdir)/lib$(SCOTCHLIB)$(LIB) 
\
-   $(libdir)/lib$(SCOTCHLIB)errexit$(LIB)
-diff -Nur scotch_6.0.4/src/libscotch/Makefile 
scotch_6.0.4_patched/src/libscotch/Makefile
 scotch_6.0.4/src/libscotch/Makefile2014-09-23 13:28:28.0 
-0600
-+++ scotch_6.0.4_patched/src/libscotch/Makefile2015-07-17 
15:19:17.320116484 -0600
-@@ -43,7 +43,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -c $(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -DSCOTCH_VERSION=$(VERSION) 
-DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) 
$(LDFLAGS)
-+  $(CC) $(CFLAGS) $(LDFLAGS) 
-DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) 
-DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) $(LIBS)  -o $(@)
- 
- ##
- ##  Project rules.
-@@ -2937,14 +2937,14 @@
-   mapping.h   
\
-   order.h 
\
-   parser.h
--  $(CCD) $(CFLAGS) 
-DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) 
-DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) $(LDFLAGS)
-+  $(CCD) $(CFLAGS) $(LDFLAGS) 
-DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) 
-DSCOTCH

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2022-01-13 Thread Jakov Smolić
commit: 681e1875032b503dea7eea3619e0a42c7f0fca0c
Author: Jakov Smolić  gentoo  org>
AuthorDate: Thu Jan 13 12:07:23 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Jan 13 12:24:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=681e1875

sci-libs/scotch: drop 6.0.4-r2 (EAPI 5 --)

Bug: https://bugs.gentoo.org/818649
Signed-off-by: Jakov Smolić  gentoo.org>

 sci-libs/scotch/Manifest   |   1 -
 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 176 -
 2 files changed, 177 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index 4543fcac9f48..fcf76ab6b400 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,4 +1,3 @@
 DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
 DIST scotch-v6.1.1.tar.gz 6363384 BLAKE2B 
337c81608fd245dde5b19bb6c79924e0ee80181ce3c935ae37e6248be2511a2f4d70bdda5b9217e5e1ed79fc00269de15755c3b6829579aa190ca6da9c3c2dac
 SHA512 
daa62463f25416764250fe0452ae84bc6a2e485ee62a387418b4686c2ab93a2ca2d5a12cba922857c99a1c9ec67fc82951b0f9563ab97f5f3a6b86bb9da22b0c
 DIST scotch-v6.1.2.tar.gz 6395320 BLAKE2B 
07aa4f56c097cf364d7d63613f3c5d5d3f2a8419ce27da95a4a20d5ea48fcf2f036acaa62ab1f591b5d1dc672151562bc0721a66f203c60d5ee26a501cf90352
 SHA512 
dcf63c65bf8155590a70483f80ad21b4a303debf50d47a3c154983935dc056f3df93a61c3d88304f3d1a4517ab3a355e176d72b3835382cd65c1556fbbd21702
-DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
deleted file mode 100644
index aba2e29dcc6b..
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ /dev/null
@@ -1,176 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit epatch toolchain-funcs versionator flag-o-matic multilib
-
-# use esmumps version to allow linking with mumps
-MYP="${PN}_${PV}_esmumps"
-# download id on gforge changes every release(!)
-DID=34618
-SOVER=$(get_major_version)
-
-DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
-HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
-SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
-S="${WORKDIR}/${P/-/_}"
-
-LICENSE="CeCILL-2"
-SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux 
~x86-linux"
-IUSE="doc int64 mpi static-libs test tools threads"
-# bug #532620
-REQUIRED_USE="test? ( threads )"
-RESTRICT="!test? ( test )"
-
-DEPEND="
-   sys-libs/zlib
-   mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-
-static_to_shared() {
-   local libstatic=${1}; shift
-   local libname=$(basename ${libstatic%.a})
-   local soname=${libname}$(get_libname ${SOVER})
-   local libdir=$(dirname ${libstatic})
-
-   einfo "Making ${soname} from ${libstatic}"
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
-   -Wl,-all_load -Wl,${libstatic} \
-   "$@" -o ${libdir}/${soname} || die "${soname} failed"
-   else
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -shared -Wl,-soname=${soname} \
-   -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)
-   fi
-}
-
-src_prepare() {
-   epatch "${FILESDIR}"/${P}-as-needed.patch
-   epatch "${FILESDIR}"/${P}-flex-2.6.3-fix.patch
-   use int64 && append-cflags -DIDXSIZE64
-   if use threads; then
-   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
-   else
-   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
-   sed -i \
-   -e 's/ -DSCOTCH_PTHREAD//' \
-   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
-   fi
-
-   # Be careful with replacing here, bug #577272
-   sed -e "s/= gcc$/= $(tc-getCC)/" \
-   -e "s/-O3/${CFLAGS} -pthread/" \
-   -e "s/= ar$/= $(tc-getAR)/" \
-   -e "s/= r

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-12-27 Thread Sam James
commit: 3704929554993bf575d9c663a937fe9ab28b73e9
Author: Sam James  gentoo  org>
AuthorDate: Mon Dec 27 22:27:18 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec 27 22:27:18 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37049295

sci-libs/scotch: Stabilize 6.1.0-r1 arm64, #818649

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index 952cc6463c3f..d6ca0e868e39 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-12-25 Thread Sam James
commit: 0a2d189569d49bf684f0e187bd2c2b4171cdcca8
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 26 03:16:28 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 26 03:16:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a2d1895

sci-libs/scotch: enable threads by default in 6.1.1

Tests need it and it seems reasonable to want them too.

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.1.ebuild 
b/sci-libs/scotch/scotch-6.1.1.ebuild
index 659fc047fa82..7075116f20e0 100644
--- a/sci-libs/scotch/scotch-6.1.1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.1.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
-IUSE="doc int64 mpi static-libs test tools threads"
+IUSE="doc int64 mpi static-libs test tools +threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-12-25 Thread Sam James
commit: 6aeda678356dcc1be6d8e5598a92c83ab993cdd2
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 26 03:18:00 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 26 03:18:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aeda678

sci-libs/scotch: add 6.1.2

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/Manifest|   1 +
 sci-libs/scotch/scotch-6.1.2.ebuild | 174 
 2 files changed, 175 insertions(+)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index 72617de9d6aa..4543fcac9f48 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,3 +1,4 @@
 DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
 DIST scotch-v6.1.1.tar.gz 6363384 BLAKE2B 
337c81608fd245dde5b19bb6c79924e0ee80181ce3c935ae37e6248be2511a2f4d70bdda5b9217e5e1ed79fc00269de15755c3b6829579aa190ca6da9c3c2dac
 SHA512 
daa62463f25416764250fe0452ae84bc6a2e485ee62a387418b4686c2ab93a2ca2d5a12cba922857c99a1c9ec67fc82951b0f9563ab97f5f3a6b86bb9da22b0c
+DIST scotch-v6.1.2.tar.gz 6395320 BLAKE2B 
07aa4f56c097cf364d7d63613f3c5d5d3f2a8419ce27da95a4a20d5ea48fcf2f036acaa62ab1f591b5d1dc672151562bc0721a66f203c60d5ee26a501cf90352
 SHA512 
dcf63c65bf8155590a70483f80ad21b4a303debf50d47a3c154983935dc056f3df93a61c3d88304f3d1a4517ab3a355e176d72b3835382cd65c1556fbbd21702
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-6.1.2.ebuild 
b/sci-libs/scotch/scotch-6.1.2.ebuild
new file mode 100644
index ..7075116f20e0
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.1.2.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic multilib
+
+SOVER=$(ver_cut 1)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
+SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs test tools +threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   VERS_COMP=${PV//.}
+   [[ "${#VERS_COMP}" -gt 1 ]] && \
+   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
+   ln -s ${soname} ${libdir}/${libname}$(get_libname)
+   fi
+}
+
+src_prepare() {
+   default
+   use int64 && append-cflags -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-12-06 Thread Sam James
commit: aa1cfb7ccb0646ddb2a923e393d5007129e3c16a
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec  7 00:31:27 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec  7 00:31:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1cfb7c

sci-libs/scotch: Stabilize 6.1.0-r1 ppc, #818649

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index bcbbef23b1ec..952cc6463c3f 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-12-06 Thread Sam James
commit: 65da3ab620b666bd0a83bda4dea361c029532195
Author: Sam James  gentoo  org>
AuthorDate: Mon Dec  6 20:37:17 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec  6 20:37:17 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65da3ab6

sci-libs/scotch: Stabilize 6.1.0-r1 ppc64, #818649

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index 04b11a76de4b..bcbbef23b1ec 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-11-20 Thread Arthur Zamarin
commit: 402a243e606a024862f979528decc65cd5762b03
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Nov 21 04:55:53 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Nov 21 04:57:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=402a243e

sci-libs/scotch: Stabilize 6.1.0-r1 arm, #818649

Signed-off-by: Arthur Zamarin  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index 4248caddd1a2..04b11a76de4b 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-11-14 Thread Sam James
commit: 664f6c910ea80f2e5158c17ff101a794761fd047
Author: Sam James  gentoo  org>
AuthorDate: Sun Nov 14 23:51:03 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Nov 14 23:51:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664f6c91

sci-libs/scotch: Stabilize 6.0.4-r2 ppc64, #813567

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index f72477831328..aba2e29dcc6b 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -18,7 +18,7 @@ S="${WORKDIR}/${P/-/_}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux 
~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-10-29 Thread Sam James
commit: aa760b48f0a3bc690b4aa3e03d7ed9629ca87149
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 11:14:38 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 11:14:38 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa760b48

sci-libs/scotch: Stabilize 6.1.0-r1 x86, #818649

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index 606409f6cf8..4248caddd1a 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-10-27 Thread Sam James
commit: 1c635b1d113c0d5f6ec354777f185ce64cf0823c
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 27 22:31:04 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 27 22:31:04 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c635b1d

sci-libs/scotch: Stabilize 6.1.0-r1 amd64, #818649

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
index ff3058c464b..606409f6cf8 100644
--- a/sci-libs/scotch/scotch-6.1.0-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-10-24 Thread Sam James
commit: c2511b00bf7eaf1fa810eb217110d1f9e9ec88a9
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 24 21:14:05 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 24 21:14:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2511b00

sci-libs/scotch: Stabilize 6.0.4-r2 arm64, #813567

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 7f41e2ef543..11c8a9fc4f8 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -18,7 +18,7 @@ S="${WORKDIR}/${P/-/_}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-10-17 Thread Sam James
commit: 6b490763a3817f269c4f05d3fbdb8485f62a0d1e
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 17 07:49:22 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 17 07:49:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b490763

sci-libs/scotch: add 6.1.1

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/Manifest|   1 +
 sci-libs/scotch/scotch-6.1.1.ebuild | 174 
 2 files changed, 175 insertions(+)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index da7f4e25fe8..72617de9d6a 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,2 +1,3 @@
 DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
+DIST scotch-v6.1.1.tar.gz 6363384 BLAKE2B 
337c81608fd245dde5b19bb6c79924e0ee80181ce3c935ae37e6248be2511a2f4d70bdda5b9217e5e1ed79fc00269de15755c3b6829579aa190ca6da9c3c2dac
 SHA512 
daa62463f25416764250fe0452ae84bc6a2e485ee62a387418b4686c2ab93a2ca2d5a12cba922857c99a1c9ec67fc82951b0f9563ab97f5f3a6b86bb9da22b0c
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-6.1.1.ebuild 
b/sci-libs/scotch/scotch-6.1.1.ebuild
new file mode 100644
index 000..659fc047fa8
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.1.1.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic multilib
+
+SOVER=$(ver_cut 1)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
+SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs test tools threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   VERS_COMP=${PV//.}
+   [[ "${#VERS_COMP}" -gt 1 ]] && \
+   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
+   ln -s ${soname} ${libdir}/${libname}$(get_libname)
+   fi
+}
+
+src_prepare() {
+   default
+   use int64 && append-cflags -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake -C src CLIBFLAGS=-fPIC scotch esmumps
+   static_to_shared lib/libscotcherr.a
+   static_to_shared lib/libscotcherrexit.a
+   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lpthread 
-lscotcherr
+   static_to_shared lib/libesmumps.a -Llib -lscotch
+   static_to_shared lib/libscotchmetis.a

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-10-02 Thread Sam James
commit: 8b10e34a455a2eab9d83bfbafa2924e065a0fa7c
Author: Sam James  gentoo  org>
AuthorDate: Sat Oct  2 23:16:38 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Oct  2 23:16:38 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b10e34a

sci-libs/scotch: Stabilize 6.0.4-r2 arm, #813567

Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 4a01b91e5ca..7f41e2ef543 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -18,7 +18,7 @@ S="${WORKDIR}/${P/-/_}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-07-16 Thread Marek Szuba
commit: 997f31d98075884d1e13a50a767a48ebd5fdebe8
Author: Marek Szuba  gentoo  org>
AuthorDate: Fri Jul 16 11:15:53 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Fri Jul 16 11:43:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=997f31d9

sci-libs/scotch: extend USE=int64 logic

It is -DINTSIZE64 that changes the library's integer representation, not
-DIDXSIZE64; with only the latter set e.g. sci-libs/pastix[int64,scotch]
would still complain about a mismatch.

Continue to set the latter for now - according to the docs index size
is by default assumed to be equivalent to that of the Scotch integer
type, however the relevant preprocessor definitions are rather
convoluted so let's play it safe and assume they are _not_ in fact in
sync.

Signed-off-by: Marek Szuba  gentoo.org>

 sci-libs/scotch/scotch-6.1.0-r1.ebuild | 173 +
 1 file changed, 173 insertions(+)

diff --git a/sci-libs/scotch/scotch-6.1.0-r1.ebuild 
b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
new file mode 100644
index 000..ff3058c464b
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.1.0-r1.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic multilib
+
+SOVER=$(ver_cut 1)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
+SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs test tools threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   VERS_COMP=${PV//.}
+   [[ "${#VERS_COMP}" -gt 1 ]] && \
+   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
+   ln -s ${soname} ${libdir}/${libname}$(get_libname)
+   fi
+}
+
+src_prepare() {
+   default
+   use int64 && append-cflags -DINTSIZE64 -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake -C src CLIBFLAGS=-fPIC scotch esmumps
+   static_to_shared lib/libscotcherr.a
+   static_to_shared lib/libscotcherrexit.a
+   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lpthread 
-lscotcherr
+   static_to_shared lib/libesmumps.a -Llib -lscotch
+   static_to_shared lib/libscotchmetis.a -Llib -lscotch
+
+   if use mpi; then
+   emake -C src CLIBFLAGS=-fPIC ptscotch ptesmumps
+   export LINK=mpicc
+   static_to_shared lib/libptscotcherr.a
+   static_to_shared lib/libptscotcherrexit.a
+   static_to_shared lib/libptscotch.a -Llib -lscotch -lptscotcherr 
-lz -lm -lrt
+   static_to_shared lib/libptesmumps.a -Llib -lscotch -lptscotch
+   static_to_shared lib/libptscotchparmetis.a -Llib -lscotch 
-lptscotch
+   fi
+   if use static-libs; then
+   emake -C src clean
+   emake -C src
+   use mpi && emake -C src ptsc

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-07-14 Thread Marek Szuba
commit: f860304aabedda8ef76b57c5eb5a3f4e1e0fe895
Author: Marek Szuba  gentoo  org>
AuthorDate: Tue Jul 13 21:39:37 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Wed Jul 14 16:14:34 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f860304a

sci-libs/scotch: keyword 6.1.0 for ~riscv

Signed-off-by: Marek Szuba  gentoo.org>

 sci-libs/scotch/scotch-6.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.1.0.ebuild 
b/sci-libs/scotch/scotch-6.1.0.ebuild
index ebd2b1e8d84..60cc08c6645 100644
--- a/sci-libs/scotch/scotch-6.1.0.ebuild
+++ b/sci-libs/scotch/scotch-6.1.0.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs test tools threads"
 # bug #532620
 REQUIRED_USE="test? ( threads )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-06-10 Thread Andrew Ammerlaan
commit: 4af10b0593cbc3fa93b62b3755ba2bed748dbf7d
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Thu Jun 10 12:13:51 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Thu Jun 10 12:15:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af10b05

sci-libs/scotch: add version 6.1.0 and EAPI bump

Closes: https://bugs.gentoo.org/743421
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan  gentoo.org>

 sci-libs/scotch/Manifest|   1 +
 sci-libs/scotch/scotch-6.1.0.ebuild | 173 
 2 files changed, 174 insertions(+)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index 44a8a4eac78..da7f4e25fe8 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1 +1,2 @@
+DIST scotch-v6.1.0.tar.gz 6292006 BLAKE2B 
5b76b01c0fa752468a36830a15c190cd78efc851c3b6831eb2d16b7cf34a71d55463b266ffdee4c6addd4e66ca7caf75e63825051e600ee8a32494e5033cabbd
 SHA512 
e6d217a23e39635f8749811a3fc64c8da14d0396a71b4042a4f8f3ce32ff1f0b4ed033ebae90f3785443dae9b35ded68ea512ed1e3e7f9ea9a471a499ae26b89
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-6.1.0.ebuild 
b/sci-libs/scotch/scotch-6.1.0.ebuild
new file mode 100644
index 000..ebd2b1e8d84
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.1.0.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs flag-o-matic multilib
+
+SOVER=$(ver_cut 1)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="https://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/ 
https://gitlab.inria.fr/scotch/scotch";
+SRC_URI="https://gitlab.inria.fr/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz";
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs test tools threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive 
\
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   VERS_COMP=${PV//.}
+   [[ "${#VERS_COMP}" -gt 1 ]] && \
+   ln -s ${soname} ${libdir}/${libname}$(get_libname 
${SOVER})
+   ln -s ${soname} ${libdir}/${libname}$(get_libname)
+   fi
+}
+
+src_prepare() {
+   default
+   use int64 && append-cflags -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
+   -e "/^LDFLAGS/ s/$/ ${LDFLAGS}/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake -C src CLIBFLAGS=-fPIC scotch esmumps
+   static_to_shared lib/libscotcherr.a
+   static_to_shared lib/libscotcherrexit.a
+   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lpthread 
-lscotcherr
+   static_to_shared lib/libesmumps.a -Llib -lscotch
+   static_to_shared lib/libscotchmetis.a -Llib -lscotch
+
+   if use mpi; then
+   emake -C src CLIBFLAGS=-fPIC ptscotch ptesmumps
+   export LINK=mpicc
+   static_to_shared lib/libptscotcher

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-06-08 Thread Sam James
commit: bc42a3e1c3bd8b861936c63593fbbd525856a877
Author: Sam James  gentoo  org>
AuthorDate: Tue Jun  8 07:51:50 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun  8 07:51:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc42a3e1

sci-libs/scotch: fix toolchain sed for e.g. arm

Closes: https://bugs.gentoo.org/577272
Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 8af0ccfe611..4a01b91e5ca 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -64,10 +64,12 @@ src_prepare() {
-e 's/ -DSCOTCH_PTHREAD//' \
src/Make.inc/Makefile.inc.i686_pc_linux3 || die
fi
-   sed -e "s/gcc/$(tc-getCC)/" \
+
+   # Be careful with replacing here, bug #577272
+   sed -e "s/= gcc$/= $(tc-getCC)/" \
-e "s/-O3/${CFLAGS} -pthread/" \
-   -e "s/ ar/ $(tc-getAR)/" \
-   -e "s/ranlib/$(tc-getRANLIB)/" \
+   -e "s/= ar$/= $(tc-getAR)/" \
+   -e "s/= ranlib$/= $(tc-getRANLIB)/" \
-e "s/LDFLAGS/LIBS/" \
src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
 }



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2021-05-31 Thread David Seifert
commit: 7fe5086dd30b54358ad42662f13447a819a46e4f
Author: David Seifert  gentoo  org>
AuthorDate: Mon May 31 17:47:44 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon May 31 17:47:44 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fe5086d

sci-libs/scotch: drop inactive maintainer

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: David Seifert  gentoo.org>

 sci-libs/scotch/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/sci-libs/scotch/metadata.xml b/sci-libs/scotch/metadata.xml
index acd9751ef39..fcab05eb73d 100644
--- a/sci-libs/scotch/metadata.xml
+++ b/sci-libs/scotch/metadata.xml
@@ -1,10 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd";>
 
-
-  patr...@gentoo.org
-  Patrick Lauer
-
 
   s...@gentoo.org
   Gentoo Science Project



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/files/

2020-09-20 Thread Conrad Kostecki
commit: 90cf2f77c3fa44fda14148e7eefbe3b9658c6618
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sun Sep 20 14:03:37 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Sep 20 14:38:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90cf2f77

sci-libs/scotch: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/17617
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Conrad Kostecki  gentoo.org>

 .../scotch/files/scotch-5.1.12b-as-needed.patch| 112 -
 1 file changed, 112 deletions(-)

diff --git a/sci-libs/scotch/files/scotch-5.1.12b-as-needed.patch 
b/sci-libs/scotch/files/scotch-5.1.12b-as-needed.patch
deleted file mode 100644
index 73888d8797e..000
--- a/sci-libs/scotch/files/scotch-5.1.12b-as-needed.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-diff -Nur src.orig/esmumps/Makefile src/esmumps/Makefile
 src.orig/esmumps/Makefile  2012-03-12 00:14:14.536109811 +
-+++ src/esmumps/Makefile   2012-03-12 04:26:12.884108074 +
-@@ -44,7 +44,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -I$(includedir) -c 
$(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(includedir) $(<) -o $(@) 
-L$(libdir) $(LDFLAGS) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit
-+  $(CC) $(CFLAGS) -I$(includedir) $(<) 
-L$(libdir) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS) 
-o $(@)
- 
- ##
- ##  Project rules.
-@@ -57,9 +57,9 @@
-   libesmumps$(LIB)
\
-   main_esmumps$(EXE)
- 
--ptscotch  :   clean
-+ptscotch  :   clean common.h
-   $(MAKE) CFLAGS="$(CFLAGS) 
-DSCOTCH_PTSCOTCH" CC=$(CCP) SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps  \
--  libesmumps$(LIB)
\
-+  libptesmumps$(LIB)  
\
-   main_esmumps$(EXE)
- 
- install   :
-@@ -142,7 +142,7 @@
-   common.h
\
-   esmumps.h
- 
--libesmumps$(LIB)  :   graph_graph$(OBJ)   
\
-+lib$(ESMUMPSLIB)$(LIB):   graph_graph$(OBJ)   
\
-   order$(OBJ) 
\
-   order_scotch_graph$(OBJ)
\
-   dof$(OBJ)   
\
-diff -Nur src.orig/libscotch/Makefile src/libscotch/Makefile
 src.orig/libscotch/Makefile2012-03-12 00:14:14.496108751 +
-+++ src/libscotch/Makefile 2012-03-12 01:32:28.562403624 +
-@@ -43,7 +43,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -c $(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -DSCOTCH_VERSION=$(VERSION) 
-DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) 
$(LDFLAGS)
-+  $(CC) $(CFLAGS) -DSCOTCH_VERSION=$(VERSION) 
-DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) $(LDFLAGS) 
-o $(@)
- 
- ##
- ##  Project rules.
-@@ -2543,7 +2543,7 @@
-   mapping.h   
\
-   order.h 
\
-   parser.h
--  $(CCD) $(CFLAGS) 
-DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) 
-DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) $(LDFLAGS)
-+  $(CCD) $(CFLAGS) 
-DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) 
-DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<)  $(LDFLAGS) -o $(@)
- 
- scotch.h  :   dummysizes$(EXE)
\
-   library.h
-diff -Nur src.orig/libscotchmetis/Makefile src/libscotchmetis/Makefile
 src.orig/libscotchmetis/Makefile   2012-03-12 00:14:14.456107691 +
-+++ src/libscotchmetis/Makefile2012-03-12 01:35:00.166422784 +
-@@ -44,7 +44,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -I$(includedir) 
-I../libscotch -c $(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(includedir) -I../libscotch 
$(<) -o $(@) -L$(libdir) $(LDFLAGS)
-+  $(CC) $(CFLAGS) -I$(includedir) -I../libscotch 
$(<) -

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2020-09-18 Thread Sam James
commit: d7ad5fdd1f7c43336124eb15683d80e5ed593648
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 18 16:45:55 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 18 16:45:55 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7ad5fdd

sci-libs/scotch: explain USE=tools

Thanks-to: Michael Orlitzky  gentoo.org>
Closes: https://bugs.gentoo.org/600746
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/metadata.xml b/sci-libs/scotch/metadata.xml
index 48cba73d79f..acd9751ef39 100644
--- a/sci-libs/scotch/metadata.xml
+++ b/sci-libs/scotch/metadata.xml
@@ -11,7 +11,7 @@
 
 
   Build the 64 bits integer library (needed for > 2^31 
vertices)
-  Build and install extra exec tools
+  Provides the graph, mesh, architecture, mapping/ordering, 
output handling programs (see Scotch User's Guide).
 
 
   SCOTCH is a software package and libraries for graph, mesh and



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2020-09-18 Thread Sam James
commit: 4c996e35f5581b1a20cedfc3d11bb7ea16068739
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 18 16:44:14 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 18 16:44:14 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c996e35

sci-libs/scotch: cleanup EAPI 4

Closes: https://bugs.gentoo.org/740976
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/Manifest  |   1 -
 sci-libs/scotch/scotch-5.1.12b.ebuild | 157 --
 2 files changed, 158 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index e91ef997078..44a8a4eac78 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,2 +1 @@
-DIST scotch_5.1.12b_esmumps.tar.gz 3989632 BLAKE2B 
c529601d68bf7a5497d363a746ad46e0c5b4d0831cd9e128ce10a09580215d5370e3766ceb1c2550985b554e2ae6c125149b11f376b32881fc66c052885c814d
 SHA512 
8d6e085029f1ec13b74bd583b8fb378db9aef8a005b96bfb726b68a4608caeb31bf7ecaf1af27566e2e4a38dfea03a017d5c2e8dd262562b238cfb113b223671
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-5.1.12b.ebuild 
b/sci-libs/scotch/scotch-5.1.12b.ebuild
deleted file mode 100644
index 7188b5ab48f..000
--- a/sci-libs/scotch/scotch-5.1.12b.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit eutils toolchain-funcs versionator flag-o-matic multilib
-
-# use esmumps version to allow linking with mumps
-MYP="${PN}_${PV}_esmumps"
-# download id on gforge changes every goddamn release
-DID=28978
-
-DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
-HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
-# broken ssl cert, so mirroring
-#SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
-SRC_URI="http://dev.gentooexperimental.org/~patrick/${MYP}.tar.gz";
-
-LICENSE="CeCILL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples int64 mpi static-libs tools"
-
-DEPEND="sys-libs/zlib
-   mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MYP/b}"
-
-static_to_shared() {
-   local libstatic=${1}; shift
-   local libname=$(basename ${libstatic%.a})
-   local soname=${libname}$(get_libname $(get_version_component_range 1-2))
-   local libdir=$(dirname ${libstatic})
-
-   einfo "Making ${soname} from ${libstatic}"
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
-   -Wl,-all_load -Wl,${libstatic} \
-   "$@" -o ${libdir}/${soname} || die "${soname} failed"
-   else
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -shared -Wl,-soname=${soname} \
-   -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)
-   fi
-}
-
-src_prepare() {
-   epatch "${FILESDIR}"/${P}-as-needed.patch
-   sed -e "s/gcc/$(tc-getCC)/" \
-   -e "s/-O3/${CFLAGS} -pthread/" \
-   -e "s/ ar/ $(tc-getAR)/" \
-   -e "s/ranlib/$(tc-getRANLIB)/" \
-   src/Make.inc/Makefile.inc.i686_pc_linux2 > src/Makefile.inc || 
die
-   use int64 && append-cflags -DIDXSIZE64
-}
-
-src_compile() {
-   emake -C src CLIBFLAGS=-fPIC
-   static_to_shared lib/libscotcherr.a
-   static_to_shared lib/libscotcherrexit.a
-   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lscotcherr
-   static_to_shared lib/libesmumps.a -Llib -lscotch
-   static_to_shared lib/libscotchmetis.a -Llib -lscotch
-
-   if use mpi; then
-   emake -C src CLIBFLAGS=-fPIC ptscotch
-   export LINK=mpicc
-   static_to_shared lib/libptscotcherr.a
-   static_to_shared lib/libptscotcherrexit.a
-   static_to_shared lib/libptscotch.a -Llib -lptscotcherr -lz -lm 
-lrt
-   static_to_shared lib/libptesmumps.a -Llib -lptscotch
-   static_to_shared lib/libptscotchparmetis.a -Llib -lptscotch
-   fi
-   if use static-libs; then
-   emake -C src clean
-   emake -C src
-   use mpi && emake -C src ptscotch
-   f

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2020-09-18 Thread Sam James
commit: 86f607c8a9fdb8858eacdeda23ea086857bf8131
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 18 16:43:46 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 18 16:43:46 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86f607c8

sci-libs/scotch: fix tests

Closes: https://bugs.gentoo.org/532620
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 9f16ee0554d..09ea23318f8 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.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=5
@@ -7,26 +7,28 @@ inherit eutils toolchain-funcs versionator flag-o-matic 
multilib
 
 # use esmumps version to allow linking with mumps
 MYP="${PN}_${PV}_esmumps"
-# download id on gforge changes every goddamn release
+# download id on gforge changes every release(!)
 DID=34618
 SOVER=$(get_major_version)
 
 DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
 HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
 SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
+S="${WORKDIR}/${P/-/_}"
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
-IUSE="doc int64 mpi static-libs tools threads"
+IUSE="doc int64 mpi static-libs test tools threads"
+# bug #532620
+REQUIRED_USE="test? ( threads )"
+RESTRICT="!test? ( test )"
 
 DEPEND="
sys-libs/zlib
mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
 
-S=${WORKDIR}/${P/-/_}
-
 static_to_shared() {
local libstatic=${1}; shift
local libname=$(basename ${libstatic%.a})



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/files/, sci-libs/scotch/

2020-07-21 Thread Andreas Sturmlechner
commit: 130f0fd2cabb2235e5c6f47e21e06fb73b348545
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jul 21 11:37:19 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jul 21 16:04:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=130f0fd2

sci-libs/scotch: Drop 6.0.0, 6.0.4 (r0) and 6.0.4-r1

Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 sci-libs/scotch/Manifest   |   1 -
 sci-libs/scotch/files/scotch-6.0.0-as-needed.patch | 128 ---
 sci-libs/scotch/scotch-6.0.0.ebuild| 165 
 sci-libs/scotch/scotch-6.0.4-r1.ebuild | 171 -
 sci-libs/scotch/scotch-6.0.4.ebuild| 165 
 5 files changed, 630 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index bab767cdb75..e91ef997078 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,3 +1,2 @@
 DIST scotch_5.1.12b_esmumps.tar.gz 3989632 BLAKE2B 
c529601d68bf7a5497d363a746ad46e0c5b4d0831cd9e128ce10a09580215d5370e3766ceb1c2550985b554e2ae6c125149b11f376b32881fc66c052885c814d
 SHA512 
8d6e085029f1ec13b74bd583b8fb378db9aef8a005b96bfb726b68a4608caeb31bf7ecaf1af27566e2e4a38dfea03a017d5c2e8dd262562b238cfb113b223671
-DIST scotch_6.0.0_esmumps.tar.gz 4534976 BLAKE2B 
3d66076a520ea0f515c689c64eade13884f09ee6c58ac38e57635c405e2bd525ac144c8e36e6e86264b89480eba48f1b6bbe0049c58e1146dbb2e2216177a0f6
 SHA512 
4509a58363957b009cfc56a0a1ade31e2cb718f50edf7674d00471ee375251d03630e988036e14f545f9f4f270ff4a8b4ebe66a6f9e05b5d769b643bcf9d6067
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/files/scotch-6.0.0-as-needed.patch 
b/sci-libs/scotch/files/scotch-6.0.0-as-needed.patch
deleted file mode 100644
index ad41380de88..000
--- a/sci-libs/scotch/files/scotch-6.0.0-as-needed.patch
+++ /dev/null
@@ -1,128 +0,0 @@
-diff -Nur src.orig/check/Makefile src/check/Makefile
 src.orig/check/Makefile2013-02-07 17:27:00.0 +
-+++ src/check/Makefile 2013-02-07 17:27:21.0 +
-@@ -48,7 +48,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) 
-I$(SCOTCHINCLUDEDIR) -c $(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(SCOTCHINCLUDEDIR) 
-L$(SCOTCHLIBDIR) $(<) -o $(@) $(SCOTCHLIBS) $(LDFLAGS)
-+  $(CC) $(CFLAGS) $(LDFLAGS) 
-I$(SCOTCHINCLUDEDIR) -L$(SCOTCHLIBDIR) $(<) $(SCOTCHLIBS) $(LIBS) -o $(@)
- 
- ##
- ##  Project rules.
-diff -Nur src.orig/esmumps/Makefile src/esmumps/Makefile
 src.orig/esmumps/Makefile  2013-02-07 17:27:00.0 +
-+++ src/esmumps/Makefile   2013-02-07 17:28:11.0 +
-@@ -44,7 +44,7 @@
-   $(CC) $(CFLAGS) $(CLIBFLAGS) -I$(includedir) -c 
$(<) -o $(@)
- 
- %$(EXE)   :   %.c
--  $(CC) $(CFLAGS) -I$(includedir) $(<) -o $(@) 
-L$(libdir) $(LDFLAGS) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -lscotch 
-l$(SCOTCHLIB)errexit -lm
-+  $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) $(<) 
-L$(libdir) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit 
$(LIBS) -o $(@)
- 
- ##
- ##  Project rules.
-@@ -57,7 +57,7 @@
-   libesmumps$(LIB)
\
-   main_esmumps$(EXE)
- 
--ptscotch  :   clean
-+ptscotch  :   clean common.h
-   $(MAKE) CFLAGS="$(CFLAGS) 
-DSCOTCH_PTSCOTCH" CC=$(CCP) SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps  \
-   libesmumps$(LIB)
\
-   main_esmumps$(EXE)
-@@ -160,6 +160,6 @@
-   order.h 
\
-   symbol.h
\
-   esmumps.h   
\
--  lib$(ESMUMPSLIB)$(LIB)  
\
-+  libesmumps$(LIB)
\
-   $(libdir)/lib$(SCOTCHLIB)$(LIB) 
\
-   $(libdir)/lib$(SCOTCHLIB)errexit$(LIB)
-diff -Nur src.orig/libscotch/Makefile src/libscotch/Makefile
 src.orig/libscotch/Makefile2013-02-07 17:27:00.0 +
-+++ src/libscotch/Make

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2019-12-31 Thread Agostino Sarubbo
commit: f28028b405ee0036c7cbd49f2dcca59a873fe05b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Dec 31 14:01:35 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Dec 31 14:01:35 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28028b4

sci-libs/scotch: x86 stable wrt bug #701532

Package-Manager: Portage-2.3.79, Repoman-2.3.16
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 034bd6ffe7b..9f16ee0554d 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2019-12-30 Thread Agostino Sarubbo
commit: e2c947e51f2db5b3d2cce8fc93df76e4d16a21e1
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Dec 30 15:18:53 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Dec 30 15:18:53 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c947e5

sci-libs/scotch: amd64 stable wrt bug #701532

Package-Manager: Portage-2.3.79, Repoman-2.3.16
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 73a32f6d207..034bd6ffe7b 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2019-11-23 Thread Aaron Bauman
commit: 1457767e8408b953aa2508997e559d1ee0afb500
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sun Nov 24 04:10:04 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sun Nov 24 04:10:04 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1457767e

Revert "sci-libs/scotch: drop old EAPI and old"

This reverts commit 7af26df9708af6c31cb54d6370f2cb351c59c81f.

Signed-off-by: Aaron Bauman  gentoo.org>

 sci-libs/scotch/Manifest   |   1 +
 sci-libs/scotch/scotch-5.1.12b.ebuild  | 157 ++
 sci-libs/scotch/scotch-6.0.4-r1.ebuild | 171 +
 sci-libs/scotch/scotch-6.0.4.ebuild| 165 +++
 4 files changed, 494 insertions(+)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index b18c5f2ee82..bab767cdb75 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,2 +1,3 @@
+DIST scotch_5.1.12b_esmumps.tar.gz 3989632 BLAKE2B 
c529601d68bf7a5497d363a746ad46e0c5b4d0831cd9e128ce10a09580215d5370e3766ceb1c2550985b554e2ae6c125149b11f376b32881fc66c052885c814d
 SHA512 
8d6e085029f1ec13b74bd583b8fb378db9aef8a005b96bfb726b68a4608caeb31bf7ecaf1af27566e2e4a38dfea03a017d5c2e8dd262562b238cfb113b223671
 DIST scotch_6.0.0_esmumps.tar.gz 4534976 BLAKE2B 
3d66076a520ea0f515c689c64eade13884f09ee6c58ac38e57635c405e2bd525ac144c8e36e6e86264b89480eba48f1b6bbe0049c58e1146dbb2e2216177a0f6
 SHA512 
4509a58363957b009cfc56a0a1ade31e2cb718f50edf7674d00471ee375251d03630e988036e14f545f9f4f270ff4a8b4ebe66a6f9e05b5d769b643bcf9d6067
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-5.1.12b.ebuild 
b/sci-libs/scotch/scotch-5.1.12b.ebuild
new file mode 100644
index 000..7188b5ab48f
--- /dev/null
+++ b/sci-libs/scotch/scotch-5.1.12b.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs versionator flag-o-matic multilib
+
+# use esmumps version to allow linking with mumps
+MYP="${PN}_${PV}_esmumps"
+# download id on gforge changes every goddamn release
+DID=28978
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
+# broken ssl cert, so mirroring
+#SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
+SRC_URI="http://dev.gentooexperimental.org/~patrick/${MYP}.tar.gz";
+
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples int64 mpi static-libs tools"
+
+DEPEND="sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MYP/b}"
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname $(get_version_component_range 1-2))
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -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)
+   fi
+}
+
+src_prepare() {
+   epatch "${FILESDIR}"/${P}-as-needed.patch
+   sed -e "s/gcc/$(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/ ar/ $(tc-getAR)/" \
+   -e "s/ranlib/$(tc-getRANLIB)/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux2 > src/Makefile.inc || 
die
+   use int64 && append-cflags -DIDXSIZE64
+}
+
+src_compile() {
+   emake -C src CLIBFLAGS=-fPIC
+   static_to_shared lib/libscotcherr.a
+   static_to_shared lib/libscotcherrexit.a
+   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lscotcherr
+   static_to_shared lib/libesmumps.a -Llib -lscotch
+   static_to_shared lib/libscotchmetis.a -Llib -lscotch
+
+   if use mpi; then
+   emake -C src CLIBFLAGS=-fPIC ptscotch
+   export LINK=mpicc
+   static_to_shared

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2019-11-23 Thread Aaron Bauman
commit: 7af26df9708af6c31cb54d6370f2cb351c59c81f
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sun Nov 24 03:29:25 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sun Nov 24 03:29:25 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7af26df9

sci-libs/scotch: drop old EAPI and old

Signed-off-by: Aaron Bauman  gentoo.org>

 sci-libs/scotch/Manifest   |   1 -
 sci-libs/scotch/scotch-5.1.12b.ebuild  | 157 --
 sci-libs/scotch/scotch-6.0.4-r1.ebuild | 171 -
 sci-libs/scotch/scotch-6.0.4.ebuild| 165 ---
 4 files changed, 494 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index bab767cdb75..b18c5f2ee82 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,3 +1,2 @@
-DIST scotch_5.1.12b_esmumps.tar.gz 3989632 BLAKE2B 
c529601d68bf7a5497d363a746ad46e0c5b4d0831cd9e128ce10a09580215d5370e3766ceb1c2550985b554e2ae6c125149b11f376b32881fc66c052885c814d
 SHA512 
8d6e085029f1ec13b74bd583b8fb378db9aef8a005b96bfb726b68a4608caeb31bf7ecaf1af27566e2e4a38dfea03a017d5c2e8dd262562b238cfb113b223671
 DIST scotch_6.0.0_esmumps.tar.gz 4534976 BLAKE2B 
3d66076a520ea0f515c689c64eade13884f09ee6c58ac38e57635c405e2bd525ac144c8e36e6e86264b89480eba48f1b6bbe0049c58e1146dbb2e2216177a0f6
 SHA512 
4509a58363957b009cfc56a0a1ade31e2cb718f50edf7674d00471ee375251d03630e988036e14f545f9f4f270ff4a8b4ebe66a6f9e05b5d769b643bcf9d6067
 DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-5.1.12b.ebuild 
b/sci-libs/scotch/scotch-5.1.12b.ebuild
deleted file mode 100644
index 7188b5ab48f..000
--- a/sci-libs/scotch/scotch-5.1.12b.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit eutils toolchain-funcs versionator flag-o-matic multilib
-
-# use esmumps version to allow linking with mumps
-MYP="${PN}_${PV}_esmumps"
-# download id on gforge changes every goddamn release
-DID=28978
-
-DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
-HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
-# broken ssl cert, so mirroring
-#SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
-SRC_URI="http://dev.gentooexperimental.org/~patrick/${MYP}.tar.gz";
-
-LICENSE="CeCILL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples int64 mpi static-libs tools"
-
-DEPEND="sys-libs/zlib
-   mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MYP/b}"
-
-static_to_shared() {
-   local libstatic=${1}; shift
-   local libname=$(basename ${libstatic%.a})
-   local soname=${libname}$(get_libname $(get_version_component_range 1-2))
-   local libdir=$(dirname ${libstatic})
-
-   einfo "Making ${soname} from ${libstatic}"
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
-   -Wl,-all_load -Wl,${libstatic} \
-   "$@" -o ${libdir}/${soname} || die "${soname} failed"
-   else
-   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
-   -shared -Wl,-soname=${soname} \
-   -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)
-   fi
-}
-
-src_prepare() {
-   epatch "${FILESDIR}"/${P}-as-needed.patch
-   sed -e "s/gcc/$(tc-getCC)/" \
-   -e "s/-O3/${CFLAGS} -pthread/" \
-   -e "s/ ar/ $(tc-getAR)/" \
-   -e "s/ranlib/$(tc-getRANLIB)/" \
-   src/Make.inc/Makefile.inc.i686_pc_linux2 > src/Makefile.inc || 
die
-   use int64 && append-cflags -DIDXSIZE64
-}
-
-src_compile() {
-   emake -C src CLIBFLAGS=-fPIC
-   static_to_shared lib/libscotcherr.a
-   static_to_shared lib/libscotcherrexit.a
-   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lscotcherr
-   static_to_shared lib/libesmumps.a -Llib -lscotch
-   static_to_shared lib/libscotchmetis.a -Llib -lscotch
-
-   if use mpi; then
-   emake -C src CLIBFLAGS=-fPIC ptscotch
-   export LINK=mpicc
-   static_to_shared lib/libptscotcherr.a
-   static_to_shared lib/libptscotc

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-11-27 Thread Sergei Trofimovich
commit: b38491e47e3d9e3544cd59ae45c1e3011fab991b
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Nov 27 19:40:23 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Nov 27 19:46:40 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38491e4

sci-libs/scotch: keyworded 6.0.4-r2 for sparc, bug #575366 (thanks to Rolf Eike 
Beer)

Package-Manager: Portage-2.3.16, Repoman-2.3.6
RepoMan-Options: --include-arches="sparc"

 sci-libs/scotch/Manifest   | 2 +-
 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest
index 454b3bc8ca6..2b8c53a1284 100644
--- a/sci-libs/scotch/Manifest
+++ b/sci-libs/scotch/Manifest
@@ -1,3 +1,3 @@
 DIST scotch_5.1.12b_esmumps.tar.gz 3989632 SHA256 
82654e63398529cd3bcc8eefdd51d3b3161c0429bb11770e31f8eb0c3790db6e SHA512 
8d6e085029f1ec13b74bd583b8fb378db9aef8a005b96bfb726b68a4608caeb31bf7ecaf1af27566e2e4a38dfea03a017d5c2e8dd262562b238cfb113b223671
 WHIRLPOOL 
85679809826ce09df8a05b09026179dcf4a1424f9f9c44ce97ba172fd18b7dc3af669c686d4ea5b169501dcb011ceab419d0391ae378712302977fb55f35abb8
 DIST scotch_6.0.0_esmumps.tar.gz 4534976 SHA256 
8206127d038bda868dda5c5a7f60ef8224f2e368298fbb01bf13fa250e378dd4 SHA512 
4509a58363957b009cfc56a0a1ade31e2cb718f50edf7674d00471ee375251d03630e988036e14f545f9f4f270ff4a8b4ebe66a6f9e05b5d769b643bcf9d6067
 WHIRLPOOL 
7083a767d13d24b7b2640109643bb309bfc267a191537d77d6e31828eb1f875f2d0055f18e4038ebb24536c7d098b1d365524ea06092e1253f894351ba1157c3
-DIST scotch_6.0.4_esmumps.tar.gz 4804966 SHA256 
f53f4d71a8345ba15e2dd4e102a35fd83915abf50ea73e1bf6efe1bc2b4220c7 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2
 WHIRLPOOL 
cadceb30086d586faaefe992dd75329565ce44c4da252526147a88a47be61b92f5ccdeec8cc1c5e3ff5f560c7f296e1aa1e872495ed91c70f3e8272a07435105
+DIST scotch_6.0.4_esmumps.tar.gz 4804966 BLAKE2B 
63c058fac9206e70975463b1748eb5ce7cd2ba01d9fcbb28eba8f5914ac49a71fcf87941fafd6047712fa519f3b5523ce199bdf5228a8b094bbb465dd64a1083
 SHA512 
0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index b5daf21f66a..73a32f6d207 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-10-29 Thread Jonas Stein
commit: 94b167424dfb93a1b30e1a34b523bf8e20432970
Author: Jonas Stein  gentoo  org>
AuthorDate: Sun Oct 29 15:26:43 2017 +
Commit: Jonas Stein  gentoo  org>
CommitDate: Sun Oct 29 15:26:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b16742

sci-libs/scotch: Removed proxied maintainer

Removed proxied maintainer due to inactivity.
Closes: https://bugs.gentoo.org/633222
Package-Manager: Portage-2.3.13, Repoman-2.3.4

 sci-libs/scotch/metadata.xml | 8 
 1 file changed, 8 deletions(-)

diff --git a/sci-libs/scotch/metadata.xml b/sci-libs/scotch/metadata.xml
index 9b35c1ac8b7..48cba73d79f 100644
--- a/sci-libs/scotch/metadata.xml
+++ b/sci-libs/scotch/metadata.xml
@@ -5,18 +5,10 @@
   patr...@gentoo.org
   Patrick Lauer
 
-
-  oli.b...@web.de
-  Oliver Borm
-
 
   s...@gentoo.org
   Gentoo Science Project
 
-
-  proxy-ma...@gentoo.org
-  Proxy Maintainers
-
 
   Build the 64 bits integer library (needed for > 2^31 
vertices)
   Build and install extra exec tools



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-09-29 Thread Sergei Trofimovich
commit: 89951b393563d6dce2770cc5d9406461a8607c4a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Sep 30 02:56:38 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Sep 30 02:58:29 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89951b39

sci-libs/scotch: keyworded 6.0.4-r2 for ppc, bug #575366

Package-Manager: Portage-2.3.10, Repoman-2.3.3
RepoMan-Options: --include-arches="ppc"

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 949a33b5852..b5daf21f66a 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-07-08 Thread Alexis Ballier
commit: ac8419bea8f6ef7737fbad990c8670863554b873
Author: Alexis Ballier  gentoo  org>
AuthorDate: Sat Jul  8 09:24:39 2017 +
Commit: Alexis Ballier  gentoo  org>
CommitDate: Sat Jul  8 09:24:39 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8419be

sci-libs/scotch: keyword ~arm64

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 947ef861d04..949a33b5852 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-07-01 Thread Sergei Trofimovich
commit: 6c2af13d2e2b911afdb02c723c51461eaa8ff750
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Jul  1 09:38:28 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jul  1 09:38:28 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c2af13d

sci-libs/scotch: ia64 keyworded, bug #575366

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 34af6e9039f..947ef861d04 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-04-29 Thread Jeroen Roovers
commit: 593168237e69ca4684e47d81730477d28b513e21
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Sat Apr 29 16:16:42 2017 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Sat Apr 29 16:20:52 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59316823

sci-libs/scotch: Mark ~hppa (bug #575366).

Package-Manager: Portage-2.3.5, Repoman-2.3.2
RepoMan-Options: --ignore-arches

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 6b4eb6f6d99..34af6e9039f 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2017-04-05 Thread Michael Weber
commit: a90f0f88c035745f16c953d38a57d03d1396202b
Author: Michael Weber  gentoo  org>
AuthorDate: Wed Apr  5 15:34:45 2017 +
Commit: Michael Weber  gentoo  org>
CommitDate: Wed Apr  5 15:36:03 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90f0f88

sci-libs/scotch: add ~arm ~ppc64 keyword (bug 575366)

Package-Manager: Portage-2.3.5, Repoman-2.3.2
RepoMan-Options: --include-arches="amd64 arm arm64 ppc ppc64"

 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
index 7935c178c5b..6b4eb6f6d99 100644
--- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~alpha ~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/files/, sci-libs/scotch/

2017-01-02 Thread Justin Lecher
commit: ce059d82f9dde19a8a4a286f8b44061e4af32a11
Author: Nicholas Vinson  gmail  com>
AuthorDate: Mon Jan  2 18:33:49 2017 +
Commit: Justin Lecher  gentoo  org>
CommitDate: Mon Jan  2 20:00:47 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce059d82

sci-libs/scotch: Add flex-2.6.3 compatibility patch

Flex-2.6.3 changed and is different from the behavior shown in 2.6.1 and
older.  The behaviorial differences prevent scotch from building with
2.6.3.  This patch adds code to detect 2.6.3 or newer and apply fixes
that correctly reflect the new flex behavior.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3307

 .../scotch/files/scotch-6.0.4-flex-2.6.3-fix.patch |  33 
 sci-libs/scotch/scotch-6.0.4-r2.ebuild | 173 +
 2 files changed, 206 insertions(+)

diff --git a/sci-libs/scotch/files/scotch-6.0.4-flex-2.6.3-fix.patch 
b/sci-libs/scotch/files/scotch-6.0.4-flex-2.6.3-fix.patch
new file mode 100644
index ..c1301f5
--- /dev/null
+++ b/sci-libs/scotch/files/scotch-6.0.4-flex-2.6.3-fix.patch
@@ -0,0 +1,33 @@
+--- scotch_6.0.4/src/libscotch/parser_ll.l.old 2017-01-02 08:42:41.216249106 
-0800
 scotch-6.0.4-r1/work/scotch_6.0.4/src/libscotch/parser_ll.l
2017-01-02 09:50:14.572579444 -0800
+@@ -84,20 +84,29 @@
+ #endif /* X_OSDOS */
+ 
+ #ifdef FLEX_SCANNER
+ #define YY_ALWAYS_INTERACTIVE   1 /* Set the parser as 
interactive and read one char at a time */
+ #define YY_INPUT(buf,result,max_size) { int c = stratParserInput (); result = 
(c == 0) ? YY_NULL : ((buf)[0] = c, 1); }
++
++# if YY_FLEX_MAJOR_VERSION > 2 || 
  \
++YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION > 6 ||
  \
++YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 6 && 
YY_FLEX_SUBMINOR_VERSION >= 3
++ int yywrap() { return 1; }
++# else
++#  define yywrap()  (1)   /* Always return 
end-of-file on end-of-string  */
++# endif
++
+ #else /* FLEX_SCANNER */
+ #undef  getc  /* Redirect I/O functions */
+ #define getcyygetc
+ #undef  yygetc
+ #define yygetc(stream)  stratParserInput ()
++#define yywrap()(1)   /* Always return 
end-of-file on end-of-string  */
+ #endif /* FLEX_SCANNER */
+ 
+ #define YY_NO_UNPUT   /* No prototype for yyunput 
as not defined */
+ #define YY_SKIP_YYWRAP/* No prototype for yywrap 
as defined as macro */
+-#define yywrap()(1)   /* Always return 
end-of-file on end-of-string  */
+ 
+ /*
+ **  The static variables.
+ */
+ 

diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
new file mode 100644
index ..df015cf
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs versionator flag-o-matic multilib
+
+# use esmumps version to allow linking with mumps
+MYP="${PN}_${PV}_esmumps"
+# download id on gforge changes every goddamn release
+DID=34618
+SOVER=$(get_major_version)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
+SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~alpha ~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs tools threads"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/-/_}
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -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)
+   fi
+}
+
+src_prepare() {

[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2016-06-07 Thread Tobias Klausmann
commit: 1718da401722d2d3f7582570e2d2f53c5dde2f6c
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Tue Jun  7 16:45:54 2016 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Tue Jun  7 16:47:23 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1718da40

sci-libs/scotch-6.0.4-r1: add ~alpha keyword

Gentoo-Bug: 575366

Package-Manager: portage-2.3.0_rc1

 sci-libs/scotch/scotch-6.0.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/scotch/scotch-6.0.4-r1.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r1.ebuild
index 1a29d65..7b725b5 100644
--- a/sci-libs/scotch/scotch-6.0.4-r1.ebuild
+++ b/sci-libs/scotch/scotch-6.0.4-r1.ebuild
@@ -18,7 +18,7 @@ 
SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
 
 LICENSE="CeCILL-2"
 SLOT="0/${SOVER}"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc int64 mpi static-libs tools threads"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: sci-libs/scotch/

2016-04-20 Thread Christoph Junghans
commit: c5aa6f5f493971637247191191b30ea2336c9531
Author: Christoph Junghans  gentoo  org>
AuthorDate: Wed Apr 20 19:13:16 2016 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Wed Apr 20 19:13:35 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5aa6f5f

sci-libs/scotch: move metis headers to a subdir

Package-Manager: portage-2.2.26

 sci-libs/scotch/scotch-6.0.4-r1.ebuild | 172 +
 1 file changed, 172 insertions(+)

diff --git a/sci-libs/scotch/scotch-6.0.4-r1.ebuild 
b/sci-libs/scotch/scotch-6.0.4-r1.ebuild
new file mode 100644
index 000..1a29d65
--- /dev/null
+++ b/sci-libs/scotch/scotch-6.0.4-r1.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs versionator flag-o-matic multilib
+
+# use esmumps version to allow linking with mumps
+MYP="${PN}_${PV}_esmumps"
+# download id on gforge changes every goddamn release
+DID=34618
+SOVER=$(get_major_version)
+
+DESCRIPTION="Software for graph, mesh and hypergraph partitioning"
+HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/";
+SRC_URI="http://gforge.inria.fr/frs/download.php/${DID}/${MYP}.tar.gz";
+
+LICENSE="CeCILL-2"
+SLOT="0/${SOVER}"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc int64 mpi static-libs tools threads"
+
+DEPEND="
+   sys-libs/zlib
+   mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/-/_}
+
+static_to_shared() {
+   local libstatic=${1}; shift
+   local libname=$(basename ${libstatic%.a})
+   local soname=${libname}$(get_libname ${SOVER})
+   local libdir=$(dirname ${libstatic})
+
+   einfo "Making ${soname} from ${libstatic}"
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -dynamiclib -install_name 
"${EPREFIX}"/usr/lib/"${soname}" \
+   -Wl,-all_load -Wl,${libstatic} \
+   "$@" -o ${libdir}/${soname} || die "${soname} failed"
+   else
+   ${LINK:-$(tc-getCC)} ${LDFLAGS}  \
+   -shared -Wl,-soname=${soname} \
+   -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)
+   fi
+}
+
+src_prepare() {
+   epatch "${FILESDIR}"/${P}-as-needed.patch
+   use int64 && append-cflags -DIDXSIZE64
+   if use threads; then
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)"
+   else
+   append-cflags "-DSCOTCH_PTHREAD_NUMBER=1"
+   sed -i \
+   -e 's/ -DSCOTCH_PTHREAD//' \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 || die
+   fi
+   sed -e "s/gcc/$(tc-getCC)/" \
+   -e "s/-O3/${CFLAGS} -pthread/" \
+   -e "s/ ar/ $(tc-getAR)/" \
+   -e "s/ranlib/$(tc-getRANLIB)/" \
+   -e "s/LDFLAGS/LIBS/" \
+   src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || 
die
+}
+
+src_compile() {
+   emake -C src CLIBFLAGS=-fPIC scotch esmumps
+   static_to_shared lib/libscotcherr.a
+   static_to_shared lib/libscotcherrexit.a
+   static_to_shared lib/libscotch.a -Llib -lz -lm -lrt -lpthread 
-lscotcherr
+   static_to_shared lib/libesmumps.a -Llib -lscotch
+   static_to_shared lib/libscotchmetis.a -Llib -lscotch
+
+   if use mpi; then
+   emake -C src CLIBFLAGS=-fPIC ptscotch ptesmumps
+   export LINK=mpicc
+   static_to_shared lib/libptscotcherr.a
+   static_to_shared lib/libptscotcherrexit.a
+   static_to_shared lib/libptscotch.a -Llib -lscotch -lptscotcherr 
-lz -lm -lrt
+   static_to_shared lib/libptesmumps.a -Llib -lscotch -lptscotch
+   static_to_shared lib/libptscotchparmetis.a -Llib -lscotch 
-lptscotch
+   fi
+   if use static-libs; then
+   emake -C src clean
+   emake -C src
+   use mpi && emake -C src ptscotch
+   fi
+}
+
+src_test() {
+   LD_LIBRARY_PATH="${S}/lib" emake -C src check
+}
+
+src_install() {
+   dolib.so lib/lib*$(get_libname)*
+   use static-libs && dolib.a lib/*.a
+
+   #install metis headers into a subdir
+   #to allow usage of real metis and scotch
+   #in the same code
+   insinto /usr/include/scotch/metis
+   doins include/*metis*
+   rm include/*metis*
+   insinto /usr/include/scotch
+   doins include/*
+
+   cat <<-EOF > scotchmetis.pc
+   prefix=${EPREFIX}/usr
+   libdir=\${prefix}/$(get_li