From 54f191f25b3c38b5b35352888adcfd72ff1b602f Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 16 May 2022 23:40:14 +0430 Subject: [PATCH] Ports: Update sl's patches to use git patches --- .../patches/0001-Add-an-install-target.patch | 27 +++++++++++++++++++ Ports/sl/patches/ReadMe.md | 8 ++++++ Ports/sl/patches/serenity-changes.patch | 14 ---------- 3 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 Ports/sl/patches/0001-Add-an-install-target.patch create mode 100644 Ports/sl/patches/ReadMe.md delete mode 100644 Ports/sl/patches/serenity-changes.patch diff --git a/Ports/sl/patches/0001-Add-an-install-target.patch b/Ports/sl/patches/0001-Add-an-install-target.patch new file mode 100644 index 0000000000..e9edfeb9c6 --- /dev/null +++ b/Ports/sl/patches/0001-Add-an-install-target.patch @@ -0,0 +1,27 @@ +From 71f2cc48a3e66377763401054c663ca6a2a3f7ca Mon Sep 17 00:00:00 2001 +From: Gunnar Beutner +Date: Thu, 15 Apr 2021 15:43:18 +0200 +Subject: [PATCH] Add an install target + +Co-Authored-By: Noah Rosamilia +--- + Makefile | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/Makefile b/Makefile +index c3005d2..04fcb9d 100644 +--- a/Makefile ++++ b/Makefile +@@ -18,3 +18,9 @@ clean: + rm -f sl + + distclean: clean ++ ++install: all ++ mkdir -p ${DESTDIR}/usr/local/bin ++ install sl ${DESTDIR}/usr/local/bin/sl ++ mkdir -p ${DESTDIR}/usr/local/share/man/man1 ++ gzip -9 -c < sl.1 > ${DESTDIR}/usr/local/share/man/man1/sl.1.gz +-- +2.36.1 + diff --git a/Ports/sl/patches/ReadMe.md b/Ports/sl/patches/ReadMe.md new file mode 100644 index 0000000000..6772990c4a --- /dev/null +++ b/Ports/sl/patches/ReadMe.md @@ -0,0 +1,8 @@ +# Patches for sl on SerenityOS + +## `0001-Add-an-install-target.patch` + +Add an install target + + + diff --git a/Ports/sl/patches/serenity-changes.patch b/Ports/sl/patches/serenity-changes.patch deleted file mode 100644 index 2a1ed1074f..0000000000 --- a/Ports/sl/patches/serenity-changes.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/Makefile b/Makefile -index c3005d2..e071fc9 100644 ---- a/Makefile -+++ b/Makefile -@@ -18,3 +18,9 @@ clean: - rm -f sl - - distclean: clean -+ -+install: all -+ mkdir -p ${DESTDIR}/usr/local/bin -+ install sl ${DESTDIR}/usr/local/bin/sl -+ mkdir -p ${DESTDIR}/usr/local/share/man/man1 -+ gzip -9 -c < sl.1 > ${DESTDIR}/usr/local/share/man/man1/sl.1.gz