2022-01-13 03:21:41 +08:00
|
|
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2018-05-15 00:07:00 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2018-05-15 00:07:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Kaiju(MakefilePackage):
|
|
|
|
"""Kaiju is a program for the taxonomic classification
|
|
|
|
of high-throughput sequencing reads."""
|
|
|
|
|
|
|
|
homepage = "https://github.com/bioinformatics-centre/kaiju"
|
|
|
|
url = "https://github.com/bioinformatics-centre/kaiju/archive/v1.6.2.zip"
|
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version("1.6.2", sha256="2685fed7e27ddeb26530fd60a4b388f2d5f3e29aaa79f8e2e6abcbac64075db8")
|
2018-05-15 00:07:00 +08:00
|
|
|
|
|
|
|
build_directory = "src"
|
|
|
|
|
|
|
|
depends_on("perl-io-compress", type="run")
|
|
|
|
depends_on("py-htseq", type="run")
|
|
|
|
|
|
|
|
def edit(self, spec, prefix):
|
|
|
|
# Replace ftp:// with https://
|
|
|
|
makedb = FileFilter("util/makeDB.sh")
|
|
|
|
makedb.filter("ftp://", "https://", string=True)
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
install_tree("bin", prefix.bin)
|