diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-21 13:37:19 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-21 18:04:38 +0200 |
commit | 130f0fd2cabb2235e5c6f47e21e06fb73b348545 (patch) | |
tree | 96a053b412887c48f8e2f80085fb2d4fabefcea8 /sci-libs/scotch | |
parent | dev-cpp/eigen: EAPI-7 bump, switch to cmake.eclass (diff) | |
download | gentoo-130f0fd2cabb2235e5c6f47e21e06fb73b348545.tar.gz gentoo-130f0fd2cabb2235e5c6f47e21e06fb73b348545.tar.bz2 gentoo-130f0fd2cabb2235e5c6f47e21e06fb73b348545.zip |
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 <asturm@gentoo.org>
Diffstat (limited to 'sci-libs/scotch')
-rw-r--r-- | sci-libs/scotch/Manifest | 1 | ||||
-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, 630 deletions
diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest index bab767cdb75e..e91ef997078f 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 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 -} |