1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/shells/fish/Makefile
Lewis Cook 93946d8aaa shells/fish: Update to 3.2.2
Changes:	https://github.com/fish-shell/fish-shell/releases/tag/3.2.2
PR:		255345
Approved by:	asomers (maintainer)
MFH:		2021Q2
2021-04-23 16:07:19 +01:00

63 lines
1.5 KiB
Makefile

# Created by: Kai Wang <kaiw27@gmail.com>
PORTNAME= fish
DISTVERSION= 3.2.2
CATEGORIES= shells
MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/
MAINTAINER= asomers@FreeBSD.org
COMMENT= User friendly command line shell
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:3.6+,env \
shebangfix tar:xz
CPE_VENDOR= fishshell
SHEBANG_FILES= share/tools/*.py share/tools/web_config/webconfig.py
# sphinx stuff seems to be racy
MAKE_JOBS_UNSAFE= yes
CONFLICTS_INSTALL= comms/mlan3
MANDIRS= ${DATADIR}/man/man1
PORTDOCS= *
OPTIONS_DEFINE= DOCS MANPAGES NLS
OPTIONS_DEFAULT= DOCS MANPAGES NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CMAKE_BOOL= WITH_GETTEXT
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
CMAKE_ARGS+= -DBUILD_DOCS=TRUE
BUILD_DEPENDS+= sphinx-build:textproc/py-sphinx
.endif
.if ${NCURSESBASE:M${LOCALBASE}}
CMAKE_ARGS+= -DCURSES_NEED_NCURSES=TRUE
.endif
post-install:
.for i in fish fish_indent fish_key_reader
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
post-stage-DOCS-on:
@${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo
post-stage-MANPAGES-off:
@${RM} -rf ${STAGEDIR}${MANPREFIX}/man/man1
@${RM} -rf ${STAGEDIR}${DATADIR}/man
.include <bsd.port.post.mk>