kallisto: simplify (#44862)

This commit is contained in:
Harmen Stoppels 2024-06-26 14:27:12 +02:00 committed by GitHub
parent ded3fa50a3
commit 867a813328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,19 +56,9 @@ def autoreconf(self):
# configure script.
# See https://github.com/spack/spack/issues/15274 and
# https://github.com/pachterlab/kallisto/issues/253
@property
def std_cmake_args(self):
"""Call the original std_cmake_args and then filter the verbose
setting.
"""
a = super().std_cmake_args
if self.spec.satisfies("@0.44.0:"):
args = [i for i in a if i != "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"]
if self.spec.satisfies("@0.46.2:"):
args.append(self.define_from_variant("USE_HDF5", "hdf5"))
if self.spec.satisifes("@0.50.1:"):
args.append(self.define_from_variant("USE_BAM", "bam"))
else:
args = a
return args
def cmake_args(self):
return [
self.define("CMAKE_VERBOSE_MAKEFILE", False),
self.define_from_variant("USE_HDF5", "hdf5"),
self.define_from_variant("USE_BAM", "bam"),
]