summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/maq/package.py
blob: 3c6dee69c3afdaab179ea9e70646549cd193a043 (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
25
26
27
28
29
30
31
32
33
34
# Copyright 2013-2024 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.package import *


class Maq(AutotoolsPackage):
    """Maq is a software that builds mapping assemblies from short reads
    generated by the next-generation sequencing machines."""

    homepage = "http://maq.sourceforge.net/"
    url = "https://downloads.sourceforge.net/project/maq/maq/0.7.1/maq-0.7.1.tar.bz2"
    list_url = "https://sourceforge.net/projects/maq/files/maq/"
    maintainers("snehring")

    license("GPL-3.0-only")

    version("0.7.1", sha256="e1671e0408b0895f5ab943839ee8f28747cf5f55dc64032c7469b133202b6de2")
    version("0.5.0", sha256="c292c19baf291b2415b460d687d43a71ece00a7d178cc5984bc8fc30cfce2dfb")

    depends_on("perl", type="run")

    def patch(self):
        with working_dir("scripts"):
            scripts = ["farm-run.pl", "maq_eval.pl", "maq.pl", "maq_plot.pl"]
            for s in scripts:
                filter_file("/usr/bin/perl", self.spec["perl"].prefix.bin.perl, s)

    def flag_handler(self, name, flags):
        if name.lower() == "cxxflags":
            flags.append("-fpermissive")
        return (flags, None, None)