diff options
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/scotch/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/scotch/Manifest | 11 | ||||
-rw-r--r-- | sci-libs/scotch/files/scotch-6.0.0-as-needed.patch | 129 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-6.0.0.ebuild | 162 |
4 files changed, 306 insertions, 6 deletions
diff --git a/sci-libs/scotch/ChangeLog b/sci-libs/scotch/ChangeLog index 4e9c98ba837e..58a9cfe823d9 100644 --- a/sci-libs/scotch/ChangeLog +++ b/sci-libs/scotch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/scotch -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/ChangeLog,v 1.9 2012/08/03 15:22:53 bicatali Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/ChangeLog,v 1.10 2013/02/07 07:29:28 bicatali Exp $ + +*scotch-6.0.0 (07 Feb 2013) + + 07 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> + +files/scotch-6.0.0-as-needed.patch, +scotch-6.0.0.ebuild: + Version bump 03 Aug 2012; Sébastien Fabbro <bicatali@gentoo.org> -files/Makefile.inc.in, -files/Makefile.inc_5.1.7, -files/metis-header.patch, diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest index 2d0b372fd7a7..72753361d5fe 100644 --- a/sci-libs/scotch/Manifest +++ b/sci-libs/scotch/Manifest @@ -2,14 +2,17 @@ Hash: SHA256 AUX scotch-5.1.12b-as-needed.patch 4878 SHA256 e9084641e7cea9fdf21293a4ae7dcf65b73837e3ba59881d32dafa08bde88a8a SHA512 9f5bf65999978d851b0c61de2235af982e6d1d057af5906d328f2a4b83775f8dd567f1386eecc186d6ec1287d8e84215a88b879ec77de4ac6de5b129ad263411 WHIRLPOOL 122321a4d85a936aceb96a6a2c522c7ee3493e5b1ec76f30d2815388464f3f7681928c71d11595c983a3825b44bba7e8c54b95af94539041bb1cd7b4c3107c7e +AUX scotch-6.0.0-as-needed.patch 5875 SHA256 186186c1f2d23940679438d9cbfcd20800c418c61ea9f50096cc25593cedaf24 SHA512 1287dac37a553d056cc12c3358516fbb4d8b64cae4ebacee0e9da8e25ef819a8065d1fc6820710b0537020213ee6775a469c91ab46e9efbca7f84c808a84e82b WHIRLPOOL f9d0f12adc6ce1a25ba90fb4903426673c72755e84a89251e9c719bdbbf97756771a742925edaa3c25d721a9fee79b8e42bd87a5561fe4835ad05e69bb68135a 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 EBUILD scotch-5.1.12b.ebuild 4560 SHA256 23f394979de4efd158440bdfa9d848233dc7ed35701b9277f8110d55fcc8fb0b SHA512 34f35de629bd963f521ad478cec5ce376fce445dfed091e6f61f45ffa7e41f71ff097071d2e908e9e8b75fbfb88d58a6ce696b8ebe2da8493a63b27a7288fc3a WHIRLPOOL 57287383f9127052c97b7661bba2713ef41228807175ce3f6e65c5c62daea886356b1c86aae2f0bdaa389b912ecf03db102f75a902caa437725319656e431ab4 -MISC ChangeLog 2325 SHA256 f6b3fa6cb4aa40500a244df9b49ff0fe15650e9e888dfc0a2e88c5f2a62bdc39 SHA512 06dc788d0246464a632cd3b4f5975d0b50ae230bac5dedb6735f0b31b98d5bf32471439c8c231a9ad8645a170d4ce7146cf37dda1f760e4843b84ddcdfcf9342 WHIRLPOOL a398f5aca2f42408b8fc612203c1429019124d7b68e8e6abd79ca12240dc21d60fee5c9416e135762c59798e5dfce44fbaa0685bf9975edc4e19f2b9caf311bc +EBUILD scotch-6.0.0.ebuild 4601 SHA256 e451e5571872933e5a4a495fbd3e8da1865dc78dffc562b383c1d86d234fde28 SHA512 571a2499e015d2da9c784c633207ae9531294b6f4a882935cce5c2d22832a790d55d128cc98be705b028a5acc7958e0fe20f69f7c5afe05e317d9ead75a9749f WHIRLPOOL 7e70d8436971cb4e219455a44b82626fff053d078b6c1612435837485a6cc70f9b3e092789183a562aae92fbe3a458a0c9aefcd05ce6543d5f62aeb255f6566b +MISC ChangeLog 2487 SHA256 1428b4a1db4e5f9ffd91b442b7230b252c9aa85edec8bde288107aaeab9b01bf SHA512 f705fa132d1f6895cafb25860528e72b29d47190fb661d6312f263fbeab9266b35005ae6f8cb4cac86de5e2f86155a94fa206179ec09be01ed76b18ccce6a1f0 WHIRLPOOL a928bcc3f9ed81820eeb644d8a4fe5b80c03651b565e6e3c0ceb2c63f9f0ed92066b44713cf87641bb90d1e714e8e4602c7a8ceef95af802866c4d630b2d4ed7 MISC metadata.xml 1177 SHA256 1c92f4cd3edf318f9506f253a33a5e8d5360d49c855b5912cab51842174376a2 SHA512 84e447292ab8be3842c2e3bb7d9339b564fbbbbc413928340578600ed4e3de2c96ca67e98111d7cd99b37c428848a807f6728e95fe40afe511df234254212ef3 WHIRLPOOL fb639097b0bca36205aec180a50b6884026172e1915bc1f71d963cb28e62790a9bcb74db784d960bb9ca0bcd9fe3da5df8a889817f11894f7b1b0abec3fd1f00 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlAb7OEACgkQ1ycZbhPLE2AfMgCffCppTV8CI/DXYp9mlmLmOz/G -w18An0qtAGW1kgk9rwk1TXd/DTt8TmyJ -=VSsn +iEYEAREIAAYFAlETV9wACgkQ1ycZbhPLE2Dv+wCcDO7vw2yTe6E6h1gj0OumKY33 +MqMAn3oTHy+3LF//jyI9eSGhftM3U4S1 +=MRt7 -----END PGP SIGNATURE----- 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 new file mode 100644 index 000000000000..8246cd4c81df --- /dev/null +++ b/sci-libs/scotch/files/scotch-6.0.0-as-needed.patch @@ -0,0 +1,129 @@ +diff -Nur src.orig/check/Makefile src/check/Makefile +--- src.orig/check/Makefile 2013-02-06 22:03:30.487658815 -0800 ++++ src/check/Makefile 2013-02-06 23:02:59.724078652 -0800 +@@ -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-06 22:03:30.486658809 -0800 ++++ src/esmumps/Makefile 2013-02-06 23:03:17.826171776 -0800 +@@ -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) +@@ -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/Makefile 2013-02-06 22:03:30.494658850 -0800 ++++ src/libscotch/Makefile 2013-02-06 23:03:59.702387230 -0800 +@@ -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-06 22:03:30.477658764 -0800 ++++ src/libscotchmetis/Makefile 2013-02-06 22:19:34.684626271 -0800 +@@ -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-06 22:03:30.500658881 -0800 ++++ src/scotch/Makefile 2013-02-06 23:04:46.244626691 -0800 +@@ -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 new file mode 100644 index 000000000000..1ee18c786a5a --- /dev/null +++ b/sci-libs/scotch/scotch-6.0.0.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/scotch-6.0.0.ebuild,v 1.1 2013/02/07 07:29:28 bicatali Exp $ + +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 + +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" +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 $(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 + use int64 && append-cflags -DIDXSIZE64 + if use threads; then + append-cflags "-DSCOTCH_PTHREAD_NUMBER=$(nproc)" + else + append-cflags "-DSCOTCH_PTHREAD_NUMBER=1" + 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 -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 -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 + 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 +} |