mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+nano-editor.org (#815)
* #717 +nano-editor.org * cleanup deps * add gnu make * rm unused code * improve strategy in getting version * use strip-components instead workdir * fix dependencies version * add proper version testing --------- Co-authored-by: neil <neil@neils-MacBook-Pro.local>
This commit is contained in:
parent
c5759405f7
commit
da9ddfc767
1 changed files with 43 additions and 0 deletions
43
projects/nano-editor.org/package.yml
Normal file
43
projects/nano-editor.org/package.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
distributable:
|
||||
url: https://www.nano-editor.org/dist/v{{ version.major }}/nano-{{ version.raw }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
- 7.2
|
||||
|
||||
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
|
Loading…
Reference in a new issue