From 0d3cc3a44f5376727fcb3cf2b2a9a2f177564a74 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:29:50 +0200 Subject: [PATCH] +waterlan.home.xs4all.nl/dos2unix (#5572) * new file: projects/sourceforge.io/dos2unix/package.yml * rename as a homepage --- .../dos2unix/package.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/waterlan.home.xs4all.nl/dos2unix/package.yml diff --git a/projects/waterlan.home.xs4all.nl/dos2unix/package.yml b/projects/waterlan.home.xs4all.nl/dos2unix/package.yml new file mode 100644 index 00000000..8080f410 --- /dev/null +++ b/projects/waterlan.home.xs4all.nl/dos2unix/package.yml @@ -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'