# 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 Exonerate(Package):
    """Pairwise sequence alignment of DNA and proteins"""

    homepage = "http://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate"
    url      = "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/exonerate-2.4.0.tar.gz"

    version('2.4.0', '126fbade003b80b663a1d530c56f1904')

    depends_on('pkgconfig', type="build")
    depends_on('glib')

    parallel = False

    def install(self, spec, prefix):
        configure('--prefix={0}'.format(prefix), '--disable-debug',
                  '--disable-dependency-tracking')
        make()
        make('install')
