On Fri, 8 Mar 2024 22:02:33 -0600
izder456 <izder...@disroot.org> wrote:

> 
> Hey ports@ o/,
> 
> This is a little & silly X program that has a small pixelated
> cat "neko" or optionally a dog or other characters like Beastie follow
> your cursor around.
> 
> I loosely followed the FreeBSD port as a structural reference and used
> the Arch PKGBUILD for finding `DISTFILES`. Unsure as this is my first
> `CONFIGURE = imake` port.
> 
> I want to import this.
> 
> OK? or nits b4 merge?
> 

I took some patches from the debian sources and referenced them.

Not exactly sure what they do, except fix some warnings during
compiletime.

attached is the git-style diff.


OK?

-- 
-iz (they/them)

> i like to say mundane things, 
> there are too many uninteresting things 
> that go unnoticed.

izder456 (dot) neocities (dot) org
diff --git games/oneko/patches/patch-oneko_c games/oneko/patches/patch-oneko_c
new file mode 100644
index 0000000..41ebfb7
--- /dev/null
+++ games/oneko/patches/patch-oneko_c
@@ -0,0 +1,30 @@
+Index: oneko.c
+--- oneko.c.orig
++++ oneko.c
+@@ -335,7 +335,7 @@ char	*resource;
+  *	$@%j%=!<%9!&%G!<%?%Y!<%9$+$i%*%W%7%g%s$r@_Dj(J
+  */
+ 
+-GetResources()
++void GetResources()
+ {
+   char	*resource;
+   int		num;
+@@ -434,7 +434,7 @@ GetResources()
+  *	$@$M$:$_7?%+!<%=%k$r:n$k(J
+  */
+ 
+-MakeMouseCursor()
++void MakeMouseCursor()
+ {
+     Pixmap			theCursorSource;
+     Pixmap			theCursorMask;
+@@ -463,7 +463,7 @@ MakeMouseCursor()
+  *	$@?'$r=i4|@_Dj$9$k(J
+  */
+ 
+-SetupColors()
++void SetupColors()
+ {
+     XColor	theExactColor;
+     Colormap	theColormap;
diff --git games/oneko/patches/patch-oneko_h games/oneko/patches/patch-oneko_h
new file mode 100644
index 0000000..00812c5
--- /dev/null
+++ games/oneko/patches/patch-oneko_h
@@ -0,0 +1,11 @@
+Index: oneko.h
+--- oneko.h.orig
++++ oneko.h
+@@ -15,6 +15,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ #include <signal.h>
+ #include <math.h>
diff --git games/oneko/patches/patch-oneko_man games/oneko/patches/patch-oneko_man
new file mode 100644
index 0000000..342b5fb
--- /dev/null
+++ games/oneko/patches/patch-oneko_man
@@ -0,0 +1,11 @@
+Index: oneko.man
+--- oneko.man.orig
++++ oneko.man
+@@ -1,6 +1,5 @@
+ .TH ONEKO 6
+-.SH NAME oneko
+-The program oneko creates a cute cat chasing around your mouse cursor.
++.SH NAME oneko \- Creates a cute cat chasing around your mouse cursor.
+ .SH SYNOPSIS
+ .B oneko
+ [\fB-help\fP] [\fB-tora\fP]

Reply via email to