Hi,

About cgoban3:
official client of the KGS Go Server.  On the KGS Go Server you
can play go (known as weiqi in Chinese and baduk in Korean) against people
from all over the world. Watch games, play games, and review your games.

PERMIT_PACKAGE and PERMIT_DISTFILES is set to no because I wasn't able
to find any clear license information, though the developer said it's ok
to repackage the jar file.

The diff is also available at:
https://github.com/PeterHajdu/cgoban3-openbsd-port

Tested on stable/amd64.
Can you also commit if it's ok?

Thank you in advance.

Cheers,
Peter

diff --git games/cgoban3/Makefile games/cgoban3/Makefile
new file mode 100644
index 00000000000..a4ec3df0b9f
--- /dev/null
+++ games/cgoban3/Makefile
@@ -0,0 +1,36 @@
+COMMENT=       KGS Go Server client
+
+V=     3.5.143
+PKGNAME=       cgoban3-${V}
+
+SITES=         https://downloads.kgsai.com/
+
+DISTFILES=     CGoban-${V}.jar
+
+CATEGORIES =   games
+
+HOMEPAGE =     https://www.gokgs.com/
+
+MAINTAINER =   Peter Hajdu <pe...@hajdu.im>
+
+# No clear license information is available.
+# The developer said it's ok to repackage the jar file.
+PERMIT_PACKAGE =       No
+PERMIT_DISTFILES =     No
+
+MODULES =      java
+MODJAVA_VER =  11+
+
+RUN_DEPENDS =  java/javaPathHelper
+
+NO_TEST =      Yes
+NO_BUILD =     Yes
+
+EXTRACT_ONLY =
+
+do-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/lib/cgoban3
+       ${INSTALL_DATA} ${FULLDISTDIR}/${DISTFILES} 
${PREFIX}/lib/cgoban3/cgoban3.jar
+       ${INSTALL_SCRIPT} ${FILESDIR}/cgoban3 ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git games/cgoban3/distinfo games/cgoban3/distinfo
new file mode 100644
index 00000000000..c68465d7a53
--- /dev/null
+++ games/cgoban3/distinfo
@@ -0,0 +1,2 @@
+SHA256 (CGoban-3.5.143.jar) = mMf/aj4HQpXVJjjgFt+S3ikf5YxUHPuwslnlkO3xo6k=
+SIZE (CGoban-3.5.143.jar) = 6897143
diff --git games/cgoban3/files/cgoban3 games/cgoban3/files/cgoban3
new file mode 100755
index 00000000000..512b0df789e
--- /dev/null
+++ games/cgoban3/files/cgoban3
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# OpenBSD-specific startup script for cgoban3.
+
+JAVA_CMD=`javaPathHelper -c cgoban3`
+
+${JAVA_CMD} -jar /usr/local/lib/cgoban3/cgoban3.jar
diff --git games/cgoban3/pkg/DESCR games/cgoban3/pkg/DESCR
new file mode 100644
index 00000000000..085528bb9a8
--- /dev/null
+++ games/cgoban3/pkg/DESCR
@@ -0,0 +1,3 @@
+cgoban3 - official client of the KGS Go Server.  On the KGS Go Server you
+can play go (known as weiqi in Chinese and baduk in Korean) against people
+from all over the world. Watch games, play games, and review your games.
diff --git games/cgoban3/pkg/PLIST games/cgoban3/pkg/PLIST
new file mode 100644
index 00000000000..2d907c06653
--- /dev/null
+++ games/cgoban3/pkg/PLIST
@@ -0,0 +1,3 @@
+bin/cgoban3
+lib/cgoban3/
+lib/cgoban3/cgoban3.jar

Reply via email to