mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+waterlan.home.xs4all.nl/dos2unix (#5572)
* new file: projects/sourceforge.io/dos2unix/package.yml * rename as a homepage
This commit is contained in:
parent
bf2ab7afc2
commit
0d3cc3a44f
1 changed files with 35 additions and 0 deletions
35
projects/waterlan.home.xs4all.nl/dos2unix/package.yml
Normal file
35
projects/waterlan.home.xs4all.nl/dos2unix/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
distributable:
|
||||
url: https://waterlan.home.xs4all.nl/dos2unix/dos2unix-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://waterlan.home.xs4all.nl/dos2unix/
|
||||
match: /dos2unix-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^dos2unix-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
display-name: dos2unix
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
gnu.org/gettext: '*'
|
||||
script:
|
||||
make prefix={{prefix}} ENABLE_NLS=0 install
|
||||
|
||||
provides:
|
||||
- bin/dos2unix
|
||||
- bin/mac2unix
|
||||
- bin/unix2dos
|
||||
- bin/unix2mac
|
||||
|
||||
test:
|
||||
- dos2unix --version | grep {{version}}
|
||||
- echo -e "foo\nbar\n" > test.txt
|
||||
# unix2mac: convert lf to cr
|
||||
- unix2mac test.txt
|
||||
- cat test.txt | grep $'\x0d'
|
||||
# mac2unix: convert cr to lf
|
||||
- mac2unix test.txt
|
||||
- cat test.txt | grep $'\x0d' || true
|
||||
- cat test.txt | grep $'\x0a'
|
Loading…
Reference in a new issue