freebayes: Fix running the testsuite and add pkgconfig (#26440)
freebayes needs the tools of the vcflib it includes to run tests
This commit is contained in:
parent
225927c1c3
commit
3fff338844
@ -23,6 +23,7 @@ class Freebayes(MesonPackage):
|
||||
|
||||
# Deps for @1.3.5 and beyond
|
||||
depends_on('ninja', type='build', when='@1.3.5:')
|
||||
depends_on('pkgconfig', type='build', when='@1.3.5:')
|
||||
depends_on('htslib', when='@1.3.5:')
|
||||
depends_on('zlib', when='@1.3.5:')
|
||||
depends_on('xz', when='@1.3.5:')
|
||||
@ -56,3 +57,22 @@ def build(self, spec, prefix):
|
||||
@when('@:1.1.0')
|
||||
def install(self, spec, prefix):
|
||||
make('install')
|
||||
|
||||
@property
|
||||
def vcflib_builddir(self):
|
||||
return join_path(self.build_directory, 'vcflib')
|
||||
|
||||
@when('@1.3.4:')
|
||||
def setup_build_environment(self, env):
|
||||
if self.run_tests:
|
||||
env.prepend_path('PATH', self.vcflib_builddir)
|
||||
env.prepend_path('PATH', self.build_directory)
|
||||
|
||||
@when('@1.3.4:')
|
||||
def check(self):
|
||||
mkdir(self.vcflib_builddir)
|
||||
with working_dir(self.vcflib_builddir):
|
||||
cmake('../../vcflib')
|
||||
make()
|
||||
with working_dir(self.build_directory):
|
||||
ninja('test')
|
||||
|
Loading…
Reference in New Issue
Block a user