summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/graphmap/package.py
blob: 2bb7105d9452b43f2c7d5e227b86d0fe82883622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Graphmap(MakefilePackage):
    """A highly sensitive and accurate mapper for long, error-prone reads"""

    homepage = "https://github.com/isovic/graphmap"
    git      = "https://github.com/isovic/graphmap.git"

    version('0.3.0', commit='eb8c75d68b03be95464318afa69b645a59f8f6b7')

    def edit(self, spec, prefix):
        mkdirp(prefix.bin)
        makefile = FileFilter('Makefile')
        makefile.filter('/usr/bin/graphmap', prefix.bin.graphmap)

    def build(self, spec, prefix):
        make('modules')
        make()