From 444a7eb9297cc46953bb234dec9c0c0b25f74645 Mon Sep 17 00:00:00 2001 From: Nathan Ell Date: Tue, 7 Dec 2021 20:00:58 -0700 Subject: [PATCH] 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. --- Ports/AvailablePorts.md | 1 + Ports/dos2unix/package.sh | 6 ++++++ Ports/dos2unix/patches/Makefile.patch | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100755 Ports/dos2unix/package.sh create mode 100644 Ports/dos2unix/patches/Makefile.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 66ff6a3235..3bb9861514 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -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 | diff --git a/Ports/dos2unix/package.sh b/Ports/dos2unix/package.sh new file mode 100755 index 0000000000..8a9b93cc35 --- /dev/null +++ b/Ports/dos2unix/package.sh @@ -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") diff --git a/Ports/dos2unix/patches/Makefile.patch b/Ports/dos2unix/patches/Makefile.patch new file mode 100644 index 0000000000..224080038d --- /dev/null +++ b/Ports/dos2unix/patches/Makefile.patch @@ -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 ... +