Bug 242352 - devel/ruby-gems: Add framework to handle man pages installed by gem
Summary: devel/ruby-gems: Add framework to handle man pages installed by gem
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on: 241554
Blocks:
  Show dependency treegraph
 
Reported: 2019-12-02 08:08 UTC by Yasuhiro Kimura
Modified: 2023-07-12 06:07 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments
Patch file (3.79 KB, patch)
2019-12-02 08:08 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.