git: 8e74955b2dc7 - main - sysutils/rubygem-bundler: Create symlinks for manpages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Jul 2023 06:04:14 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=8e74955b2dc746dee8e2d48db8b3bd11e89d6e50 commit 8e74955b2dc746dee8e2d48db8b3bd11e89d6e50 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2023-06-28 01:23:55 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2023-07-12 06:02:24 +0000 sysutils/rubygem-bundler: Create symlinks for manpages Manpages of bundler are installed in ${PREFIX}/${GEMS_BASE_DIR}/gems/${PORTNAME}-${PORTVERSION}/lib/bundler/man but it isn't included in the default value of MANPATH. So create symlinks to the manpages in ${PREFIX}/man/man{1,5} so man(1) can find them. While here, pet portclippy. PR: 272258 Approved by: maintainer timeout --- sysutils/rubygem-bundler/Makefile | 42 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/sysutils/rubygem-bundler/Makefile b/sysutils/rubygem-bundler/Makefile index 4150fc9a1884..bb4a64c7db18 100644 --- a/sysutils/rubygem-bundler/Makefile +++ b/sysutils/rubygem-bundler/Makefile @@ -1,5 +1,6 @@ PORTNAME= bundler PORTVERSION= 2.4.15 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= sysutils rubygems MASTER_SITES= RG @@ -13,11 +14,48 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= cpe gem +CONFLICTS_INSTALL= go-tools # bin/bundle + NO_ARCH= yes PLIST_FILES= bin/bundle \ - bin/bundler + bin/bundler \ + man/man1/bundle-add.1.gz \ + man/man1/bundle-binstubs.1.gz \ + man/man1/bundle-cache.1.gz \ + man/man1/bundle-check.1.gz \ + man/man1/bundle-clean.1.gz \ + man/man1/bundle-config.1.gz \ + man/man1/bundle-console.1.gz \ + man/man1/bundle-doctor.1.gz \ + man/man1/bundle-exec.1.gz \ + man/man1/bundle-gem.1.gz \ + man/man1/bundle-help.1.gz \ + man/man1/bundle-info.1.gz \ + man/man1/bundle-init.1.gz \ + man/man1/bundle-inject.1.gz \ + man/man1/bundle-install.1.gz \ + man/man1/bundle-list.1.gz \ + man/man1/bundle-lock.1.gz \ + man/man1/bundle-open.1.gz \ + man/man1/bundle-outdated.1.gz \ + man/man1/bundle-platform.1.gz \ + man/man1/bundle-plugin.1.gz \ + man/man1/bundle-pristine.1.gz \ + man/man1/bundle-remove.1.gz \ + man/man1/bundle-show.1.gz \ + man/man1/bundle-update.1.gz \ + man/man1/bundle-version.1.gz \ + man/man1/bundle-viz.1.gz \ + man/man1/bundle.1.gz \ + man/man5/gemfile.5.gz -CONFLICTS_INSTALL= go-tools # bin/bundle +post-install: +.for i in 1 5 + for f in ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/gems/${PORTNAME}-${PORTVERSION}/lib/bundler/man/*.${i}; do \ + ${GZIP_CMD} $$f; \ + ${RLN} $${f}.gz ${STAGEDIR}${PREFIX}/man/man${i}/$$(basename $$f).gz; \ + done +.endfor .include <bsd.port.mk>