dos2unix: Introduce dos2unix port

Port the ubiquitous dos2unix tool to Serenity. Dos2Unix is a suite of
tools for converting file line endings, from dos/mac to unix and unix
to dos/mac.
This commit is contained in:
Nathan Ell 2021-12-07 20:00:58 -07:00 committed by Andreas Kling
parent 5c511de4cc
commit 444a7eb929
Notes: sideshowbarker 2024-07-18 02:47:59 +09:00
3 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`diffutils`](diffutils/) | GNU Diffutils | 3.7 | https://www.gnu.org/software/diffutils/ |
| [`dmidecode`](dmidecode/) | dmidecode | 3.3 | https://github.com/mirror/dmidecode |
| [`doom`](doom/) | DOOM | | https://github.com/SerenityOS/SerenityDOOM |
| [`dos2unix`](dos2unix/) | dos2unix | 7.4.2 | https://waterlan.home.xs4all.nl/dos2unix.html |
| [`dosbox-staging`](dosbox-staging/) | DOSBox Staging | 0.76.0 | https://dosbox-staging.github.io/ |
| [`drascula`](drascula/) | Dráscula: The Vampire Strikes Back | 1.0 | https://www.scummvm.org/games/#games-drascula |
| [`dreamweb`](dreamweb/) | DreamWeb | 1.1 | https://www.scummvm.org/games/#games-dreamweb |

6
Ports/dos2unix/package.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=dos2unix
version=7.4.2
workdir="${port}-${version}"
files="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-${version}.tar.gz ${port}-${version}.tar.gz"
depends=("gettext")

View File

@ -0,0 +1,11 @@
--- dos2unix-7.2.4/Makefile.orig 2021-12-06 22:52:37.468010400 -0700
+++ dos2unix-7.2.4/Makefile 2021-12-06 22:53:25.508010400 -0700
@@ -316,6 +316,8 @@
EXTRA_DEFS += -Dhpux -D_HPUX_SOURCE
endif
+LIBS_EXTRA = -lintl
+
# ............................................................ flags ...