blob: d1a526b3e0783e9db9638cfdc8a684122f7d1f68 (
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
|
# 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.3", tags="3.0.3")
version("3.0.0", tags="3.0.0")
depends_on("openjdk")
depends_on("flex@2.6:")
depends_on("libxml2")
depends_on("ncbi-vdb")
# 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
|