Skip to content

Commit

Permalink
appstream: Disable docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Jan 31, 2025
1 parent 1e0e567 commit 3c6d0b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion org.flatpak.Builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"name": "appstream",
"buildsystem": "meson",
"config-opts": [
"-Ddocs=false",
"-Dapidocs=false",
"-Dgir=true",
"-Dcompose=true",
Expand All @@ -60,7 +61,8 @@
"patches/appstream-0002-compose-default-propagate-custom.patch",
"patches/appstream-0003-asc-hint-tags-silence-some-vague-validation-errors.patch",
"patches/appstream-0004-compose-seperate-file-read-error.patch",
"patches/appstream-0005-no-tests.patch"
"patches/appstream-0005-no-tests.patch",
"patches/appstream-0006-no-docs.patch"
]
}
]
Expand Down
15 changes: 15 additions & 0 deletions patches/appstream-0006-no-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/meson.build b/meson.build
index 60d32dca..eb1f6e4e 100644
--- a/meson.build
+++ b/meson.build
@@ -230,7 +230,9 @@ subdir('tools/')
subdir('po/')
subdir('data/')
subdir('contrib/')
-subdir('docs/')
+if get_option('docs')
+ subdir('docs/')
+endif
if get_option('tests')
subdir('tests/')
endif

0 comments on commit 3c6d0b2

Please sign in to comment.