summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bioawk/package.py
blob: f8a90fe1230e4754d1276babff90b9325968e26a (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
# 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 Bioawk(MakefilePackage):
    """Bioawk is an extension to Brian Kernighan's awk, adding the support of
       several common biological data formats, including optionally gzip'ed
       BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names.
    """

    homepage = "https://github.com/lh3/bioawk"
    url = "https://github.com/lh3/bioawk/archive/v1.0.zip"

    version('1.0', 'e423942689f944369de270900978be28')

    depends_on('zlib')
    depends_on('bison', type=('build'))

    parallel = False

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install('bioawk',  prefix.bin)
        install('maketab', prefix.bin)