diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /sci-libs/scotch | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'sci-libs/scotch')
-rw-r--r-- | sci-libs/scotch/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/scotch/files/scotch-6.0.0-as-needed.patch | 128 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.0.0.ebuild | 165 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.0.4-r1.ebuild | 171 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.0.4.ebuild | 165 |
5 files changed, 0 insertions, 634 deletions
diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest index d2e40b447170..2fc1c6b42165 100644 --- a/sci-libs/scotch/Manifest +++ b/sci-libs/scotch/Manifest @@ -1,13 +1,8 @@ AUX scotch-5.1.12b-as-needed.patch 4878 BLAKE2B 1fa95b1d7e03a8d2c3fe6840428b07974dcb2bffe30f17ace62e7998397a27f77b12c497d6bbf9c568b1b81bab785fc7588ac33567e82b9c5a84721bd7a1ac85 SHA512 9f5bf65999978d851b0c61de2235af982e6d1d057af5906d328f2a4b83775f8dd567f1386eecc186d6ec1287d8e84215a88b879ec77de4ac6de5b129ad263411 -AUX scotch-6.0.0-as-needed.patch 5874 BLAKE2B 8a960ff5658d0087600f62f3554e9288a4509502649d1e7e8a10b2dd920449f4f55c115e8f32e9d7b23d9a0b4753333ab291656d0eaafa9d62d74fb7b9ea2275 SHA512 efb458b53ceaa40c140e0920a3e31ab563f347a3bc21d727c338f4b971e4312ef680bb248e99dd609b5191f9e91460a1aa2149932d4277c5bc6406ef0206c24e AUX scotch-6.0.4-as-needed.patch 6168 BLAKE2B 5b008f9035379d91cd8ffde6d64a22b021fd5070a106592abefac78a0522282fbd0dd7f8b439b0452c0d15c57891c9d4eb4415120ea95788fe74e149e6069fc3 SHA512 cd58425866a1726f776318e3792e72d7250686f033ceeda57f0f007fdb4c5e1c2bc3c9346630e39f16023f2a3d70cd106b357c21e5406a1c44b49a316655d8dd AUX scotch-6.0.4-flex-2.6.3-fix.patch 1623 BLAKE2B 9d86299eb543147ce7e736779b05c3b8113c12b54fbaf46a2b99a6cef2b670fc1b448d059858f954f37acf72c7c268acf1793de89f193d02f8b61d3f5d4ca1e5 SHA512 1a2a5a363e1dd59e1cced76928da15132cd1c8af57d6d0ad0eec04e02d029c6ae275e202e8c87bc65ff0188f41e379865829b5b61e4f1e44a885d48c4462b09e 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 EBUILD scotch-5.1.12b.ebuild 4446 BLAKE2B 6c02eb7b272e22e2c62e95daf9a99745420a69233d0b95bc9479556ba08b6cdc36339272a0cd16eec51934125c3f50afa9873a5a03b21fbd63a87592889726bd SHA512 8020ca4ed7709607e1bc9f4cf21b96efd03ad413912304d70bde02606b1c2cba6abcb6e3a14ae0ff59c19ab82a40efb02567bafe1bce53d0e39d192f3aff1dbb -EBUILD scotch-6.0.0.ebuild 4628 BLAKE2B ebc43748190e1da73de26e45ef1d43c314eb6e267c36dc5eb803dd3d3654b568c3136fa557c4ec5c370b849e2d89983c09b55c9921550fc5e71016ad9076c818 SHA512 f7f348526f0ae65c3154e432cef738131b9b6d1cb8cba66bc3dfc25cbfe5138c0cd05b0f0a20fa2f572c7d92532ad3d5e90db574ff13b28c1980eb6b041ae1f3 -EBUILD scotch-6.0.4-r1.ebuild 4824 BLAKE2B c49f659384cfece6fe15ea4476cc5e5c1194f3bbc3ac205eab9eddb54a9480e972868c602b5a74d9c0e921910b4442e9055744760f4d0f6520dbd4703aa175b7 SHA512 71110eb916825346450636f7f78a84032dd1a51405654ad50c77e4b717f9bc71c55f6a3f3a7d874ae23fadddbd2c8e3e3a2b8706c895da7eacbac00da9e068ab EBUILD scotch-6.0.4-r2.ebuild 4910 BLAKE2B b71de7fd6f6471efe2dbd3037d78aaeb5e6dcda6b1e529014335eebf5714775a79dc4a342e1793042f5e82c2ad181546a2a8a74c067ecec86d1f65e0ea7126e3 SHA512 9909700133b6c8a5ef4094066b19c69fe85a07f413dd0e970f9016567aa161a1963f453cd11aa0e96c1f569b2681aa498cac6b5469a05cff3f614d8b4123412d -EBUILD scotch-6.0.4.ebuild 4628 BLAKE2B ea17389d6ee48c40ebb66064ed478886cc94b237e806d458f323f2d2a9c8333552256ae4bc25b492ef9b828c5f8c3cceba67fb4ef48b2a1d02497b51864869ef SHA512 0dd2f53982da1fc085f4cca6be9c0ca2c7b0c98548171ed3ad1bb2159389ebd55c6654d95372f47709c108aa7258c291f5f3e23e9e5054a5ebe0b16316fbe14e MISC metadata.xml 1199 BLAKE2B c5d721a43a47c20cf10d18bf0f9e1a2db04a2473bf772d6b64a8360a897ddfea8904b0bb65443fbf0738a4580d867477d9b58f8e720c8bd39933d461bd744b85 SHA512 78345510290afd5d47a88595c3d2b07cbdb6f99d1341c6433095750bd27bb0f81fbe5e98cb6ffd23b5c8c2e0a346d1a2f25b5bf2f83093dff471906fdadc4eee 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 ad41380de884..000000000000 --- 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/Makefile 2013-02-07 17:27:00.000000000 +0000 -+++ src/check/Makefile 2013-02-07 17:27:21.000000000 +0000 -@@ -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.000000000 +0000 -+++ src/esmumps/Makefile 2013-02-07 17:28:11.000000000 +0000 -@@ -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/Makefile 2013-02-07 17:27:00.000000000 +0000 -+++ src/libscotch/Makefile 2013-02-07 17:27:21.000000000 +0000 -@@ -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. -@@ -2908,14 +2908,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_PATCHLEVEL=$(PATCHLEVEL) $(<) $(LIBS) -o $(@) - - ptdummysizes$(EXE) : dummysizes.c \ - module.h \ - common.h \ - dgraph.h \ - dorder.h -- $(CCD) $(CFLAGS) -DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) $(LDFLAGS) -+ $(CCD) $(CFLAGS) $(LDFLAGS) -DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) $(LIBS) -o $(@) - - scotch.h : dummysizes$(EXE) \ - library.h -diff -Nur src.orig/libscotchmetis/Makefile src/libscotchmetis/Makefile ---- src.orig/libscotchmetis/Makefile 2013-02-07 17:27:00.000000000 +0000 -+++ src/libscotchmetis/Makefile 2013-02-07 17:27:21.000000000 +0000 -@@ -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) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -L$(libdir) -o $(@) - - ## - ## Project rules. -diff -Nur src.orig/scotch/Makefile src/scotch/Makefile ---- src.orig/scotch/Makefile 2013-02-07 17:27:00.000000000 +0000 -+++ src/scotch/Makefile 2013-02-07 17:27:21.000000000 +0000 -@@ -41,13 +41,13 @@ - include ../Makefile.inc - - %$(EXE) : %$(OBJ) -- $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit $(LDFLAGS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -L$(libdir) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit $(LIBS) -o $(@) - - %$(OBJ) : %.c - $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -c $(<) -o $(@) - - %$(EXE) : %.c -- $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit $(LDFLAGS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -L$(libdir) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit $(LIBS) -o $(@) - - ## - ## Project rules. -@@ -205,7 +205,7 @@ - $(libdir)/libptscotch$(LIB) \ - $(libdir)/libptscotcherrexit$(LIB) \ - dgmap.h -- $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -DSCOTCH_COMPILE_PART -o $(@) -L$(libdir) -lptscotch -lscotch -lptscotcherrexit $(LDFLAGS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -DSCOTCH_COMPILE_PART -L$(libdir) -lptscotch -lscotch -lptscotcherrexit $(LIBS) -o $(@) - - dgscat$(EXE) : dgscat.c \ - ../libscotch/module.h \ -@@ -315,7 +315,7 @@ - gout_o.c \ - $(includedir)/scotch.h \ - $(libdir)/libscotch$(LIB) -- $(CC) $(CFLAGS) -I../libscotch -I$(includedir) gout_c.c gout_o.c -o $(@) -L$(libdir) -lscotch -lscotcherrexit $(LDFLAGS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -I../libscotch -I$(includedir) gout_c.c gout_o.c -L$(libdir) -lscotch -lscotcherrexit $(LIBS) -o $(@) - - gpart$(EXE) : gmap.c \ - ../libscotch/module.h \ -@@ -324,7 +324,7 @@ - $(libdir)/libscotch$(LIB) \ - $(libdir)/libscotcherrexit$(LIB) \ - gmap.h -- $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -DSCOTCH_COMPILE_PART -o $(@) -L$(libdir) -lscotch -lscotcherrexit $(LDFLAGS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -DSCOTCH_COMPILE_PART -L$(libdir) -lscotch -lscotcherrexit $(LIBS) -o $(@) - - gscat$(EXE) : gscat.c \ - ../libscotch/module.h \ diff --git a/sci-libs/scotch/scotch-6.0.0.ebuild b/sci-libs/scotch/scotch-6.0.0.ebuild deleted file mode 100644 index c88bdc8a91c5..000000000000 --- a/sci-libs/scotch/scotch-6.0.0.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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=31832 -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}/${MYP/b}" - -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 - - 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 - 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 - 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 - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null - - pushd man/man1 > /dev/null - for m in *; do - newman ${m} scotch_${m} - done - popd > /dev/null - fi - - use doc && dodoc doc/*.pdf -} diff --git a/sci-libs/scotch/scotch-6.0.4-r1.ebuild b/sci-libs/scotch/scotch-6.0.4-r1.ebuild deleted file mode 100644 index 28112e3244c3..000000000000 --- a/sci-libs/scotch/scotch-6.0.4-r1.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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() { - 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_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 - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null - - pushd man/man1 > /dev/null - for m in *; do - newman ${m} scotch_${m} - done - popd > /dev/null - fi - - use doc && dodoc doc/*.pdf -} diff --git a/sci-libs/scotch/scotch-6.0.4.ebuild b/sci-libs/scotch/scotch-6.0.4.ebuild deleted file mode 100644 index 9ce7d7b3a14b..000000000000 --- a/sci-libs/scotch/scotch-6.0.4.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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 - - 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 - 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 - 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 - for b in *; do - newbin ${b} scotch_${b} - done - popd > /dev/null - - pushd man/man1 > /dev/null - for m in *; do - newman ${m} scotch_${m} - done - popd > /dev/null - fi - - use doc && dodoc doc/*.pdf -} |