How to modify formula to link a man page #1139
Replies: 2 comments 9 replies
-
The problem is that the formula's If you haven't yet, please read https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request before opening your PR. |
Beta Was this translation helpful? Give feedback.
-
Looks like I could just copy/modify this line from https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/itstool.rb#L34:
and apply this to the streamlink formula. Does that sound like the right approach? And that brew-magic I'm surmising exists will detect it in the Cellar's share/man and symlink it up into /opt/homebrew/share? |
Beta Was this translation helpful? Give feedback.
-
I was looking for the docs for streamlink, so the first thing I tried was
man streamlink
, but no results were found. I tried other formulae, and their man pages worked (and I can see them in/opt/homebrew/share/man
).If I type
brew list streamlink
, I get:/opt/homebrew/Cellar/streamlink/2.1.1/bin/streamlink
/opt/homebrew/Cellar/streamlink/2.1.1/libexec/bin/ (13 files)
/opt/homebrew/Cellar/streamlink/2.1.1/libexec/lib/ (1321 files)
/opt/homebrew/Cellar/streamlink/2.1.1/libexec/share/man/man1/streamlink.1
/opt/homebrew/Cellar/streamlink/2.1.1/libexec/pyvenv.cfg
So, there actually is a man (man1) page. Why isn't it installed/linked properly? I can't see anything in ANY formulae that has a specific step to link a man page.
How does that "magic" occur, and how do I get it to happen for formulae like streamlink that aren't doing it?
Beta Was this translation helpful? Give feedback.
All reactions