blob: fc360a22d6e7557fb00824c2525e0a31a917c602 (
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
29
30
31
32
33
34
35
|
# Copyright 2013-2023 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.3", tag="3.0.3")
version("3.0.0", tag="3.0.0")
depends_on("openjdk")
depends_on("flex@2.6:")
depends_on("libxml2")
depends_on("ncbi-vdb")
depends_on("ncbi-vdb@3.0.2:", when="@3.0.3:")
# The CMakeLists.txt file set the path to ${TARGDIR}/obj but the code
# actually uses ${TARGDIR}.
patch("ngs-java.patch")
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
|