2023-03-19 15:04:46 +03:00
|
|
|
distributable:
|
|
|
|
url: https://www.nano-editor.org/dist/v{{ version.major }}/nano-{{ version.raw }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://mirrors.tripadvisor.com/gnu/nano/
|
|
|
|
match: /nano-\d+\.\d+(\.\d+)?\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /nano-/
|
|
|
|
- /.tar.gz/
|
2023-03-19 15:04:46 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/gettext: "*"
|
|
|
|
invisible-island.net/ncurses: ">=6.0"
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/nano
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
|
|
|
gnu.org/automake: ^1.16
|
|
|
|
gnu.org/make: "*"
|
|
|
|
tea.xyz/gx/cc: "*"
|
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
|
|
|
make install
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --disable-debug
|
|
|
|
- --disable-dependency-tracking
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --sysconfdir="{{prefix}}"
|
|
|
|
- --enable-color
|
|
|
|
- --enable-extra
|
|
|
|
- --enable-multibuffer
|
|
|
|
- --enable-nanorc
|
|
|
|
- --enable-utf8
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
valid=0
|
|
|
|
if echo $(nano --version) | grep "version {{version.marketing}}";
|
|
|
|
then
|
|
|
|
valid=1
|
|
|
|
fi
|
|
|
|
test $valid = 1
|