https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241554

--- Comment #11 from Yasuhiro KIMURA <y...@utahime.org> ---
I'd like to revise my proposal as following.

lang/ruby26:
* Don't install ${PREFIX}bin/{irb,rdoc,ri}.
* Don't install man pages of irb, rdoc and bundler.

devel/ruby-gems:
* Create ${PREFIX}/lib/ruby/gems/man/man[1-9] directories.
* Add ${PREFIX}/lib/ruby/gems/man to man path.

each rubygem ports:
* Set GEM_MANPAGE_SEC[1-9] if they install man page. The value is list of path
(relative to ${PREFIX}) to each man pages.

Mk/User/gem.mk:
* If GEM_MANPAGE_SEC[1-9] is not empty, create symbolic links from
${PREFIX}/lib/ruby/gems/man/man[1-9] to each man pages at staging phase.

devel/rubygem-irb:
* Install ${PREFIX}/bin/irb.
* Install irb(1) man mage.
* Set GEM_MANPAGE_SEC1.

devel/rubygem-rdoc:
* Install ${PREFIX}/bin/{rdoc,ri}.
* Install ri(1) man page.
* Set GEM_MANPAGE_SEC1.

sysutils/rubygem-bundler:
* Install man pages.
* Set GEM_MANPAGE_SEC1 and GEM_MANPAGE_SEC5.

The background of my proposal is:

1. As is written in comment #9, adding directories where man pages of each
rubygem ports are installed to man path doesn't work as is expected. So
symbolic links have to be created anyway.
2. Maybe making man directories for rubygem and creating symbolic links under
them is better than creating them under ${PREFIX}/man/man[1-9].
3. Only each rubygem port knows where man pages are installed. So tell it by
setting GEM_MANPAGE_SEC[1-9]. And gem.mk do the task of creating symbolic
links.

Any suggestions and/or comments are welcome.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-ruby@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ruby
To unsubscribe, send any mail to "freebsd-ruby-unsubscr...@freebsd.org"

Reply via email to