ports/misc/py-cppman/Makefile
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

42 lines
1.2 KiB
Makefile

PORTNAME= cppman
PORTVERSION= 0.5.9
CATEGORIES= misc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= tagattie@FreeBSD.org
COMMENT= C++ 98/11/14/17/20 manual pages on the terminal
WWW= https://github.com/aitjcize/cppman
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.13.3:www/py-beautifulsoup@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}html5lib>=1.1:www/py-html5lib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}lxml5>=5.3.2:devel/py-lxml5@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.17.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}soupsieve>=2.6:www/py-soupsieve@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.13.1:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webencodings>=0.5.1:converters/py-webencodings@${PY_FLAVOR} \
vim:editors/vim \
bash:shells/bash
USES= python shebangfix
USE_PYTHON= autoplist concurrent distutils
SHEBANG_FILES= bin/cppman \
cppman/lib/pager.sh
NO_ARCH= yes
PORTDOCS= AUTHORS ChangeLog README.rst
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>