summaryrefslogtreecommitdiff
path: root/Ports/nyancat/patches
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-16 19:21:55 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commitbb8febffacc678b8fcf371dbf35ffc9a37533fc0 (patch)
tree8ac9d0f0b15ad2d4b6122a58bc76dcf959879a43 /Ports/nyancat/patches
parent288818eb29ff22b47318f9d91581c08758653027 (diff)
downloadserenity-bb8febffacc678b8fcf371dbf35ffc9a37533fc0.zip
Ports: Update nyancat's patches to use git patches
Diffstat (limited to 'Ports/nyancat/patches')
-rw-r--r--Ports/nyancat/patches/0001-Install-to-usr-local.patch28
-rw-r--r--Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch25
-rw-r--r--Ports/nyancat/patches/ReadMe.md12
-rw-r--r--Ports/nyancat/patches/serenity-changes.patch29
4 files changed, 65 insertions, 29 deletions
diff --git a/Ports/nyancat/patches/0001-Install-to-usr-local.patch b/Ports/nyancat/patches/0001-Install-to-usr-local.patch
new file mode 100644
index 0000000000..34b5671c45
--- /dev/null
+++ b/Ports/nyancat/patches/0001-Install-to-usr-local.patch
@@ -0,0 +1,28 @@
+From 7523e59d058e0455bc03d4c3154d18ffa5fdd92a Mon Sep 17 00:00:00 2001
+From: Gunnar Beutner <gbeutner@serenityos.org>
+Date: Thu, 15 Apr 2021 15:43:18 +0200
+Subject: [PATCH 1/2] Install to /usr/local
+
+---
+ Makefile | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 069b06c..34b38d8 100644
+--- a/Makefile
++++ b/Makefile
+@@ -33,7 +33,9 @@ distcheck: $(distdir).tar.gz
+ @echo "*** Package $(distdir).tar.gz is ready for distribution."
+
+ install: all
+- install src/nyancat /usr/bin/${package}
+- gzip -9 -c < nyancat.1 > /usr/share/man/man1/nyancat.1.gz
++ mkdir -p ${DESTDIR}/usr/local/bin
++ install src/nyancat ${DESTDIR}/usr/local/bin/${package}
++ mkdir -p ${DESTDIR}/usr/local/share/man/man1
++ gzip -9 -c < nyancat.1 > ${DESTDIR}/usr/local/share/man/man1/nyancat.1.gz
+
+ .PHONY: FORCE all clean check dist distcheck install
+--
+2.36.1
+
diff --git a/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch b/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch
new file mode 100644
index 0000000000..b17b190fe3
--- /dev/null
+++ b/Ports/nyancat/patches/0002-Use-d-for-time-diff-printing.patch
@@ -0,0 +1,25 @@
+From e59fb37e9eeae4e68244a29d337047d7eb04c3c2 Mon Sep 17 00:00:00 2001
+From: Gunnar Beutner <gbeutner@serenityos.org>
+Date: Thu, 15 Apr 2021 15:43:18 +0200
+Subject: [PATCH 2/2] Use %d for time diff printing
+
+---
+ src/nyancat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/nyancat.c b/src/nyancat.c
+index 537225c..f2965c1 100644
+--- a/src/nyancat.c
++++ b/src/nyancat.c
+@@ -901,7 +901,7 @@ int main(int argc, char ** argv) {
+ * The \033[0m prevents the Apple ][ from flipping everything, but
+ * makes the whole nyancat less bright on the vt220
+ */
+- printf("\033[1;37mYou have nyaned for %0.0f seconds!\033[J\033[0m", diff);
++ printf("\033[1;37mYou have nyaned for %d seconds!\033[J\033[0m", (int)diff);
+ }
+ /* Reset the last color so that the escape sequences rewrite */
+ last = 0;
+--
+2.36.1
+
diff --git a/Ports/nyancat/patches/ReadMe.md b/Ports/nyancat/patches/ReadMe.md
new file mode 100644
index 0000000000..21bb5e037d
--- /dev/null
+++ b/Ports/nyancat/patches/ReadMe.md
@@ -0,0 +1,12 @@
+# Patches for nyancat on SerenityOS
+
+## `0001-Install-to-usr-local.patch`
+
+Install to /usr/local
+
+
+## `0002-Use-d-for-time-diff-printing.patch`
+
+Use %d for time diff printing
+
+
diff --git a/Ports/nyancat/patches/serenity-changes.patch b/Ports/nyancat/patches/serenity-changes.patch
deleted file mode 100644
index a18eefb061..0000000000
--- a/Ports/nyancat/patches/serenity-changes.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 1dd50ef..e435044 100644
---- a/Makefile
-+++ b/Makefile
-@@ -33,7 +33,9 @@ distcheck: $(distdir).tar.gz
- @echo "*** Package $(distdir).tar.gz is ready for distribution."
-
- install: all
-- install src/nyancat /usr/bin/${package}
-- gzip -9 -c < nyancat.1 > /usr/share/man/man1/nyancat.1.gz
-+ mkdir -p ${DESTDIR}/usr/local/bin
-+ install src/nyancat ${DESTDIR}/usr/local/bin/${package}
-+ mkdir -p ${DESTDIR}/usr/local/share/man/man1
-+ gzip -9 -c < nyancat.1 > ${DESTDIR}/usr/local/share/man/man1/nyancat.1.gz
-
- .PHONY: FORCE all clean check dist distcheck install
-diff --git a/src/nyancat.c b/src/nyancat.c
-index 537225c..f2965c1 100644
---- a/src/nyancat.c
-+++ b/src/nyancat.c
-@@ -901,7 +901,7 @@ int main(int argc, char ** argv) {
- * The \033[0m prevents the Apple ][ from flipping everything, but
- * makes the whole nyancat less bright on the vt220
- */
-- printf("\033[1;37mYou have nyaned for %0.0f seconds!\033[J\033[0m", diff);
-+ printf("\033[1;37mYou have nyaned for %d seconds!\033[J\033[0m", (int)diff);
- }
- /* Reset the last color so that the escape sequences rewrite */
- last = 0;