# 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 Cdbfasta(MakefilePackage):
    """Fast indexing and retrieval of fasta records from flat file databases"""

    homepage = "https://github.com/gpertea/cdbfasta"
    git      = "https://github.com/gpertea/cdbfasta.git"

    version('2017-03-16', commit='b3e481fe02dfbc767a3842bcb1b687c60376a5e8')

    depends_on('zlib')

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install('cdbfasta', prefix.bin)
        install('cdbyank', prefix.bin)
