dev-util/ots: fix patch

Closes: https://bugs.gentoo.org/835882
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-03-24 14:02:43 +01:00
parent 93dc67e07e
commit df08d22240
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
--- a/meson.build
+++ b/meson.build
@@ -244,6 +244,7 @@ if cxx.has_header('sys/time.h')
# https://mesonbuild.com/Dependencies.html#gtest-and-gmock
+if get_option('tests')
gtest = dependency('gtest', main : true, fallback : ['gtest', 'gtest_main_dep'])
cff_charstring = executable('cff_charstring',
@@ -283,3 +283,4 @@ test('test_fuzzed_fonts',
suite: 'fuzzing',
)
endforeach
+endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
+option('tests', type : 'boolean', value : false, description : 'Enable tests')
option('graphite', type : 'boolean', value : true, description : 'Sanitize Graphite tables')
option('fuzzer_ldflags', type: 'string', description : 'Extra LDFLAGS used during linking of fuzzing binaries')

View File

@@ -32,7 +32,7 @@ DOCS=(
docs/{DesignDoc,HowToFix,HowToTest}.md
)
PATCHES=( "${FILESDIR}/meson-gtest.diff" )
PATCHES=( "${FILESDIR}/${P}-meson-gtest.diff" )
src_configure() {
local emesonargs=(