mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+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:
parent
b120680748
commit
b5dfacfbeb
2 changed files with 61 additions and 0 deletions
12
projects/fishshell.com/ncurses_cmake.diff
Normal file
12
projects/fishshell.com/ncurses_cmake.diff
Normal 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()
|
49
projects/fishshell.com/package.yml
Normal file
49
projects/fishshell.com/package.yml
Normal 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
|
Loading…
Reference in a new issue