Bug 242352

Summary: devel/ruby-gems: Add framework to handle man pages installed by gem
Product: Ports & Packages Reporter: Yasuhiro Kimura <yasu>
Component: Individual Port(s)Assignee: freebsd-ruby (Nobody) <ruby>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: meta, yasu
Priority: --- Flags: bugzilla: maintainer-feedback? (ruby)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 241554    
Bug Blocks:    
Attachments:
Description Flags
Patch file none

Description Yasuhiro Kimura freebsd_committer freebsd_triage 2019-12-02 08:08:32 UTC
Created attachment 209589 [details]
Patch file

* When devel/ruby-gems is installed
  - Make directories for man pages ${PREFIX}/${GEMS_MAN_DIR}/man[1-9].
  - Add above directory to man path.
* If rubygem ports installs manuals, set their path (relative to
  ${PREFIX}) to GEM_MANUALS_SEC[1-9] in Makefile.
* If GEM_MANUALS_SEC[1-9] isn't empty, Mk/Use/gem.mk do following jobs
  - Create relative symbolic links from
    ${PREFIX}/${GEMS_MAN_DIR}/man[1-9] to real path to each man pages.
  - Add symbolic links to plist.

This patch is based on my proposal in bug #241555, comment #11.
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2020-03-13 09:59:23 UTC
Correctly, the patched based on bug #241554, comment #11.
Comment 2 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-07-12 06:07:06 UTC
With commit of ports 8e74955b2dc7 man(1) can find manpages of irb, ri and bunder properly now.