-
Notifications
You must be signed in to change notification settings - Fork 67
Allow setting --docdir #49
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