From b55bde09b21a27008e0ba4ab0638b3cbc8225c9b Mon Sep 17 00:00:00 2001 From: Hiroki Tagato Date: Tue, 5 Aug 2025 10:54:42 +0900 Subject: 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) --- misc/py-cppman/files/patch-setup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 misc/py-cppman/files/patch-setup.py (limited to 'misc/py-cppman/files') diff --git a/misc/py-cppman/files/patch-setup.py b/misc/py-cppman/files/patch-setup.py new file mode 100644 index 000000000000..23eb8489cf39 --- /dev/null +++ b/misc/py-cppman/files/patch-setup.py @@ -0,0 +1,15 @@ +--- 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']) + ] + -- cgit v1.2.3