mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
ncurses needs less hacks now
This commit is contained in:
parent
221daf24f4
commit
e1aa05cb68
|
@ -38,7 +38,6 @@ build:
|
|||
ARGS:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
- -DCURSES_INCLUDE_PATH="{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw"
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
|
|
|
@ -20,10 +20,9 @@ build:
|
|||
# Add -v to allow testing resultant binary
|
||||
patch -p1 < props/version.patch
|
||||
make
|
||||
mkdir "{{prefix}}"/bin
|
||||
mkdir -p "{{prefix}}"/bin
|
||||
mv sl "{{prefix}}"/bin
|
||||
env:
|
||||
CPATH: ${{ deps.invisible-island.net/ncurses.prefix }}/include/ncursesw:$CPATH
|
||||
TEA_VERSION: ${{ version }}
|
||||
|
||||
test:
|
||||
|
|
|
@ -23,12 +23,12 @@ runtime:
|
|||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: '*'
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
gnu.org/autoconf: '>=2.64'
|
||||
gnu.org/automake: '>=1.12'
|
||||
gnu.org/libtool: '*'
|
||||
freedesktop.org/pkg-config: '^0.29'
|
||||
freedesktop.org/pkg-config: ~0.29
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make -j {{hw.concurrency}}
|
||||
|
@ -42,15 +42,13 @@ build:
|
|||
rm $x.bak
|
||||
done
|
||||
|
||||
sed -i.bak 's|{{tea.prefix}}|%p/../|g' etc/mc/mc.ext
|
||||
rm etc/mc/mc.ext.bak
|
||||
sed -i.bak 's|{{tea.prefix}}|%p/../|g' etc/mc/mc.ext*
|
||||
rm etc/mc/mc.ext*.bak
|
||||
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix={{prefix}}
|
||||
- --with-screen=ncurses
|
||||
# Needed for the compiler to `#include <term.h>`
|
||||
CPATH: $CPATH:{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw
|
||||
|
||||
# FIXME: hard to test interactive tools
|
||||
test:
|
||||
|
|
|
@ -15,17 +15,9 @@ build:
|
|||
gnu.org/autoconf: '*'
|
||||
script: |
|
||||
./autogen.sh
|
||||
|
||||
# configure won't find libncursesw for libncurses.
|
||||
sed -i.bak -e 's/-lncurses/-lncursesw/' configure
|
||||
rm configure.bak
|
||||
|
||||
./configure --prefix={{prefix}}
|
||||
make
|
||||
make install
|
||||
env:
|
||||
# needed to `include <curses.h>;`
|
||||
CPATH: $CPATH:{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw
|
||||
|
||||
test:
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue