diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /sci-libs/scotch | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'sci-libs/scotch')
-rw-r--r-- | sci-libs/scotch/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.1.0-r1.ebuild | 173 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.1.0.ebuild | 173 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.1.1.ebuild | 174 |
4 files changed, 0 insertions, 525 deletions
diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest index b53987c8563b..bc387e631132 100644 --- a/sci-libs/scotch/Manifest +++ b/sci-libs/scotch/Manifest @@ -1,10 +1,5 @@ -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 -EBUILD scotch-6.1.0-r1.ebuild 4948 BLAKE2B 4856a6123e7663f65de9cef8855875b45faa1dcd208e6a9833d4a255ca7cda7a82222e64a21ca3cfa9a1c9955af69e83ef13241c103ae81593fefb72be3b3187 SHA512 a469054850e7bc409d1f5e69f98d3d52337b4108f88aa0ed9fc9136c407e950be912b9c16aec452c010eee8ad77c3db3ce36035c83c0e143e9dacf79f006513c -EBUILD scotch-6.1.0.ebuild 4942 BLAKE2B abbe129155d654ca4bf9ea5be27a703f44beb31bf2626042f763120ecdf70aad3a145e2dee2068b34038d92d634d29fe189353176eed242f37487aa62cf2f874 SHA512 4364a04ccfd41d423d439072a45be468ce844b916fd2f302e0e4dc7585217ff39ed0e52406fb96016e5b457606175b64c118f9d525629ed506bf11c700548d9e -EBUILD scotch-6.1.1.ebuild 4957 BLAKE2B 66fe678726e0d48fa2e0d4eaa2147accd72088629b9ff7a250e7d2893a513e201032e3092a84b12b4150f6ef5005f5f6602fcd69bd57ef14e4bf56791c2db7b8 SHA512 c02acd26fa18fba7d8b04a4bb38e0b51b920abbc629c71033e2e1edfd65ad95a893c5309d96d90b660a58afa311aed898e7001a9767374452ec7d497299a2a5b EBUILD scotch-6.1.2.ebuild 4951 BLAKE2B 3d3e5e04719603bb8af5794a7f9b3cf650f142df1a8a30904e2d5791a32e99af5fe75f630aec51bbee425f8b49b0ce7b987c7f25439e5268c906a3eece0ab9bf SHA512 c3371fd91658a459675e945f0a5287967ead597af4d4f83243b1dba01ad84d754558f170cb480cefa65d0a03ddfc541346c2400846408ae486dc19e4f5d0185a EBUILD scotch-7.0.1-r1.ebuild 4955 BLAKE2B c0a41b850ecef6cf64045baabf46a5faa12b96f8d6f291115f5c927327ca1cd6ddb70b61d43baf56f6bb05a109c039596c8d24a0bdab0e6d84e19566927aad36 SHA512 f730bbf00a5b19f5b6760460b38fc7b3f10f383022c1b838c072338023489e3041d90cb298c87cfb99a6ca8130bc6f600b9ddab1b3187a504425dd458d5686d9 MISC metadata.xml 1169 BLAKE2B 33a4a76609e0b19a5b6f90556abc534dd36dc8b0c3baa1111197aaa0d8ff0bb29302ac52f67deb6b3f625eaad59fe18a25fb966086c67c53778202fc10d3e06c SHA512 282c23c6725a838a36b1f9a28ae3c96d2854cb988ba2563440d07f45adeb0c6dca642aa41d8ca88165a5d9e5ebeebf350e61b6466bdb785aa5669e7310d4374b 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..000000000000 --- 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/= 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 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_libdir) - includedir=\${prefix}/include - Name: scotchmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lscotchmetis -lscotcherr -lscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins scotchmetis.pc - - # not sure it is actually a full replacement of metis - #alternatives_for metis scotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis.pc scotchmetis.pc - - if use mpi; then - cat <<-EOF > ptscotchparmetis.pc - prefix=${EPREFIX}/usr - libdir=\${prefix}/$(get_libdir) - includedir=\${prefix}/include - Name: ptscotchparmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lptscotchparmetis -lptscotcherr -lptscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - Requires: scotchmetis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ptscotchparmetis.pc - # not sure it is actually a full replacement of parmetis - #alternatives_for metis-mpi ptscotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis-mpi.pc ptscotchparmetis.pc - fi - - dodoc README.txt - - if use tools; then - local b m - pushd bin > /dev/null || die - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null || die - - pushd man/man1 > /dev/null || die - for m in *.1; do - newman ${m} scotch_${m} - done - popd > /dev/null || die - fi - - use doc && dodoc doc/*.pdf -} diff --git a/sci-libs/scotch/scotch-6.1.0.ebuild b/sci-libs/scotch/scotch-6.1.0.ebuild deleted file mode 100644 index 60cc08c6645a..000000000000 --- a/sci-libs/scotch/scotch-6.1.0.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 -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 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_libdir) - includedir=\${prefix}/include - Name: scotchmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lscotchmetis -lscotcherr -lscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins scotchmetis.pc - - # not sure it is actually a full replacement of metis - #alternatives_for metis scotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis.pc scotchmetis.pc - - if use mpi; then - cat <<-EOF > ptscotchparmetis.pc - prefix=${EPREFIX}/usr - libdir=\${prefix}/$(get_libdir) - includedir=\${prefix}/include - Name: ptscotchparmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lptscotchparmetis -lptscotcherr -lptscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - Requires: scotchmetis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ptscotchparmetis.pc - # not sure it is actually a full replacement of parmetis - #alternatives_for metis-mpi ptscotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis-mpi.pc ptscotchparmetis.pc - fi - - dodoc README.txt - - if use tools; then - local b m - pushd bin > /dev/null || die - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null || die - - pushd man/man1 > /dev/null || die - for m in *.1; do - newman ${m} scotch_${m} - done - popd > /dev/null || die - fi - - use doc && dodoc doc/*.pdf -} diff --git a/sci-libs/scotch/scotch-6.1.1.ebuild b/sci-libs/scotch/scotch-6.1.1.ebuild deleted file mode 100644 index 7075116f20e0..000000000000 --- a/sci-libs/scotch/scotch-6.1.1.ebuild +++ /dev/null @@ -1,174 +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 -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 ptscotch - fi -} - -src_test() { - tc-export FC - 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_libdir) - includedir=\${prefix}/include - Name: scotchmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lscotchmetis -lscotcherr -lscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins scotchmetis.pc - - # not sure it is actually a full replacement of metis - #alternatives_for metis scotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis.pc scotchmetis.pc - - if use mpi; then - cat <<-EOF > ptscotchparmetis.pc - prefix=${EPREFIX}/usr - libdir=\${prefix}/$(get_libdir) - includedir=\${prefix}/include - Name: ptscotchparmetis - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -lptscotchparmetis -lptscotcherr -lptscotch - Private: -lm -lz -lrt - Cflags: -I\${includedir}/scotch/metis - Requires: scotchmetis - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ptscotchparmetis.pc - # not sure it is actually a full replacement of parmetis - #alternatives_for metis-mpi ptscotch 0 \ - # /usr/$(get_libdir)/pkgconfig/metis-mpi.pc ptscotchparmetis.pc - fi - - dodoc README.txt - - if use tools; then - local b m - pushd bin > /dev/null || die - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null || die - - pushd man/man1 > /dev/null || die - for m in *.1; do - newman ${m} scotch_${m} - done - popd > /dev/null || die - fi - - use doc && dodoc doc/*.pdf -} |