diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-03-05 00:27:49 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-03-05 00:27:49 +0000 |
commit | fde7e5d0652e8b73a0e819a92635fa89fef8e182 (patch) | |
tree | e8e976148eaff0f580d3dd3acbc71c05140f301e | |
parent | Fix headers placement. Per bug #357359. (diff) | |
download | historical-fde7e5d0652e8b73a0e819a92635fa89fef8e182.tar.gz historical-fde7e5d0652e8b73a0e819a92635fa89fef8e182.tar.bz2 historical-fde7e5d0652e8b73a0e819a92635fa89fef8e182.zip |
Version bump. Rewrote from scratch. Closing bug #324561 and bug #335468.
Package-Manager: portage-2.1.9.42/cvs/Linux x86_64
-rw-r--r-- | sci-libs/scotch/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/scotch/Manifest | 22 | ||||
-rw-r--r-- | sci-libs/scotch/files/Makefile.inc | 19 | ||||
-rw-r--r-- | sci-libs/scotch/files/Makefile.inc.in | 19 | ||||
-rw-r--r-- | sci-libs/scotch/files/mmkt-typo.patch | 11 | ||||
-rw-r--r-- | sci-libs/scotch/files/respect-ldflags.patch | 86 | ||||
-rw-r--r-- | sci-libs/scotch/metadata.xml | 23 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-5.1.11.ebuild | 99 | ||||
-rw-r--r-- | sci-libs/scotch/scotch-5.1.6.ebuild | 66 |
9 files changed, 247 insertions, 109 deletions
diff --git a/sci-libs/scotch/ChangeLog b/sci-libs/scotch/ChangeLog index 1350a8daa082..8b19f386b1d8 100644 --- a/sci-libs/scotch/ChangeLog +++ b/sci-libs/scotch/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/scotch -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/ChangeLog,v 1.2 2010/01/15 22:43:52 patrick Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/ChangeLog,v 1.3 2011/03/05 00:27:49 bicatali Exp $ + +*scotch-5.1.11 (05 Mar 2011) + + 05 Mar 2011; SĂ©bastien Fabbro <bicatali@gentoo.org> -scotch-5.1.6.ebuild, + +scotch-5.1.11.ebuild, +files/Makefile.inc.in, +files/respect-ldflags.patch, + -files/Makefile.inc, -files/mmkt-typo.patch, metadata.xml: + Version bump. Rewrote from scratch. Closing bug #324561 and bug #335468. *scotch-5.1.7 (15 Jan 2010) diff --git a/sci-libs/scotch/Manifest b/sci-libs/scotch/Manifest index c83cdd8ba6f2..3b09be019cd7 100644 --- a/sci-libs/scotch/Manifest +++ b/sci-libs/scotch/Manifest @@ -1,12 +1,22 @@ -AUX Makefile.inc 334 RMD160 5830a8b6ac25318a3de9ed626df24bc1e19f71e1 SHA1 9897bc6257429ca37361998ffe05f6f29336ff2c SHA256 d442ce39a336e5544ff97189a391fdbe46426de030633f01033c602c174d5824 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX Makefile.inc.in 360 RMD160 33d7e5f4ff9f6b94e5613ae18074f022e680a0e7 SHA1 b18dc815dbe24ba8494f3f0f1a720598e0ea5aa9 SHA256 53679f5ea52c6809e2d26ef0199e93cf7a5caf69b97b192cc49c04a31733bf01 AUX Makefile.inc_5.1.7 358 RMD160 5c57b2912e1a999f340edc7baf3a8a093fe05cba SHA1 b0eb5cb80f53b3c78a533e4610df4ec952a94a6d SHA256 395539dc772f6cbd05d43f9b591be917657ccfdd9cea44b14403f6b54b4f3690 AUX metis-header.patch 381 RMD160 f364262003c72bd6f6614f0d2dae8f3be4495f2f SHA1 52ade3b7948c933f713602d39ddca88e6bb9eebe SHA256 271fe884e6a8eb423f89dbbb1fc9a73f742526d76233b1f81ab9b8d0b7d27091 -AUX mmkt-typo.patch 569 RMD160 0359f562cf127abbdda857a4db9c04ed4c9e916c SHA1 cfc7e00b0c62f7e96cf7e3eb6df27e17f347945f SHA256 f00596e95e511095a1c869d3f33c10310d84b8f12f0af7af7e699480edce4448 +AUX respect-ldflags.patch 3867 RMD160 87a069731aa5a6a15ba892d1333419c0cc6fbcc5 SHA1 add77e8e11604adb2461112117c858b429d0d1e3 SHA256 b277e980cc6e671604dae0e5a4cba28255a786b4294f800ec20ca88d10d8aa49 AUX shared-libs.patch 1803 RMD160 206c811dffbb0a46cbaba3e46884dc47746d7c0c SHA1 95c9b0349f6d7cc301c80588373d6a148f9f8fdc SHA256 faf1c70f37d1e2e258c3f8b1da9399ad19280b26c2f963d26e57b62c72f4521c AUX shared-libs_5.1.7.patch 1837 RMD160 923eaa8207875961ed9ca12886dfbaf72845dfa2 SHA1 f2312a488b9bb8e3a0f65c7f73b54229f8d81573 SHA256 21faebd6ddd3248dee0af3e184bf5343d9ce398cf412d0079e500dd5dec6205e -DIST scotch_5.1.6.tgz 3480891 RMD160 d4fad76ae6c420b9524243d79c8361007a310fbd SHA1 940e4aabfa5fed8288c291fe9328d8b63cc10b0b SHA256 ee714ee7d6c3353ff4dab587d6a976bd4a4d09a25da0eb83430633d8c6c8c8ff +DIST scotch_5.1.11_esmumps.tgz 3952439 RMD160 f8db2bb02cbdadb7e02782daccddcdc4cdec4cac SHA1 b62501e0bf7fd24af3712647578b3e764f166287 SHA256 595ccc664ba070264b851a27b7860042a6bc716d6aade93e0909619decfabc92 DIST scotch_5.1.7.tgz 3733642 RMD160 3424d4386dc257cabae46a2a55081162a8e41e4a SHA1 45be932de03d9a404d83b577346d2e63d856d7c7 SHA256 51ac6046eec0229ac257969a44926b87e0f4eec0a4ca1ad7f3e287be40070a2d -EBUILD scotch-5.1.6.ebuild 1570 RMD160 850075017f74000bf3e90014df1b344521d977c9 SHA1 2cfa35318ef6545e7ec92f0be6d1b37d1141dd24 SHA256 d4a7947e0c1113bd0dac883c545258703d1bfce7303c612429727b2c199185c4 +EBUILD scotch-5.1.11.ebuild 2355 RMD160 ebfbc7e5fe1f3f96c68091dadd3673bf35e4bd04 SHA1 a884d081c5192252a73059ca89dc936a77f609c1 SHA256 1dcd6462d0915b4d696c1951f6356025b32b6a317812581f888d63d235291353 EBUILD scotch-5.1.7.ebuild 1790 RMD160 e323b1685ff537c833fd5811a82e728e0a5b23ee SHA1 41731ff01c3744a56c41b9df57860dd82dc9d0c8 SHA256 58698f935a664ff893e124fb9930e43774175b8995421af6b9631b021b6bcf3f -MISC ChangeLog 751 RMD160 c726094578f56f3ff63bd2a4be53a4e84b5ff725 SHA1 a60f47f2290656fdf500d9638968d3cc6cdbf4b4 SHA256 bcce83700864da6245a3735e6ed27d20286018d0f92ba29867e2de07689b2a28 -MISC metadata.xml 342 RMD160 bba0c7eb3af0d1cd2322a40e86f4a80a0f48b6cf SHA1 7950d74b3d7d4fbe7167b487c5cd26559548b4ab SHA256 b57f05d81648f5a92cedd91c025852cb3bc5fc8d4ab4d110eb6886fc89e2ba97 +MISC ChangeLog 1075 RMD160 eb0eb716a21b6666384f2931e095e5e0544133d7 SHA1 4058228015dbc98e53dcf5afc5bcd5a3e85ddb60 SHA256 7cf437fe959ab7d8f71c37f9c18c4c0a4ef9bfb5dc7db0eb068bae465b1a40b4 +MISC metadata.xml 1007 RMD160 1ef66d65ea2ff3022b287a12a26e1b08360390ff SHA1 5e624702b7ead9d165c0c698c77d76306439020c SHA256 fd9d3ef83d702452fa572e5ff3217f42819579e3510dbad5fac4081b07cb5d16 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk1xg5oACgkQ1ycZbhPLE2DtHQCghgPbrdlIHCtnDthVHmGxJXNq +6coAmgLuPEyfEtkKJ6Tj90Ikv/VjhXJN +=K+mM +-----END PGP SIGNATURE----- diff --git a/sci-libs/scotch/files/Makefile.inc b/sci-libs/scotch/files/Makefile.inc deleted file mode 100644 index 7285c467983b..000000000000 --- a/sci-libs/scotch/files/Makefile.inc +++ /dev/null @@ -1,19 +0,0 @@ -EXE = -LIB = .a -OBJ = .o - -MAKE = make -AR = ar -ARFLAGS = -ruv -CAT = cat -CC = gcc -CCP = mpicc -CFLAGS = -g -O3 -I. -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -LDFLAGS = -lz -lm -lrt -CP = cp -LEX = flex -LN = ln -MKDIR = mkdir -MV = mv -RANLIB = ranlib -YACC = bison -y diff --git a/sci-libs/scotch/files/Makefile.inc.in b/sci-libs/scotch/files/Makefile.inc.in new file mode 100644 index 000000000000..85e3b6be6785 --- /dev/null +++ b/sci-libs/scotch/files/Makefile.inc.in @@ -0,0 +1,19 @@ +EXE = +LIB = .a +OBJ = .o + +AR = @AR@ +ARFLAGS = -ruv +CAT = cat +CCS = @CC@ +CCP = mpicc +CCD = @CC@ +CFLAGS = @CFLAGS@ $(PICFLAGS) -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME +LIBS = -lz -lm -lrt +CP = cp +LEX = flex +LN = ln +MKDIR = mkdir +MV = mv +RANLIB = @RANLIB@ +YACC = bison -y diff --git a/sci-libs/scotch/files/mmkt-typo.patch b/sci-libs/scotch/files/mmkt-typo.patch deleted file mode 100644 index a3371739cbc0..000000000000 --- a/sci-libs/scotch/files/mmkt-typo.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- scotch-5.1.6.dfsg.orig/src/libscotch/library_graph_io_mmkt_f.c 2008-03-14 18:15:59.000000000 +0000 -+++ scotch-5.1.6.dfsg/src/libscotch/library_graph_io_mmkt_f.c 2008-07-21 15:12:48.000000000 +0000 -@@ -121,7 +121,7 @@ - */ - - FORTRAN ( \ --SCOTCHFGRAPHGEOMSAVEMMKT, scotchfgraphgeomsavechac, ( \ -+SCOTCHFGRAPHGEOMSAVEMMKT, scotchfgraphgeomsavemmkt, ( \ - const SCOTCH_Graph * const grafptr, \ - const SCOTCH_Geom * const geomptr, \ - const int * const filegrfptr, \ diff --git a/sci-libs/scotch/files/respect-ldflags.patch b/sci-libs/scotch/files/respect-ldflags.patch new file mode 100644 index 000000000000..74860051c6ee --- /dev/null +++ b/sci-libs/scotch/files/respect-ldflags.patch @@ -0,0 +1,86 @@ +diff -Nur src.orig/esmumps/Makefile src/esmumps/Makefile +--- src.orig/esmumps/Makefile 2011-03-04 21:33:24.000000000 +0000 ++++ src/esmumps/Makefile 2011-03-04 23:38:01.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) -l$(SCOTCHLIB)errexit ++ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) $(<) -L$(libdir) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LIBS) -o $(@) + + ## + ## Project rules. +@@ -57,9 +57,10 @@ + libesmumps$(LIB) \ + main_esmumps$(EXE) + +-ptscotch : clean ++ptscotch : clean common.h ++ $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC=$(CCP) SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps \ ++ libesmumps$(LIB); + $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" CC=$(CCP) SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps \ +- libesmumps$(LIB) \ + main_esmumps$(EXE) + + install : +diff -Nur src.orig/libscotch/Makefile src/libscotch/Makefile +--- src.orig/libscotch/Makefile 2011-03-04 21:33:24.000000000 +0000 ++++ src/libscotch/Makefile 2011-03-04 21:55:27.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. +@@ -2515,7 +2515,7 @@ + mapping.h \ + order.h \ + parser.h +- $(CCD) $(CFLAGS) -DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) $(LDFLAGS) ++ $(CCD) $(CFLAGS) $(LDLFAGS) -DSCOTCH_VERSION=$(VERSION) -DSCOTCH_RELEASE=$(RELEASE) -DSCOTCH_PATCHLEVEL=$(PATCHLEVEL) $(<) -o $(@) $(LIBS) + + scotch.h : dummysizes$(EXE) \ + library.h +diff -Nur src.orig/libscotchmetis/Makefile src/libscotchmetis/Makefile +--- src.orig/libscotchmetis/Makefile 2011-03-04 21:33:24.000000000 +0000 ++++ src/libscotchmetis/Makefile 2011-03-04 21:56:06.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) $(LIBS) -o $(@) + + ## + ## Project rules. +diff -Nur src.orig/scotch/Makefile src/scotch/Makefile +--- src.orig/scotch/Makefile 2011-03-04 21:33:24.000000000 +0000 ++++ src/scotch/Makefile 2011-03-04 21:58:59.000000000 +0000 +@@ -41,13 +41,13 @@ + include ../Makefile.inc + + %$(EXE) : %$(OBJ) +- $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -L$(libdir) -l$(SCOTCHLIB) -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) -l$(SCOTCHLIB)errexit $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -I$(includedir) -I../libscotch $(<) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LIBS) -o $(@) + + ## + ## Project rules. +@@ -314,7 +314,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$(EXE) + -$(RM) gpart$(EXE) diff --git a/sci-libs/scotch/metadata.xml b/sci-libs/scotch/metadata.xml index 199db2e8871c..62e57c71e0d2 100644 --- a/sci-libs/scotch/metadata.xml +++ b/sci-libs/scotch/metadata.xml @@ -1,13 +1,26 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> +<herd>sci</herd> +<maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> +</maintainer> <maintainer> <email>oli.borm@web.de</email> <name>Oliver Borm</name> </maintainer> +<longdescription lang='en'> + SCOTCH is a software package and libraries for graph, mesh and + hypergraph partitioning, static mapping, and sparse matrix block + ordering. + Its purpose of Scotch is to apply graph theory, with a divide and + conquer approach, to scientific computing problems such as graph and + mesh partitioning, static mapping, and sparse matrix ordering, in + application domains ranging from structural mechanics to operating + systems or bio-chemistry. + The SCOTCH distribution is a set of programs and libraries which + implement the static mapping and sparse matrix reordering algorithms + developed within the SCOTCH project. +</longdescription> </pkgmetadata> diff --git a/sci-libs/scotch/scotch-5.1.11.ebuild b/sci-libs/scotch/scotch-5.1.11.ebuild new file mode 100644 index 000000000000..5f0833474188 --- /dev/null +++ b/sci-libs/scotch/scotch-5.1.11.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/scotch-5.1.11.ebuild,v 1.1 2011/03/05 00:27:49 bicatali Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs versionator + +# use esmumps version to allow linking with mumps +MYP="${PN}_${PV}_esmumps" +# download id on gforge changes every goddamn release +DID=28044 + +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}.tgz" + +LICENSE="CeCILL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples mpi static-libs" + +DEPEND="sys-devel/bison + sys-libs/zlib + mpi? ( virtual/mpi )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MYP}/src" + +make_shared_lib() { + local soname=$(basename "${1%.a}").so.$(get_major_version) + einfo "Making ${soname}" + ${2:-$(tc-getCC)} ${LDFLAGS} \ + -shared -Wl,-soname="${soname}" \ + -Wl,--whole-archive "${1}" -Wl,--no-whole-archive \ + -o $(dirname "${1}")/"${soname}" || return 1 +} + +src_prepare() { + epatch "${FILESDIR}"/metis-header.patch + epatch "${FILESDIR}"/respect-ldflags.patch + sed -e "s/@CFLAGS@/${CFLAGS}/" \ + -e "s/@CC@/$(tc-getCC)/" \ + -e "s/@AR@/$(tc-getAR)/" \ + -e "s/@RANLIB@/$(tc-getRANLIB)/" \ + "${FILESDIR}"/Makefile.inc.in > Makefile.inc || die +} + +src_compile() { + emake PICFLAGS=-fPIC + local lib + for lib in $(find . -name lib\*.a); do + make_shared_lib ${lib} || die "shared ${lib} failed" + done + if use mpi; then + emake PICFLAGS=-fPIC ptscotch + for lib in $(find . -name libpt\*.a); do + make_shared_lib ${lib} mpicc || die "shared ${lib} failed" + done + fi + if use static-libs; then + emake clean + emake + use mpi && emake ptscotch + fi +} + +src_install() { + cd .. + local l b m + for l in $(find . -name \*.so.\*); do + dolib.so ${l} + dosym $(basename ${l}) /usr/$(get_libdir)/$(basename ${l%.*}) + done + use static-libs && dolib.a $(find . -name \*.a) + + pushd bin > /dev/null + for b in *; do + newbin ${b} scotch_${b} + done + popd + + pushd man/man1 > /dev/null + for m in *; do + newman ${m} scotch_${m} + done + popd > /dev/null + + insinto /usr/include/scotch + doins include/* + + dodoc README.txt + + use doc && dodoc doc/*.pdf + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* tgt grf + fi +} diff --git a/sci-libs/scotch/scotch-5.1.6.ebuild b/sci-libs/scotch/scotch-5.1.6.ebuild deleted file mode 100644 index 427ef0725564..000000000000 --- a/sci-libs/scotch/scotch-5.1.6.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/scotch-5.1.6.ebuild,v 1.1 2009/09/03 16:58:50 patrick Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="Software package and libraries for graph partitioning, static mapping, and sparse matrix block ordering" -HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/" -SRC_URI="http://gforge.inria.fr/frs/download.php/5218/${PN}_${PV}.tgz" - -LICENSE="CeCILL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="mpi" - -DEPEND="sys-devel/bison - mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}"/scotch_5.0/src" - -src_prepare() { - epatch "${FILESDIR}"/mmkt-typo.patch - epatch "${FILESDIR}"/shared-libs.patch - epatch "${FILESDIR}"/metis-header.patch -} - -src_configure() { - cp "${FILESDIR}"/Makefile.inc ./ -} - -src_compile() { - emake -j1 || die "make failed" - use mpi && (emake -j1 ptscotch || die "make failed") -} - -src_install() { - dodir "/usr" - emake prefix="${D}/usr" install - - use mpi && dobin "${S}"/../bin/{dgord,dgscat,dgtst} - - dolib.so "${S}"/{libscotch,libscotchmetis}/*.so - if [ "$(get_libdir)" != "lib" ]; then - mv "${D}"/usr/lib/* "${D}"/usr/$(get_libdir) - rm -rf "${D}"/usr/lib - fi - - insinto /usr/include/scotch - doins "${S}"/libscotch/*.h - - insinto /usr/include/scotchmetis - doins "${S}"/libscotchmetis/*.h - - mv "${D}"/usr/include/*scotch*.h "${D}"/usr/include/scotch/ - - insinto "/usr/share/${PN}/tgt" - doins "${S}"/../tgt/* - insinto "/usr/share/${PN}/grf" - doins "${S}"/../grf/* - - cd "${S}/../doc" - dodoc * -} |