asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

Is it possible to enable doc installation?

Open pootsbook opened this issue 10 years ago • 4 comments

This line would seem to suggest that --disable-install-doc is hard coded:

configure_options="$configure_options --enable-shared --disable-install-doc"

Is there a way to allow documentation to be installed?

Use-case: people (like me) who use ri extensively.

pootsbook avatar Oct 25 '16 14:10 pootsbook

@pootsbook Set the env var RUBY_EXTRA_CONFIGURE_OPTIONS when installing rubies.

RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --disable-install-doc" asdf install ruby 3.2.1

Closing the issue. Please let me know if there's trouble running that.

HashNuke avatar Oct 26 '16 08:10 HashNuke

@HashNuke running that installs Ruby fine, but it still disables the installation of docs. I think what I am looking for is a way to remove the option --disable-install-doc from the configure_options var but it is hard-coded.

The only way to do so would be to supply my own set of options via RUBY_CONFIGURE_OPTIONS, but going down that path loses all the os_configure_options which I would like to keep.

Do you think you would accept a PR that would either:

  1. add a flag to enable and disable --disable-install-doc OR
  2. even remove this as a default, and then let people know if they don’t want docs that they can specify RUBY_EXTRA_CONFIGURE_OPTIONS="--disable-install-doc"? (This would mirror the behaviour of RubyGems, which installs ri and rdoc unless told not to via --no-ri --no-rdoc).

pootsbook avatar Nov 23 '16 10:11 pootsbook

@HashNuke meant --enable-install-doc in place of --disable-install-doc when you said

RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --disable-install-doc" asdf install ruby 3.2.1

right? I agree with you @pootsbook I think there are still many ri users out there. And personally I almost gave up before I found this issue.

webkay avatar Dec 11 '17 05:12 webkay

Agree. Good idea to enable it by default.

On Mon, 11 Dec 2017 at 11:05 AM, webkay [email protected] wrote:

@HashNuke https://github.com/hashnuke meant --enable-install-doc in place of --disable-install-doc when you say

RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --disable-install-doc" asdf install ruby 3.2.1

right? I agree with you @pootsbook https://github.com/pootsbook I think there are still many ri users out there. And personally I almost gave up before I found this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/asdf-vm/asdf-ruby/issues/19#issuecomment-350626756, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFIJbmk8GCpcoXg1IqUHaddKVUSdsrOks5s_L8SgaJpZM4KgCe0 .

HashNuke avatar Dec 11 '17 05:12 HashNuke