-
Notifications
You must be signed in to change notification settings - Fork 68
Allow setting --docdir #49
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
Conversation
Just to inform that currently "rust Not sure but I think that this PR is intended to handle the docdir option used in rust make install |
I am under the impression for |
Thanks for the PR. As written, this is hard-coded to work with the A simple solution would be to omit the "/rust" directory when doing the rewriting here, with the consequence that changing |
The "/rust" directory was included in this as in Slackware it would be named "$PRGNAM-$VERSION" where $PRGNAM = rustc to match the source tarballs at the main rust site. I think ideally a more complete solution will have to be found, but I am unfortunately not in that great of a position to test the combined installed on the website or the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't just copy the string from mandir.
valopt_nosave mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
+valopt_nosave docdir "${CFG_PREFIX}/share/doc/rust" "install man pages in PATH"
Should be fixed. |
Now any files installed into /share/doc/.*/ will be installed in the path specified by --docdir. This is based on the work by orbea in rust-lang#49.
Now any files installed into /share/doc/.*/ will be installed in the path specified by --docdir. This is based on the work by orbea in rust-lang#49.
Closing in favor of #54. Thanks <3 |
Thanks! |
This will allow setting
--docdir
during configure, this is useful because not all linux distributions install documentation to/usr/share/doc
. For example in Slackware documentation is installed to/usr/doc/$PRGNAM-$VERSION
and/usr/share/doc
is a symlink to/usr/doc
.To use this
./configure --docdir=/usr/doc/$PRGNAM-$VERSION
can be used.Here is the PR for the main rust repo. rust-lang/rust#36360