ports/shells/fish/Makefile
Andrew Fyfe b77636e7a4 shells/fish: update to 3.7.1 and fix Makefile
- Update to fish 3.7.1.
- Remove zfs feature check patch; included upstream.
- Remove post install step to strip binaries; binaries are stripped
  durting install.
- Add post install steps to remove documentation and/or manual pages if
  DOCS and/or MANPAGES are not enabled. Be default fish always installs
  documentation and manual pages.

PR:		278468
Approved by:	asomers (maintainer)
2024-05-22 12:31:28 -06:00

65 lines
1.7 KiB
Makefile

PORTNAME= fish
DISTVERSION= 3.7.1
CATEGORIES= shells
MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/
MAINTAINER= asomers@FreeBSD.org
COMMENT= User friendly command line shell
WWW= https://fishshell.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpcre2-32.so:devel/pcre2
# The python dependency is only needed by shebangfix. At runtime python is
# only needed by some optional scripts that aren't in PATH.
USES= cmake compiler:c++11-lang cpe localbase ncurses python:env \
shebangfix tar:xz
CPE_VENDOR= fishshell
SHEBANG_FILES= share/tools/*.py share/tools/web_config/webconfig.py
CONFLICTS_INSTALL= comms/mlan3
MANDIRS= ${DATADIR}/man
PORTDOCS= *
OPTIONS_DEFINE= DOCS MANPAGES NLS
OPTIONS_DEFAULT= MANPAGES NLS
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR}
DOCS_CMAKE_BOOL= BUILD_DOCS
DOCS_VARS= MAKE_JOBS_UNSAFE=yes
NLS_USES= gettext
NLS_CMAKE_BOOL= WITH_GETTEXT
.include <bsd.port.pre.mk>
.if ${NCURSESBASE:M${LOCALBASE}}
CMAKE_ARGS+= -DCURSES_NEED_NCURSES=TRUE
.endif
post-install:
@${MV} ${STAGEDIR}${ETCDIR}/config.fish ${STAGEDIR}${ETCDIR}/config.fish.sample
post-install-DOCS-on:
@${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo
post-install-DOCS-off:
# required because fish always installs documentation
@${ECHO_MSG} "====> DOCS disable; removing documentation"
@${RM} -r ${STAGEDIR}${DOCSDIR}
post-install-MANPAGES-off:
# required because fish always installs manual pages
@${ECHO_MSG} "====> MANPAGES disable; removing manual pages"
for dir in ${MANDIRS:S/^/${STAGEDIR}/} ; do \
${FIND} $$dir -type f -delete ; \
done
@${RM} -r ${STAGEDIR}${DATADIR}/man
.include <bsd.port.post.mk>