diff --git a/games/Makefile b/games/Makefile index 0c9a5cbd2da6..e08ce9935f37 100644 --- a/games/Makefile +++ b/games/Makefile @@ -153,6 +153,7 @@ SUBDIR += connectagram SUBDIR += connectfive SUBDIR += construo + SUBDIR += coronapoker SUBDIR += corsix-th SUBDIR += cosmo SUBDIR += cosmosmash diff --git a/games/coronapoker/Makefile b/games/coronapoker/Makefile new file mode 100644 index 000000000000..db6b3a51eae5 --- /dev/null +++ b/games/coronapoker/Makefile @@ -0,0 +1,59 @@ +# $FreeBSD$ + +PORTNAME= coronapoker +DISTVERSIONPREFIX= v +DISTVERSION= 4.33 +CATEGORIES= games java + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Texas Holdem poker game + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= mvn:devel/maven + +USE_JAVA= 11+ +USE_GITHUB= yes +GH_ACCOUNT= tonikelope + +NO_ARCH= yes + +SUB_FILES= ${PORTNAME} +SUB_LIST= JAVA=${JAVA} PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} + +PLIST_FILES= bin/${PORTNAME} \ + ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}-jar-with-dependencies.jar + +# 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 deps archive: ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" +.else +MASTER_SITES+= LOCAL/yuri/:deps +DISTFILES+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}:deps +MVN_ARGS= --offline +.endif + +do-build: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + JAVA_HOME=${JAVA_HOME} ${LOCALBASE}/bin/mvn ${MVN_ARGS} \ + -fae install \ + -Dmaven.test.skip=true \ + -Duser.home=${WRKDIR} \ + package + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/target/CoronaPoker-FINAL-*-jar-with-dependencies.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}-jar-with-dependencies.jar + +.include diff --git a/games/coronapoker/distinfo b/games/coronapoker/distinfo new file mode 100644 index 000000000000..10dd47dd14bb --- /dev/null +++ b/games/coronapoker/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1599346728 +SHA256 (coronapoker-4.33-deps.tar.gz) = 9636254e547a0f3c943cb5e91f7d2d4d018b5b747c4fb2ff4784891b93a88984 +SIZE (coronapoker-4.33-deps.tar.gz) = 192925093 +SHA256 (tonikelope-coronapoker-v4.33_GH0.tar.gz) = 157a51d430e00f63345f72083bc706b8bc04f670169bcb29ed12bb0eeec3205e +SIZE (tonikelope-coronapoker-v4.33_GH0.tar.gz) = 92254916 diff --git a/games/coronapoker/files/coronapoker.in b/games/coronapoker/files/coronapoker.in new file mode 100644 index 000000000000..18c1f4238265 --- /dev/null +++ b/games/coronapoker/files/coronapoker.in @@ -0,0 +1,5 @@ +#!/bin/sh + +export LC_ALL=en_US.UTF-8 + +%%JAVA%% -jar %%JAVAJARDIR%%/%%PORTNAME%%-%%PORTVERSION%%-jar-with-dependencies.jar "$@" diff --git a/games/coronapoker/pkg-descr b/games/coronapoker/pkg-descr new file mode 100644 index 000000000000..392fcc9f355f --- /dev/null +++ b/games/coronapoker/pkg-descr @@ -0,0 +1,3 @@ +Texas Holdem poker game written in Java. + +WWW: https://tonikelope.github.io/coronapoker/