ports/misc/py-cppman/files/patch-setup.py
Hiroki Tagato b55bde09b2 misc/py-cppman: add port: C++ 98/11/14/17/20 manual pages on the terminal
Cppman is a tool that provides C++ manual pages on the terminal. It
acts as a convenient interface to view formatted C++ documentation
directly from cplusplus.com and cppreference.com, allowing developers
to access relevant information quickly without switching to a web
browser.

Features:
- Supports two backends (switch it with cppman -s):
  cplusplus.com
  cppreference.com
- Syntax highlighting support for sections and example source code.
- Usage/Interface similar to the 'man' command
- Hyperlink between manpages (only available when pager=vim)
  - Press Ctrl-] when cursor is on keyword to go forward and Ctrl-T to
    go backward.
  - You can also double-click on keyword to go forward and right-click
    to go backward.
- Frequently update to support cplusplus.com.

WWW: https://github.com/aitjcize/cppman

Co-authored-by: freebsd@fron.io

PR:		284157
Reported by:	freebsd@fron.io (initial version)
2025-08-05 10:57:27 +09:00

16 lines
650 B
Python

--- setup.py.orig 2025-07-22 07:20:26 UTC
+++ setup.py
@@ -9,10 +9,9 @@ _data_files = [
]
_data_files = [
- ('share/doc/cppman', ['README.rst', 'AUTHORS', 'COPYING', 'ChangeLog']),
('share/man/man1', ['misc/cppman.1']),
- ('share/bash-completion/completions', ['misc/completions/cppman.bash']),
- ('share/zsh/vendor-completions/', ['misc/completions/zsh/_cppman']),
+ ('etc/bash_completion.d', ['misc/completions/cppman.bash']),
+ ('share/zsh/site-functions/', ['misc/completions/zsh/_cppman']),
('share/fish/vendor_completions.d/', ['misc/completions/fish/cppman.fish'])
]