diff options
Diffstat (limited to '')
-rw-r--r-- | devel/stc/files/patch-meson.build | 47 | ||||
-rw-r--r-- | devel/stc/files/patch-meson__options.txt | 29 |
2 files changed, 76 insertions, 0 deletions
diff --git a/devel/stc/files/patch-meson.build b/devel/stc/files/patch-meson.build new file mode 100644 index 000000000000..3a696d2778d7 --- /dev/null +++ b/devel/stc/files/patch-meson.build @@ -0,0 +1,47 @@ +--- meson.build.orig 2025-01-12 20:41:47 UTC ++++ meson.build +@@ -144,19 +144,33 @@ root = not meson.is_subproject() + endif + + root = not meson.is_subproject() +-subdir('tests') +-subdir('examples') + + if root +- datadir = get_option('datadir') +- docdir = get_option('docdir') +- if docdir == '' +- docdir = datadir / 'doc' / meson.project_name() ++ if get_option('docs').enabled() ++ docsdir = get_option('docsdir') ++ ++ install_data('README.md', install_dir: docsdir) ++ ++ install_subdir( ++ 'docs', ++ install_dir: docsdir, ++ strip_directory: true ++ ) + endif + +- install_subdir( +- 'docs', +- install_dir: docdir, +- strip_directory: true, +- ) ++ if get_option('examples').enabled() ++ examplesdir = get_option('examplesdir') ++ ++ subdir('examples') ++ ++ install_subdir( ++ 'examples', ++ install_dir: examplesdir, ++ strip_directory: true ++ ) ++ endif ++ ++ if get_option('tests').enabled() ++ subdir('tests') ++ endif + endif diff --git a/devel/stc/files/patch-meson__options.txt b/devel/stc/files/patch-meson__options.txt new file mode 100644 index 000000000000..50a03aeb95a1 --- /dev/null +++ b/devel/stc/files/patch-meson__options.txt @@ -0,0 +1,29 @@ +--- meson_options.txt.orig 2025-01-14 15:37:45 UTC ++++ meson_options.txt +@@ -5,10 +5,10 @@ option( + description: 'Build checkscoped tool for c_guard* blocks', + ) + option( +- 'tests', ++ 'docs', + type: 'feature', + value: 'auto', +- description: 'Build tests and ctest', ++ description: 'Build documentation', + ) + option( + 'examples', +@@ -16,5 +16,12 @@ option( + value: 'auto', + description: 'Build examples', + ) ++option( ++ 'tests', ++ type: 'feature', ++ value: 'auto', ++ description: 'Build tests and ctest', ++) + +-option('docdir', type: 'string', description: 'documentation directory') ++option('docsdir', type: 'string', description: 'documentation directory') ++option('examplesdir', type: 'string', description: 'examples directory') |