
* unmaintained pkgs: bump versions 2024-05-10 * openblas: fix satisfies syntax * pixman: add autotools dependencies * [@spackbot] updating style on behalf of alecbcs * pixman: revert * chapel: revert changes in favor of other PR * openblas: revert due to failing tests * Address review feedback for flint, biobam2, and pango * pango: add version comment about v2.0 * numactl: revert changes due to ppc4le bug * flint: remote duplicate configure arg Co-authored-by: Wouter Deconinck <wdconinc@gmail.com> * openvkl, rkcommon: remove commented maintainers template * flint: fix style --------- Co-authored-by: alecbcs <alecbcs@users.noreply.github.com> Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>
46 lines
1.8 KiB
Python
46 lines
1.8 KiB
Python
# 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 Biobambam2(AutotoolsPackage):
|
|
"""Tools for early stage alignment file processing"""
|
|
|
|
homepage = "https://gitlab.com/german.tischler/biobambam2"
|
|
url = "https://gitlab.com/german.tischler/biobambam2/-/archive/2.0.177-release-20201112105453/biobambam2-2.0.177-release-20201112105453.tar.gz"
|
|
|
|
version(
|
|
"2.0.177",
|
|
sha256="ad0a418fb49a31996a105a1a275c0d1dfc8b84aa91d48fa1efb6ff4fe1e74181",
|
|
url="https://gitlab.com/german.tischler/biobambam2/-/archive/2.0.177-release-20201112105453/biobambam2-2.0.177-release-20201112105453.tar.gz",
|
|
)
|
|
|
|
depends_on("autoconf", type="build")
|
|
depends_on("automake", type="build")
|
|
depends_on("libtool", type="build")
|
|
depends_on("m4", type="build")
|
|
depends_on("libmaus2")
|
|
|
|
test_src_dir = "test"
|
|
|
|
def configure_args(self):
|
|
args = [f"--with-libmaus2={self.spec['libmaus2'].prefix}"]
|
|
return args
|
|
|
|
@run_after("install")
|
|
def cache_test_sources(self):
|
|
"""Copy the test source files after the package is installed to an
|
|
install test subdirectory for use during `spack test run`."""
|
|
self.cache_extra_test_sources(self.test_src_dir)
|
|
|
|
def test_short_sort(self):
|
|
"""run testshortsort.sh to check alignments sorted by coordinate"""
|
|
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir)
|
|
with working_dir(test_dir):
|
|
sh = which("sh")
|
|
out = sh("testshortsort.sh", output=str.split, error=str.split)
|
|
assert "Alignments sorted by coordinate." in out
|