Andreas Wacknitz
2023-03-25 45add763b8379691e958a6d5571240e5e210bd74
commit | author | age
cb1d64 1 #
R 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
5 #
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
9 #
10
11 #
12 # Copyright 2017, Longrin Wischnewski.
b0834e 13 # Copyright 2019, Michal Nowak
01bc4b 14 # Copyright 2021, Nona Hansel
105e51 15 # Copyright 2022 Niklas Poslovski
cb1d64 16 #
de4e95 17
8cbcc0 18 BUILD_BITS= 64
AW 19 BUILD_STYLE= cmake
cb1d64 20 include ../../../make-rules/shared-macros.mk
R 21
c3a1d7 22 COMPONENT_NAME=        fish
45add7 23 COMPONENT_VERSION=    3.6.1
8cbcc0 24 COMPONENT_SUMMARY=    Fish is a smart and user-friendly command line shell
cb1d64 25 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c3a1d7 26 COMPONENT_PROJECT_URL=    https://fishshell.com
01bc4b 27 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
45add7 28 COMPONENT_ARCHIVE_HASH=    sha256:55402bb47ca6739d8aba25e41780905b5ce1bce0a5e0dd17dca908b5bc0b49b2
64f4fd 29 COMPONENT_ARCHIVE_URL=    https://github.com/fish-shell/fish-shell/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
c3a1d7 30 COMPONENT_FMRI=        shell/fish
64f4fd 31 COMPONENT_CLASSIFICATION=    System/Shells
8cbcc0 32 COMPONENT_LICENSE=    GPLv2
cb1d64 33
0469b0 34 include $(WS_MAKE_RULES)/common.mk
8cbcc0 35 PATH= $(PATH.gnu)
cb1d64 36
c3a1d7 37 CMAKE_OPTIONS += -DCMAKE_INSTALL_SYSCONFDIR="/etc"
8cbcc0 38 CMAKE_OPTIONS += -DSYS_PCRE2_INCLUDE_DIR=/usr/include/pcre
AW 39 CMAKE_OPTIONS += -DFISH_USE_SYSTEM_PCRE2=ON
40 CMAKE_OPTIONS += -DWITH_GETTEXT=ON
cb1d64 41
64f4fd 42 COMPONENT_TEST_CMD= gmake
AW 43 COMPONENT_TEST_TARGETS= test
8cbcc0 44 # Just keep the failing test results, even it doesn't make the results reproducable:
AW 45 COMPONENT_TEST_TRANSFORMS += \
46     '-e "s/[0-9]*\.[0-9]* sec//" ' \
47     '-e "s/[0-9]*\/[0-9]*//" ' \
48     '-n' \
49     '-e "/Failed/p"'
c3a1d7 50
8cbcc0 51 # Manually added dependencies (for tests)
AW 52 PYTHON_REQUIRED_PACKAGES += library/python/pexpect
9bb44e 53
c3a1d7 54 # Auto-generated dependencies
f5010f 55 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
8cbcc0 56 REQUIRED_PACKAGES += library/pcre2
01bc4b 57 REQUIRED_PACKAGES += system/library
c3a1d7 58 REQUIRED_PACKAGES += system/library/math