+fishshell.com

-DCURSES_INCLUDE_PATH


do that better


it thinks it wants pkg-config, i guess.


whyyyyyyyyyyyyyyy


keep make


needs  these at runtime


annotate diff
This commit is contained in:
Jacob Heider 2022-12-31 16:55:09 -05:00 committed by Jacob Heider
parent b120680748
commit b5dfacfbeb
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --color=auto -ru a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
--- a/cmake/ConfigureChecks.cmake 2022-12-30 19:37:05
+++ b/cmake/ConfigureChecks.cmake 2022-12-30 19:37:49
@@ -46,7 +46,7 @@
# if not symlinked or passed in as a manual define.
message("Falling back to pkg-config for (n)curses detection")
include(FindPkgConfig)
- pkg_search_module(CURSES REQUIRED ncurses curses)
+ pkg_search_module(CURSES REQUIRED ncursesw ncurses curses)
set(CURSES_CURSES_LIBRARY ${CURSES_LIBRARIES})
set(CURSES_LIBRARY ${CURSES_LIBRARIES})
endif()

View file

@ -0,0 +1,49 @@
distributable:
url: https://github.com/fish-shell/fish-shell/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: fish-shell/fish-shell/tags
dependencies:
gnu.org/gettext: '*'
invisible-island.net/ncurses: '>=6.0'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: '>=3.5'
freedesktop.org/pkg-config: '*'
gnu.org/patch: '*'
script: |
# cmake looks for modules named (ncurses, curses);
# this prepends `ncursesw` to the search set to
# properly locate our package.
patch -p1 <props/ncurses_cmake.diff
mkdir build
cd build
cmake .. $ARGS
make install
env:
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
- -DCURSES_INCLUDE_PATH="{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw"
test:
script:
test "$(fish $FIXTURE)" = "variable1variable2variable3variable4variable5variable6variable7variable8variable9variable10"
fixture: |
#!/usr/bin/env fish
set -lx V variable
for x in (seq 1 10)
echo -n $V$x
end
provides:
- bin/fish
- bin/fish_indent
- bin/fish_key_reader