add sra-tools and NCBI-VDT packages (#32403)

* ncbi-vdb: add ncbi-vdb package to spack
ncbi-vdb provides the interface to the NCBI VDB

* sra-tools: add sra-tools to spack
This commit is contained in:
downloadico 2022-08-26 17:38:27 -06:00 committed by GitHub
parent e6f6de406d
commit 430b8ca362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# Copyright 2013-2022 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 NcbiVdb(CMakePackage):
"""The SRA Toolkit and SDK from NCBI is a collection of tools and
libraries for using data in the INSDC Sequence Read Archives.
This package contains the interface to the VDB."""
homepage = "https://github.com/ncbi/ncbi-vdb"
git = "https://github.com/ncbi/ncbi-vdb.git"
version("3.0.0", tags="3.0.0")
depends_on("openjdk")
depends_on("flex@2.6:")
depends_on("libxml2")

View file

@ -0,0 +1,29 @@
# Copyright 2013-2022 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 SraTools(CMakePackage):
"""The SRA Toolkit and SDK from NCBI is a collection of tools and
libraries for using data in the INSDC Sequence Read Archives."""
homepage = "https://github.com/ncbi/sra-tools"
git = "https://github.com/ncbi/sra-tools.git"
version("3.0.0", tags="3.0.0")
depends_on("openjdk")
depends_on("flex@2.6:")
depends_on("libxml2")
depends_on("ncbi-vdb")
def cmake_args(self):
args = [
self.define("VDB_INCDIR", format(self.spec["ncbi-vdb"].prefix) + "/include"),
self.define("VDB_LIBDIR", format(self.spec["ncbi-vdb"].prefix) + "/lib64"),
self.define("VDB_BINDIR", format(self.spec["ncbi-vdb"].prefix)),
]
return args