New port: games/lizzie: Leela Zero Interface: GUI for the Go game

This commit is contained in:
Yuri Victorovich 2019-06-10 01:43:06 +00:00
parent 2db206bcfe
commit 278133a25b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=503871
4 changed files with 73 additions and 0 deletions

View file

@ -553,6 +553,7 @@
SUBDIR += linux-worldofgoo-demo
SUBDIR += linwarrior
SUBDIR += liquidwar
SUBDIR += lizzie
SUBDIR += lm-solve
SUBDIR += lmarbles
SUBDIR += lmpc

63
games/lizzie/Makefile Normal file
View file

@ -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 <bsd.port.mk>

5
games/lizzie/distinfo Normal file
View file

@ -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

4
games/lizzie/pkg-descr Normal file
View file

@ -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