On Sat, 9 Mar 2024 18:14:29 +0100
Tobias Heider <tobias.hei...@stusta.de> wrote:

> On Fri, Mar 08, 2024 at 10:02:33PM -0600, izder456 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?
> > 
> > -- 
> > -iz (they/them)
> >   
> > > i like to say mundane things, 
> > > there are too many uninteresting things 
> > > that go unnoticed.  
> > 
> > izder456 (dot) neocities (dot) org  
> 
> What's the licensing situation for oneko?
> I thought it didn't have one, which could be a problem for
> distributing it in ports.
> 

Good question,

As far as I can tell, its a public domain licence. 

FreeBSD, and even Debian distribute binaries.

The only CAVEAT I can see is the CARDCAPTOR derivative bitmaps, unsure
on this.

I understand they are different projects with different licensing
policies, but from what it looks like we should be in the clear here.

In all honesty, this software appears to be abandonware, so this may
change things, possibly?

(side-note: make sure to read my reply diff though, I fixed *some* of
the compile warns in those.)

anyways- for brevity's sake, here is the attached diff with the
relevant licence information and the above mentioned patches.

-- 
-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/Makefile games/oneko/Makefile
index 0282e2e..e1e2a51 100644
--- games/oneko/Makefile
+++ games/oneko/Makefile
@@ -7,9 +7,10 @@ CATEGORIES =		games
 
 HOMEPAGE =		http://www.daidouji.com/oneko
 
+# License: Custom, includes derivates of CARDCAPTOR SAKURA, see https://www.clamp-net.com
 PERMIT_PACKAGE =	Yes
 
-WANTLIB += 		X11 Xau Xdmcp Xext c m
+WANTLIB +=		X11 Xau Xdmcp Xext c m
 
 SITES =			http://www.daidouji.com/oneko/distfiles/
 
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