From 8decafda37fa98ea37644654f7c8a8f24388803d Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Thu, 27 Mar 2008 19:04:35 +0000 Subject: Added pkg-config files in patch, removed slot, added blocking for parmetis. See bug #49953. Removed incompatible versions. (Portage version: 2.1.4.4) --- sci-libs/metis/ChangeLog | 11 +- sci-libs/metis/files/metis-4.0.1-autotools.patch | 58 ++- .../metis/files/metis-5.0_pre2-autotools.patch | 528 +++------------------ sci-libs/metis/metis-4.0.1-r1.ebuild | 34 ++ sci-libs/metis/metis-4.0.1.ebuild | 32 -- sci-libs/metis/metis-5.0_pre2-r1.ebuild | 65 +++ sci-libs/metis/metis-5.0_pre2.ebuild | 62 --- 7 files changed, 225 insertions(+), 565 deletions(-) create mode 100644 sci-libs/metis/metis-4.0.1-r1.ebuild delete mode 100644 sci-libs/metis/metis-4.0.1.ebuild create mode 100644 sci-libs/metis/metis-5.0_pre2-r1.ebuild delete mode 100644 sci-libs/metis/metis-5.0_pre2.ebuild (limited to 'sci-libs/metis') diff --git a/sci-libs/metis/ChangeLog b/sci-libs/metis/ChangeLog index 579eb82312b8..cc01adf3811c 100644 --- a/sci-libs/metis/ChangeLog +++ b/sci-libs/metis/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-libs/metis # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/ChangeLog,v 1.1 2008/02/05 17:55:29 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/ChangeLog,v 1.2 2008/03/27 19:04:34 bicatali Exp $ + +*metis-5.0_pre2-r1 (27 Mar 2008) +*metis-4.0.1-r1 (27 Mar 2008) + + 27 Mar 2008; Sébastien Fabbro + files/metis-4.0.1-autotools.patch, files/metis-5.0_pre2-autotools.patch, + +metis-4.0.1-r1.ebuild, +metis-5.0_pre2-r1.ebuild: + Added pkg-config files in patch, removed slot, added blocking for + parmetis. See bug #49953 *metis-5.0_pre2 (05 Feb 2008) *metis-4.0.1 (05 Feb 2008) diff --git a/sci-libs/metis/files/metis-4.0.1-autotools.patch b/sci-libs/metis/files/metis-4.0.1-autotools.patch index 4b2c7f9b1e88..11453cdf8889 100644 --- a/sci-libs/metis/files/metis-4.0.1-autotools.patch +++ b/sci-libs/metis/files/metis-4.0.1-autotools.patch @@ -1,18 +1,44 @@ --- configure.ac 1970-01-01 01:00:00.000000000 +0100 -+++ configure.ac 2008-01-30 21:47:22.597386731 +0000 -@@ -0,0 +1,9 @@ ++++ configure.ac 2008-03-25 10:05:57.090715324 +0000 +@@ -0,0 +1,14 @@ +# -*- Autoconf -*- +AC_PREREQ(2.59) -+AC_INIT(metis,4.0.1,karypis@cs.umn.edu) ++AC_INIT(metis, 4.0.1, karypis@cs.umn.edu) +AM_INIT_AUTOMAKE([foreign]) +AC_PROG_INSTALL +AC_PROG_LIBTOOL +AC_CHECK_LIB(m, sqrt) -+AC_CONFIG_FILES([Makefile Lib/Makefile Programs/Makefile Test/Makefile]) ++AC_CONFIG_FILES([ ++ Makefile ++ metis.pc ++ Lib/Makefile ++ Programs/Makefile\ ++ Test/Makefile]) +AC_OUTPUT ---- ./Lib/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ ./Lib/Makefile.am 2008-01-31 15:03:42.814421420 +0000 -@@ -0,0 +1,16 @@ +--- metis.pc.in 1970-01-01 01:00:00.000000000 +0100 ++++ metis.pc.in 2008-02-15 14:45:09.378997263 +0000 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: METIS ++Description: Software for partioning unstructured graphes and meshes ++Version: @VERSION@ ++Libs: -L${libdir} -lmetis ++Cflags: -I${includedir} +--- Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ Makefile.am 2008-02-15 14:46:16.578826763 +0000 +@@ -0,0 +1,5 @@ ++SUBDIRS = Lib Programs Test ++EXTRA_DIST = CHANGES VERSION metis.pc.in ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = metis.pc +--- Lib/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ Lib/Makefile.am 2008-03-25 10:06:10.719491984 +0000 +@@ -0,0 +1,15 @@ +include_HEADERS = defs.h macros.h metis.h proto.h rename.h struct.h +pkgincludedir = $(includedir)/metis +lib_LTLIBRARIES = libmetis.la @@ -27,10 +53,9 @@ + mrefine.c mutil.c mfm.c mkmetis.c mkwayrefine.c mkwayfmh.c \ + mrefine2.c minitpart2.c mbalance2.c mfm2.c \ + kvmetis.c kwayvolrefine.c kwayvolfm.c subdomains.c -+libmetis_la_LIBADD = -lm -+libmetis_la_LDFLAGS = -no-undefined -version-info 4:0:0 ---- ./Programs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ ./Programs/Makefile.am 2008-01-31 12:00:14.981124649 +0000 ++libmetis_la_LDFLAGS = -no-undefined -version-info 4:0:0 +--- Programs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ Programs/Makefile.am 2008-01-31 12:00:14.981124649 +0000 @@ -0,0 +1,15 @@ +AM_CPPFLAGS = -I$(top_srcdir)/Lib +LDADD = $(top_builddir)/Lib/libmetis.la -lm @@ -47,8 +72,8 @@ +partdmesh_SOURCES = partdmesh.c io.c +partnmesh_SOURCES = partnmesh.c io.c +graphchk_SOURCES = graphchk.c io.c ---- ./Test/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ ./Test/Makefile.am 2008-01-31 12:37:59.532517099 +0000 +--- Test/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ Test/Makefile.am 2008-01-31 12:37:59.532517099 +0000 @@ -0,0 +1,7 @@ +AM_CPPFLAGS = -I$(top_srcdir)/Lib +LDADD = $(top_builddir)/Lib/libmetis.la -lm @@ -57,10 +82,3 @@ + +check-local: $(check_PROGRAMS) + - ./mtest ../Graphs/4elt.graph ---- ./Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ ./Makefile.am 2008-01-30 21:15:58.990578962 +0000 -@@ -0,0 +1,4 @@ -+SUBDIRS = Lib Programs Test -+EXTRA_DIST = CHANGES -+ -+ diff --git a/sci-libs/metis/files/metis-5.0_pre2-autotools.patch b/sci-libs/metis/files/metis-5.0_pre2-autotools.patch index 8bbce5d0db1b..64d7ecd9ab16 100644 --- a/sci-libs/metis/files/metis-5.0_pre2-autotools.patch +++ b/sci-libs/metis/files/metis-5.0_pre2-autotools.patch @@ -1,12 +1,13 @@ --- configure.ac 1970-01-01 01:00:00.000000000 +0100 -+++ configure.ac 2007-09-24 15:12:11.917289395 +0100 -@@ -0,0 +1,54 @@ ++++ configure.ac 2008-03-25 11:07:24.560995022 +0000 +@@ -0,0 +1,53 @@ ++# -*- Autoconf -*- ++AC_PREREQ(2.59) +AC_INIT([metis], [5.0pre2], [metis@cs.umn.edu], [metis]) +AM_INIT_AUTOMAKE([foreign]) + +AC_PROG_MAKE_SET +AC_PROG_LIBTOOL -+ +AC_CHECK_LIB(m, [sqrt, pow, log]) + +AC_ARG_ENABLE(openmp, @@ -15,20 +16,18 @@ + [enable_openmp=$enableval], + [enable_openmp="yes"]) +AC_MSG_RESULT($enable_openmp) -+ +if test x$enable_openmp = xyes; then + AC_CHECK_HEADERS(omp.h) + OMP_CPPFLAGS=-D__OPENMP__ + if test x$CC = xicc; then + OMP_CFLAGS="-openmp -openmp-report2" -+ OMP_LDFLAGS=-openmp ++ OMP_LIBS=-openmp + else + OMP_CFLAGS=-fopenmp -+ OMP_LDFLAGS=-lgomp ++ OMP_LIBS=-lgomp + fi +fi + -+# very basic pcre check +AC_ARG_ENABLE(pcre, + [AC_HELP_STRING([--enable-pcre], + [Enable PCRE regex support])], @@ -43,26 +42,68 @@ + AC_CHECK_HEADERS(pcre.h) + PCRE="yes" + PCRE_CPPFLAGS=-D__WITHPCRE__ -+ PCRE_LDFLAGS=-lpcre ++ PCRE_LIBS=-lpcre + fi +fi + -+AC_CONFIG_FILES( \ -+ Makefile \ -+ GKlib/trunk/Makefile \ -+ libmetis/Makefile \ -+ programs/Makefile \ -+ test/Makefile -+) ++AC_CONFIG_FILES([ ++ Makefile ++ metis.pc ++ GKlib/trunk/Makefile ++ libmetis/Makefile ++ programs/Makefile ++ test/Makefile]) +AC_OUTPUT ---- Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ Makefile.am 2007-09-24 15:12:11.921289623 +0100 -@@ -0,0 +1,3 @@ -+SUBDIRS = GKlib/trunk libmetis programs test -+EXTRA_DIST = CHANGES.v4 CHANGES.v5 -+include_HEADERS = include/metis.h ---- GKlib/trunk/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ GKlib/trunk/Makefile.am 2007-09-24 15:12:11.949291219 +0100 +--- metis.pc.in 1970-01-01 01:00:00.000000000 +0100 ++++ metis.pc.in 2008-03-25 11:07:04.387845420 +0000 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: METIS ++Description: Software for partioning unstructured graphes and meshes ++Version: @VERSION@ ++Libs: -L${libdir} -lmetis ++Cflags: -I${includedir} +--- ./test/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ ./test/Makefile.am 2008-03-25 11:07:04.387845420 +0000 +@@ -0,0 +1,10 @@ ++AM_CPPFLAGS = \ ++ -I$(top_srcdir)/include \ ++ -I$(top_srcdir)/libmetis \ ++ -I$(top_srcdir)/programs \ ++ -I$(top_srcdir)/GKlib/trunk \ ++ -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 ++ ++check_PROGRAMS = mtest ++mtest_SOURCES = mtest.c $(top_srcdir)/programs/io.c ++mtest_LDADD = $(top_builddir)/libmetis/libmetis.la +--- ./programs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ ./programs/Makefile.am 2008-03-25 11:07:04.387845420 +0000 +@@ -0,0 +1,19 @@ ++AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/GKlib/trunk -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 ++bin_PROGRAMS = cmetis graphchk kfmetis kmetis mesh2dual mesh2nodal metis \ ++ oemetis onmetis partdmesh partnmesh pmetis ++ ++# Differing from upstream, a lot of these get smbfactor.c as we need ++# ComputeFillIn2, which is referenced in proto.h <- metisbin.h ++LDADD = $(top_builddir)/libmetis/libmetis.la ++cmetis_SOURCES = cmetis.c io.c cmdline_cmetis.c ++graphchk_SOURCES = graphchk.c io.c ++kfmetis_SOURCES = kfmetis.c io.c cmdline_kfmetis.c ++kmetis_SOURCES = kmetis.c io.c ++mesh2dual_SOURCES = mesh2dual.c io.c ++mesh2nodal_SOURCES = mesh2nodal.c io.c ++metis_SOURCES = metis.c io.c ++oemetis_SOURCES = oemetis.c io.c ++onmetis_SOURCES = onmetis.c io.c ++partdmesh_SOURCES = partdmesh.c io.c ++partnmesh_SOURCES = partnmesh.c io.c ++pmetis_SOURCES = pmetis.c io.c cmdline_pmetis.c +--- ./GKlib/trunk/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ ./GKlib/trunk/Makefile.am 2008-03-25 11:07:04.387845420 +0000 @@ -0,0 +1,26 @@ +AM_CPPFLAGS = -DLINUX -D_FILE_OFFSET_BITS=6 $(PCRE_CPPFLAGS) $(OMP_CPPFLAGS) +AM_CFLAGS = -std=c99 $(OMP_CFLAGS) @@ -90,398 +131,14 @@ + tokenizer.c \ + util.c +libgklib_la_LIBADD = $(OMP_LDFLAGS) $(PCRE_LDFLAGS) ---- libmetis/smbfactor.c 1970-01-01 01:00:00.000000000 +0100 -+++ libmetis/smbfactor.c 2007-09-24 15:12:11.949291219 +0100 -@@ -0,0 +1,385 @@ -+/* -+ * Copyright 1997, Regents of the University of Minnesota -+ * -+ * smbfactor.c -+ * -+ * This file performs the symbolic factorization of a matrix -+ * -+ * Started 8/1/97 -+ * George -+ * -+ * $Id: metis-5.0_pre2-autotools.patch,v 1.1 2008/02/05 17:55:30 bicatali Exp $ -+ * -+ */ -+ -+#include -+ -+ -+/************************************************************************* -+* This function sets up data structures for fill-in computations -+**************************************************************************/ -+void ComputeFillIn(GraphType *graph, idxtype *iperm) -+{ -+ idxtype i, j, k, nvtxs, maxlnz, maxsub; -+ idxtype *xadj, *adjncy; -+ idxtype *perm, *xlnz, *xnzsub, *nzsub; -+ double opc; -+ -+/* -+ mprintf("\nSymbolic factorization... --------------------------------------------\n"); -+*/ -+ -+ nvtxs = graph->nvtxs; -+ xadj = graph->xadj; -+ adjncy = graph->adjncy; -+ -+ maxsub = 4*xadj[nvtxs]; -+ -+ /* Relabel the vertices so that it starts from 1 */ -+ k = xadj[nvtxs]; -+ for (i=0; invtxs; -+ xadj = graph->xadj; -+ adjncy = graph->adjncy; -+ -+ maxsub = 4*xadj[nvtxs]; -+ -+ /* Relabel the vertices so that it starts from 1 */ -+ k = xadj[nvtxs]; -+ for (i=0; i= xadj[node+1]) { -+ xlnz[k+1] = xlnz[k]; -+ continue; -+ } -+ -+ /* USE RCHLNK TO LINK THROUGH THE STRUCTURE OF A(*,K) BELOW DIAGONAL */ -+ rchlnk[k] = neqns+1; -+ for (j=xadj[node]; j lmax) { -+ lmax = inz; -+ xnzsub[k] = jstrt; -+ } -+ -+ /* MERGE STRUCTURE OF L(*,I) IN NZSUB INTO RCHLNK. */ -+ rchm = k; -+ for (j = jstrt; j <= jstop; ++j) { -+ nabor = nzsub[j]; -+ do { -+ m = rchm; -+ rchm = rchlnk[m]; -+ } while (rchm < nabor); -+ -+ if (rchm != nabor) { -+ knz++; -+ rchlnk[m] = nabor; -+ rchlnk[nabor] = rchm; -+ rchm = nabor; -+ } -+ } -+ } -+ -+ /* CHECK IF SUBSCRIPTS DUPLICATE THOSE OF ANOTHER COLUMN */ -+ if (knz == lmax) -+ goto L1400; -+ -+ /* OR IF TAIL OF K-1ST COLUMN MATCHES HEAD OF KTH */ -+ if (nzbeg > nzend) -+ goto L1200; -+ -+ i = rchlnk[k]; -+ for (jstrt = nzbeg; jstrt <= nzend; ++jstrt) { -+ if (nzsub[jstrt] < i) -+ continue; -+ -+ if (nzsub[jstrt] == i) -+ goto L1000; -+ else -+ goto L1200; -+ } -+ goto L1200; -+ -+L1000: -+ xnzsub[k] = jstrt; -+ for (j = jstrt; j <= nzend; ++j) { -+ if (nzsub[j] != i) -+ goto L1200; -+ -+ i = rchlnk[i]; -+ if (i > neqns) -+ goto L1400; -+ } -+ nzend = jstrt - 1; -+ -+ /* COPY THE STRUCTURE OF L(*,K) FROM RCHLNK TO THE DATA STRUCTURE (XNZSUB, NZSUB) */ -+L1200: -+ nzbeg = nzend + 1; -+ nzend += knz; -+ -+ if (nzend > *maxsub) { -+ flag = 1; /* Out of memory */ -+ break; -+ } -+ -+ i = k; -+ for (j=nzbeg; j<=nzend; ++j) { -+ i = rchlnk[i]; -+ nzsub[j] = i; -+ marker[i] = k; -+ } -+ xnzsub[k] = nzbeg; -+ marker[k] = k; -+ -+ /* -+ * UPDATE THE VECTOR MRGLNK. NOTE COLUMN L(*,K) JUST FOUND -+ * IS REQUIRED TO DETERMINE COLUMN L(*,J), WHERE -+ * L(J,K) IS THE FIRST NONZERO IN L(*,K) BELOW DIAGONAL. -+ */ -+L1400: -+ if (knz > 1) { -+ kxsub = xnzsub[k]; -+ i = nzsub[kxsub]; -+ mrglnk[k] = mrglnk[i]; -+ mrglnk[i] = k; -+ } -+ -+ xlnz[k + 1] = xlnz[k] + knz; -+ } -+ -+ if (flag == 0) { -+ *maxlnz = xlnz[neqns] - 1; -+ *maxsub = xnzsub[neqns]; -+ xnzsub[neqns + 1] = xnzsub[neqns]; -+ } -+ -+ marker++; -+ mrglnk++; -+ rchlnk++; -+ nzsub++; -+ xnzsub++; -+ xlnz++; -+ invp++; -+ perm++; -+ adjncy++; -+ xadj++; -+ gk_free((void **)&rchlnk, &mrglnk, &marker, LTERM); -+ -+ return flag; -+ -+} +--- ./libmetis/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ ./libmetis/Makefile.am 2008-03-25 11:07:04.387845420 +0000 +@@ -0,0 +1,20 @@ ++AM_CPPFLAGS = \ ++ -I$(top_srcdir)/include \ ++ -I$(top_srcdir)/GKlib/trunk \ ++ -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 + ---- libmetis/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ libmetis/Makefile.am 2007-09-24 15:12:11.933290307 +0100 -@@ -0,0 +1,16 @@ -+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/GKlib/trunk -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 +lib_LTLIBRARIES = libmetis.la +libmetis_la_SOURCES= \ + balance.c bucketsort.c ccgraph.c checkgraph.c cmetis.c \ @@ -495,40 +152,11 @@ + pmetis.c pqueue.c refine.c rkmetis.c separator.c sfm.c \ + srefine.c stat.c streamio.c subdomains.c timing.c util.c \ + smbfactor.c -+ +libmetis_la_LIBADD = $(top_builddir)/GKlib/trunk/libgklib.la ---- programs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ programs/Makefile.am 2007-09-24 15:12:11.933290307 +0100 -@@ -0,0 +1,19 @@ -+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/GKlib/trunk -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -+bin_PROGRAMS = cmetis graphchk kfmetis kmetis mesh2dual mesh2nodal metis \ -+ oemetis onmetis partdmesh partnmesh pmetis -+ -+# Differing from upstream, a lot of these get smbfactor.c as we need -+# ComputeFillIn2, which is referenced in proto.h <- metisbin.h -+LDADD = $(top_builddir)/libmetis/libmetis.la -+cmetis_SOURCES = cmetis.c io.c cmdline_cmetis.c -+graphchk_SOURCES = graphchk.c io.c -+kfmetis_SOURCES = kfmetis.c io.c cmdline_kfmetis.c -+kmetis_SOURCES = kmetis.c io.c -+mesh2dual_SOURCES = mesh2dual.c io.c -+mesh2nodal_SOURCES = mesh2nodal.c io.c -+metis_SOURCES = metis.c io.c -+oemetis_SOURCES = oemetis.c io.c -+onmetis_SOURCES = onmetis.c io.c -+partdmesh_SOURCES = partdmesh.c io.c -+partnmesh_SOURCES = partnmesh.c io.c -+pmetis_SOURCES = pmetis.c io.c cmdline_pmetis.c ---- test/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ test/Makefile.am 2007-09-24 15:45:23.683980202 +0100 -@@ -0,0 +1,10 @@ -+AM_CPPFLAGS = \ -+ -I$(top_srcdir)/include \ -+ -I$(top_srcdir)/libmetis \ -+ -I$(top_srcdir)/programs \ -+ -I$(top_srcdir)/GKlib/trunk \ -+ -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -+ -+check_PROGRAMS = mtest -+mtest_SOURCES = mtest.c $(top_srcdir)/programs/io.c -+mtest_LDADD = $(top_builddir)/libmetis/libmetis.la ++libmetis_la_LDFLAGS = -no-undefined -version-info 5:0:0 +--- ./Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ ./Makefile.am 2008-03-25 11:07:04.387845420 +0000 +@@ -0,0 +1,3 @@ ++SUBDIRS = GKlib/trunk libmetis programs test ++EXTRA_DIST = CHANGES.v4 CHANGES.v5 ++include_HEADERS = include/metis.h diff --git a/sci-libs/metis/metis-4.0.1-r1.ebuild b/sci-libs/metis/metis-4.0.1-r1.ebuild new file mode 100644 index 000000000000..9675c450dd04 --- /dev/null +++ b/sci-libs/metis/metis-4.0.1-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/metis-4.0.1-r1.ebuild,v 1.1 2008/03/27 19:04:34 bicatali Exp $ + +inherit autotools eutils + +MYP=${PN}-4.0 +DESCRIPTION="A package for unstructured serial graph partitioning" +HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/index.html" +SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${MYP}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="free-noncomm" + +IUSE="doc" +SLOT="0" + +DEPEND="" +RDEPEND="!sci-libs/parmetis" + +S="${WORKDIR}/${MYP}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-autotools.patch + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES || die "dodoc failed" + use doc && dodoc Doc/manual.ps +} diff --git a/sci-libs/metis/metis-4.0.1.ebuild b/sci-libs/metis/metis-4.0.1.ebuild deleted file mode 100644 index 3b9dc41a69d6..000000000000 --- a/sci-libs/metis/metis-4.0.1.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/metis-4.0.1.ebuild,v 1.1 2008/02/05 17:55:29 bicatali Exp $ - -inherit autotools eutils - -MYP=${PN}-4.0 -DESCRIPTION="A package for unstructured serial graph partitioning" -HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/index.html" -SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${MYP}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="free-noncomm" - -IUSE="doc" -SLOT="4" - -DEPEND="" -S="${WORKDIR}/${MYP}" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-autotools.patch - eautoreconf -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc CHANGES || die "dodoc failed" - use doc && dodoc Doc/manual.ps -} diff --git a/sci-libs/metis/metis-5.0_pre2-r1.ebuild b/sci-libs/metis/metis-5.0_pre2-r1.ebuild new file mode 100644 index 000000000000..cf1dadaa56e1 --- /dev/null +++ b/sci-libs/metis/metis-5.0_pre2-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/metis-5.0_pre2-r1.ebuild,v 1.1 2008/03/27 19:04:34 bicatali Exp $ + +inherit autotools eutils + +MY_PV=${PV/_/} + +DESCRIPTION="A package for unstructured serial graph partitioning" +HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/index.html" +SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-${MY_PV}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="free-noncomm" + +IUSE="pcre openmp int64 threads" +SLOT="0" + +DEPEND="pcre? ( dev-libs/libpcre ) + openmp? ( || ( >=sys-devel/gcc-4.2 >=dev-lang/icc-9 ) )" + +RDEPEND="${DEPEND} + !sci-libs/parmetis" + +S="${WORKDIR}/metis-${MY_PV}" + +pkg_setup() { + if use openmp \ + && [[ $(tc-getCC) == *gcc ]] \ + && [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]]; then + eerror "You need gcc >= 4.2 to use openmp features." + eerror "Please use gcc-config to switch gcc version >= 4.2" + die "setup gcc failed" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-autotools.patch + if use int64; then + sed -e 's/\(#define IDXTYPEWIDTH\).*32/\1 64/' \ + -i include/metis.h \ + || die "sed for int64 failed" + fi + if use threads; then + sed -e 's/\(#define HAVE_THREADLOCALSTORAGE\).*0/\1 1/' \ + -i include/metis.h \ + || die "sed for threads failed" + fi + eautoreconf +} + +src_compile() { + econf \ + $(use_enable pcre) \ + $(use_enable openmp) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES.v5 || die "dodoc failed" +} diff --git a/sci-libs/metis/metis-5.0_pre2.ebuild b/sci-libs/metis/metis-5.0_pre2.ebuild deleted file mode 100644 index 47aa743d8df6..000000000000 --- a/sci-libs/metis/metis-5.0_pre2.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/metis-5.0_pre2.ebuild,v 1.2 2008/02/05 22:27:24 mr_bones_ Exp $ - -inherit autotools eutils - -MY_PV=${PV/_/} - -DESCRIPTION="A package for unstructured serial graph partitioning" -HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/index.html" -SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-${MY_PV}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="free-noncomm" - -IUSE="pcre openmp int64 threads" -SLOT="5" - -DEPEND="pcre? ( dev-libs/libpcre ) - openmp? ( || ( >=sys-devel/gcc-4.2 >=dev-lang/icc-9 ) )" - -S="${WORKDIR}/metis-${MY_PV}" - -pkg_setup() { - if use openmp \ - && [[ $(tc-getCC) == *gcc ]] \ - && [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]]; then - eerror "You need gcc >= 4.2 to use openmp features." - eerror "Please use gcc-config to switch gcc version >= 4.2" - die "setup gcc failed" - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-autotools.patch - if use int64; then - sed -e 's/\(#define IDXTYPEWIDTH\).*32/\1 64/' \ - -i include/metis.h \ - || die "sed for int64 failed" - fi - if use threads; then - sed -e 's/\(#define HAVE_THREADLOCALSTORAGE\).*0/\1 1/' \ - -i include/metis.h \ - || die "sed for threads failed" - fi - eautoreconf -} - -src_compile() { - econf \ - $(use_enable pcre) \ - $(use_enable openmp) \ - || die "econf failed" - emake || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc CHANGES.v5 || die "dodoc failed" -} -- cgit v1.2.3-65-gdbad