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-09-05 03:35:33 +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-09-05 03:35:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Bamdst(MakefilePackage):
|
2019-03-15 09:49:07 +08:00
|
|
|
"""Bamdst is a a lightweight bam file depth statistical tool."""
|
2018-09-05 03:35:33 +08:00
|
|
|
|
|
|
|
homepage = "https://github.com/shiquan/bamdst"
|
|
|
|
git = "https://github.com/shiquan/bamdst.git"
|
|
|
|
|
|
|
|
version("master", git="https://github.com/shiquan/bamdst.git")
|
|
|
|
|
|
|
|
depends_on("zlib")
|
|
|
|
|
|
|
|
parallel = False
|
|
|
|
|
|
|
|
def edit(self, spec, prefix):
|
|
|
|
makefile = FileFilter("Makefile")
|
|
|
|
makefile.filter("CC= .*", "CC = cc")
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
mkdir(prefix.bin)
|
|
|
|
install("bamdst", prefix.bin)
|