Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install location of Documentation #159

Open
rbtylee opened this issue Feb 14, 2024 · 0 comments
Open

Install location of Documentation #159

rbtylee opened this issue Feb 14, 2024 · 0 comments

Comments

@rbtylee
Copy link

rbtylee commented Feb 14, 2024

While packaging gtkdialog for Bodhi Linux I noticed the install location for the examples and reference documentation is datadir/doc. Since installing from a deb file is very similar to compiling by

meson --prefix=/usr -Ddocs=true build
ninja -C build
sudo ninja -C build install 

This ends up with

gtkdialog/examples/* installed to /usr/share/doc/examples/*
gtkdialog/doc/reference/* installed to /usr/share/doc/reference/*

Examples and References should be installed to /usr/share/doc/gtkdialog

A trivial change to the meson build files fixes this:

+++ b/meson.build
@@ -26,7 +26,7 @@ endif
 if get_option('docs')
        subdir('doc')
        install_subdir(
-       'examples', install_dir : join_paths(get_option('datadir'), 'doc')
+       'examples', install_dir : join_paths(get_option('datadir'), 'doc', 'gtkdialog')
        )
 endif

and

+++ b/doc/meson.build
@@ -1,3 +1,3 @@
 install_subdir(
-       'reference', install_dir : join_paths(get_option('datadir'), 'doc')
+       'reference', install_dir : join_paths(get_option('datadir'), 'doc', 'gtkdialog')
        )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant