<commit_before>from spack import *

class Metis(Package):
    """METIS is a set of serial programs for partitioning graphs,
       partitioning finite element meshes, and producing fill reducing
       orderings for sparse matrices. The algorithms implemented in
       METIS are based on the multilevel recursive-bisection,
       multilevel k-way, and multi-constraint partitioning schemes."""

    homepage = "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview"
    url      = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz"

    version('5.1.0', '<PASSWORD>')

    depends_on('mpi')

    def install(self, spec, prefix):
        cmake(".",
              '-DGKLIB_PATH=%s/GKlib' % pwd(),
              '-DSHARED=1',
              '-DCMAKE_C_COMPILER=mpicc',
              '-DCMAKE_CXX_COMPILER=mpicxx',
              '-DSHARED=1',
              *std_cmake_args)

        make()
        make("install")<commit_msg>Require cmake @2.8: for metis<commit_after>from spack import *

class Metis(Package):
    """METIS is a set of serial programs for partitioning graphs,
       partitioning finite element meshes, and producing fill reducing
       orderings for sparse matrices. The algorithms implemented in
       METIS are based on the multilevel recursive-bisection,
       multilevel k-way, and multi-constraint partitioning schemes."""

    homepage = "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview"
    url      = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz"

    version('5.1.0', '<PASSWORD>')

    depends_on("cmake @2.8:")   # build-time dependency
    depends_on('mpi')

    def install(self, spec, prefix):
        cmake(".",
              '-DGKLIB_PATH=%s/GKlib' % pwd(),
              '-DSHARED=1',
              '-DCMAKE_C_COMPILER=mpicc',
              '-DCMAKE_CXX_COMPILER=mpicxx',
              '-DSHARED=1',
              *std_cmake_args)

        make()
        make("install")
{'fraction_non_alphanumeric': 0.1260245901639344, 'fraction_numerical': 0.010245901639344262, 'mean_word_length': 2.4083769633507854, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6870247', 'n_tokens_mistral': 661, 'n_tokens_neox': 626, 'n_words': 137}