From 278133a25b48c3e0d690bc9386f6d671c22257f1 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 10 Jun 2019 01:43:06 +0000 Subject: [PATCH] New port: games/lizzie: Leela Zero Interface: GUI for the Go game --- games/Makefile | 1 + games/lizzie/Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++ games/lizzie/distinfo | 5 ++++ games/lizzie/pkg-descr | 4 +++ 4 files changed, 73 insertions(+) create mode 100644 games/lizzie/Makefile create mode 100644 games/lizzie/distinfo create mode 100644 games/lizzie/pkg-descr diff --git a/games/Makefile b/games/Makefile index bc05ef92384e..83ff9405840a 100644 --- a/games/Makefile +++ b/games/Makefile @@ -553,6 +553,7 @@ SUBDIR += linux-worldofgoo-demo SUBDIR += linwarrior SUBDIR += liquidwar + SUBDIR += lizzie SUBDIR += lm-solve SUBDIR += lmarbles SUBDIR += lmpc diff --git a/games/lizzie/Makefile b/games/lizzie/Makefile new file mode 100644 index 000000000000..0f160eb7a190 --- /dev/null +++ b/games/lizzie/Makefile @@ -0,0 +1,63 @@ +# $FreeBSD$ + +PORTNAME= lizzie +DISTVERSION= 0.6-105 +DISTVERSIONSUFFIX= -gd0e7040 +CATEGORIES= games java + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Leela Zero Interface: GUI for the Go game + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= mvn:devel/maven +RUN_DEPENDS= leelaz:games/leela-zero + +USE_JAVA= yes +USE_GITHUB= yes +GH_ACCOUNT= featurecat + +NO_ARCH= yes + +# to rebuild the deps archive: +# 1. set DEV_UPDATE_MODE=yes +# 2. make makesum build +# 3. upload the *-deps archive +# 4. set DEV_UPDATE_MODE=no +# 5. make clean makesum + +DEV_UPDATE_MODE= no + +.if (${DEV_UPDATE_MODE} == "yes") +post-build: + @cd ${WRKDIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} .m2 + @${ECHO} "(!!!) Please upload the maven deps archive: ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" +.else +MASTER_SITES+= LOCAL/yuri/:maven +DISTFILES+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}:maven +MVN_ARGS= --offline +.endif + +DESKTOP_ENTRIES= "SGF Editor (Go)" "A GUI for Leela-Zero" "" "${PORTNAME}" "Game;" "" + +PLIST_FILES= bin/${PORTNAME} \ + ${JAVAJARDIR}/lizzie-${PORTVERSION:R}-shaded.jar + +do-build: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${LOCALBASE}/bin/mvn ${MVN_ARGS} \ + -fae install \ + -Dmaven.test.skip=true \ + -Duser.home=${WRKDIR} \ + package +do-install: + ${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION:R}-shaded.jar ${STAGEDIR}${JAVAJARDIR} + @(echo "#!/bin/sh"; \ + echo ""; \ + echo "mkdir -p ~/.local/share/lizzie &&"; \ + echo "cd ~/.local/share/lizzie && ${JAVA} -jar ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION:R}-shaded.jar \""$$"@\"" \ + ) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/games/lizzie/distinfo b/games/lizzie/distinfo new file mode 100644 index 000000000000..14b2c9aedede --- /dev/null +++ b/games/lizzie/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1560123307 +SHA256 (lizzie-0.6-105-deps.tar.gz) = d9461feeb8ffccb74f2667c2669f9ccc4a364a2f15f8c2101254c901ea99405e +SIZE (lizzie-0.6-105-deps.tar.gz) = 30231127 +SHA256 (featurecat-lizzie-0.6-105-gd0e7040_GH0.tar.gz) = 3768c0f778b43fe8fd961eeede1e4a06b1be2db39848e31b5efea30e3ad34db1 +SIZE (featurecat-lizzie-0.6-105-gd0e7040_GH0.tar.gz) = 6638762 diff --git a/games/lizzie/pkg-descr b/games/lizzie/pkg-descr new file mode 100644 index 000000000000..a35eecda3d39 --- /dev/null +++ b/games/lizzie/pkg-descr @@ -0,0 +1,4 @@ +Lizzie is a graphical interface allowing the user to analyze Go games in real +time using Leela Zero. + +WWW: https://github.com/featurecat/lizzie