From a4f0318828a01205520842a458040077da56729a Mon Sep 17 00:00:00 2001 From: Elke Flehmig Date: Mon, 22 Apr 2013 09:49:33 +0000 Subject: [PATCH] added sit script for metis --- packages/numlib/metis/5.0.3 | 48 +++++++++++++++++++++++ packages/numlib/metis/5.0.3_metis.h_patch | 8 ++++ 2 files changed, 56 insertions(+) create mode 100755 packages/numlib/metis/5.0.3 create mode 100644 packages/numlib/metis/5.0.3_metis.h_patch diff --git a/packages/numlib/metis/5.0.3 b/packages/numlib/metis/5.0.3 new file mode 100755 index 0000000..80db332 --- /dev/null +++ b/packages/numlib/metis/5.0.3 @@ -0,0 +1,48 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2012 +# + +CATEGORY="numlib" +PACKAGE="metis" +VERSION="5.0.3" +URL="http://glaros.dtc.umn.edu/gkhome/metis/metis/overview" +INSTALLER="Elke Flehmig " + +# cmake 2.8 or higher is required +case $PLATFORM in + hermit|hermit1) + module load tools/cmake/2.8.10 + module swap PrgEnv-cray PrgEnv-gnu + ;; + laki) + module load tools/cmake/2.8.10.2 + ;; +esac + +# Archive A and package name P +A=${PACKAGE}-${VERSION}.tar.gz +P=${PACKAGE}-${VERSION} + +BUILDDIR=$SRCDIR + +src_prepare() { +# set 64bit width for elementary data types + sit_info "patching metis.h with 64bit width" + cd $SRCDIR/include + patch metis.h < $SRC_POOL/5.0.3_metis.h_patch +} + +src_configure() { + make config prefix=$PREFIX +} + +src_install() { + make install + +# mv manual to target (not included in make install) + sit_info "Installing manual" + cd $SRCDIR/manual; mv manual.pdf $PREFIX +} + diff --git a/packages/numlib/metis/5.0.3_metis.h_patch b/packages/numlib/metis/5.0.3_metis.h_patch new file mode 100644 index 0000000..443373f --- /dev/null +++ b/packages/numlib/metis/5.0.3_metis.h_patch @@ -0,0 +1,8 @@ +33c33 +< #define IDXTYPEWIDTH 32 +--- +> #define IDXTYPEWIDTH 64 +43c43 +< #define REALTYPEWIDTH 32 +--- +> #define REALTYPEWIDTH 64