# Copyright 2013-2020 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 Lastz(MakefilePackage):
    """LASTZ is a program for aligning DNA sequences, a pairwise aligner."""

    homepage = "https://lastz.github.io/lastz"
    url      = "https://github.com/lastz/lastz/archive/1.04.00.tar.gz"

    version('1.04.00', sha256='a4c2c7a77430387e96dbc9f5bdc75874334c672be90f5720956c0f211abf9f5a')

    # cast from char to signed char
    patch('cast_signed_char.patch')

    def install(self, spec, prefix):
        make('install', 'LASTZ_INSTALL={0}'.format(prefix.bin))

@@ -608,24 +608,157 @@
 ar.patch')%0A%0A
+    # set compile commands for each compiler%0A    def edit(self, spec, prefix):%0A        filter_file('gcc', spack_cc, 'src/Makefile')%0A%0A
     def inst

set compile commands for each compiler (#15284)