Changeset View
Changeset View
Standalone View
Standalone View
shells/fish/Makefile
# Created by: Kai Wang <kaiw27@gmail.com> | # Created by: Kai Wang <kaiw27@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= fish | PORTNAME= fish | ||||
PORTVERSION= 3.1.2 | DISTVERSION= 3.2.1 | ||||
CATEGORIES= shells | CATEGORIES= shells | ||||
MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/ | MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/ | ||||
MAINTAINER= asomers@FreeBSD.org | MAINTAINER= asomers@FreeBSD.org | ||||
COMMENT= User friendly command line shell | COMMENT= User friendly command line shell | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | |||||
LIB_DEPENDS+= libpcre2-32.so:devel/pcre2 | LIB_DEPENDS= libpcre2-32.so:devel/pcre2 | ||||
# The python dependency is only needed by shebangfix. At runtime python is | # The python dependency is only needed by shebangfix. At runtime python is | ||||
# only needed by some optional scripts that aren't in PATH. | # only needed by some optional scripts that aren't in PATH. | ||||
USES= cmake cpe ncurses python:3.4+,build \ | USES= cmake compiler:c++11-lang cpe localbase ncurses python:3.6+,env \ | ||||
localbase compiler:c++11-lang shebangfix | shebangfix tar:xz | ||||
CPE_VENDOR= fishshell | |||||
SHEBANG_FILES= share/tools/*.py share/tools/web_config/webconfig.py | 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 | CONFLICTS_INSTALL= comms/mlan3 | ||||
CPE_VENDOR= fishshell | |||||
MANDIRS= ${DATADIR}/man/man1 | MANDIRS= ${DATADIR}/man/man1 | ||||
OPTIONS_DEFAULT= MANPAGES DOCS NLS | PORTDOCS= * | ||||
OPTIONS_DEFINE= MANPAGES DOCS NLS | |||||
OPTIONS_DEFINE= DOCS MANPAGES NLS | |||||
OPTIONS_DEFAULT= DOCS MANPAGES NLS | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
MAKE_JOBS_UNSAFE=yes # sphinx stuff seems to be racy | |||||
DOCS_BUILD_DEPENDS+= sphinx-build:textproc/py-sphinx | |||||
MANPAGES_BUILD_DEPENDS+= sphinx-build:textproc/py-sphinx | |||||
NLS_USES= gettext | NLS_USES= gettext | ||||
NLS_CMAKE_BOOL= WITH_GETTEXT | NLS_CMAKE_BOOL= WITH_GETTEXT | ||||
PORTDOCS= * | |||||
.include <bsd.port.pre.mk> | .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}} | .if ${NCURSESBASE:M${LOCALBASE}} | ||||
CMAKE_ARGS+= -DCURSES_NEED_NCURSES=TRUE | CMAKE_ARGS+= -DCURSES_NEED_NCURSES=TRUE | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
.for i in fish fish_indent fish_key_reader | .for i in fish fish_indent fish_key_reader | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i} | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i} | ||||
Show All 10 Lines |