summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-03-27 19:04:35 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-03-27 19:04:35 +0000
commita08395726104693f8deedb5b9fb0ff6bd2f8caad (patch)
tree7ec676a11a3b90cd1c6e51e35b74fd18fd87b83e /sci-libs/metis/metis-5.0_pre2-r1.ebuild
parentInitial import. Thankss Oliver Borm for his work and everyone else in bug #49... (diff)
downloadhistorical-a08395726104693f8deedb5b9fb0ff6bd2f8caad.tar.gz
historical-a08395726104693f8deedb5b9fb0ff6bd2f8caad.tar.bz2
historical-a08395726104693f8deedb5b9fb0ff6bd2f8caad.zip
Added pkg-config files in patch, removed slot, added blocking for parmetis. See bug #49953. Removed incompatible versions.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'sci-libs/metis/metis-5.0_pre2-r1.ebuild')
-rw-r--r--sci-libs/metis/metis-5.0_pre2-r1.ebuild65
1 files changed, 65 insertions, 0 deletions
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"
+}