From nobody Sat Mar 5 15:11:09 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B139319E0986; Sat, 5 Mar 2022 15:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K9p8F4VHYz4pKD; Sat, 5 Mar 2022 15:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646493069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dktZzeSqB2D/z/z9imvSDLETI7hzt+RwCfFhvlPL86U=; b=psPtO+Ql9w2xddtIwd5Er4Y58fAYgJecOxy0U40E2gfY2bLUeFthqUXO3Ew4Fo8dg9C5GX 4qkiCHk4TwQSI1ZUqnVSATzMe7wuJk0d1/pnhxlBCNrxzdVHJrrjlkNLRmkw+SBOWtMWip yNIekvNUmQMKqwD4qK/U2nPlrW0fAjPAgPd96QpHLXJ4Erbj48jun9wKH1SIpfYkmqSYxe zhjfekwngFRiyua0q6DuT4RFN48aImQ8nbAPm4uA6cvYeYYiyrSsATzbo1BHX/6T9FHWOr osjD/QjK/MssipY0PqM0p0a/lWDPtpwRYKfEdXSleqbSHXvInjtq681tVW13Jw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7B6BB2277E; Sat, 5 Mar 2022 15:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 225FB9Za038728; Sat, 5 Mar 2022 15:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 225FB9R0038727; Sat, 5 Mar 2022 15:11:09 GMT (envelope-from git) Date: Sat, 5 Mar 2022 15:11:09 GMT Message-Id: <202203051511.225FB9R0038727@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 5eaed4a58294 - main - games/freebee: add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5eaed4a582941272682ac381056a0280f9cff785 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646493069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dktZzeSqB2D/z/z9imvSDLETI7hzt+RwCfFhvlPL86U=; b=Da/rnMqAk1Jr/hJQgM61pbi232hhnpu0mTs446A+9RWKW9AS0O8HMg8Q8PyZ3fffSpvXTZ nYw4DBFip15dI9U/I4HVXAtiGqpRI/SFF0rBQe0e9qGSKII/MGO4Z/QuUEcZELAZy1RVAW Z4Bhft03+Y30mXpOdSkSrQZo2OiZwlZDBduOOBG80ic+9+bApsiJy+djaTBowM6k92jza4 lKA4gWUmZQRxMsnD18c3oULFhXs4n1gbPTmhEBX00AFo8PtHagrVbghfZZYaZa0Z8pIX0F 5eWasDuHbMmUZRqRWwv0pxtoO9MIyyrEKpwDQqz6+w85gaO4LbuMEkND2tBPkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646493069; a=rsa-sha256; cv=none; b=hHBmiRvub+gG0X741NarNwm06+CkEMsZtK8HYftVvHwZlIXq0lE+Te7UDldMldkEjZPen5 tCMYzVHG/DnLu5j99/xSfhhZda2IeeFrbE//1Bp6BprbF80ie3miIVI2geXY16RIrt7ZNj izl+Z+Ue8+MIalh/pFyK8qBJXWS3qM6o+mC3cWMalcGoq4WTA8BQOzgrxljrslhvpGpwI+ 2W7KnNtYpA7qiwcX80t+ISDquZQegE1tK6WA5tSZHwZIaOtKrF9I44DOpfeBSO4Vz9EJvI t0m6PwIg4DMuJAnNarwI4BHsjKNALuAR0CYp0MFbacm2HbtINil4j0iLeqbJtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=5eaed4a582941272682ac381056a0280f9cff785 commit 5eaed4a582941272682ac381056a0280f9cff785 Author: Dmitry Marakasov AuthorDate: 2021-04-30 15:42:59 +0000 Commit: Dmitry Marakasov CommitDate: 2022-03-05 15:10:41 +0000 games/freebee: add port Free Bee is an enhanced Free Software clone of The New York Times game Spelling Bee. In this game, your goal is to find as many words as you can with the seven letters you are given. You don't have to use any letter except the middle letter and letters can be used more than once in a word. Finding a word that uses all seven letters yields bonus points! Every game has at least one such word, and many games have multiple. Earning enough points to reach the rank of Queen Bee wins the game! You can play the daily challenge like the original game or try your hand at a nearly infinite number of computer-generated random challenges. Unlike the original game, you are not restricted to only a single game per day! WWW: https://freebee.fun/ WWW: https://github.com/freebee-game/console-client --- games/Makefile | 1 + games/freebee/Makefile | 27 ++++++++++++++++++++++ games/freebee/distinfo | 3 +++ games/freebee/files/patch-Makefile | 47 ++++++++++++++++++++++++++++++++++++++ games/freebee/pkg-descr | 19 +++++++++++++++ games/freebee/pkg-plist | 3 +++ 6 files changed, 100 insertions(+) diff --git a/games/Makefile b/games/Makefile index 3368bbc095c0..9549c7870ec7 100644 --- a/games/Makefile +++ b/games/Makefile @@ -278,6 +278,7 @@ SUBDIR += fortunate SUBDIR += fotaq SUBDIR += four-in-a-row + SUBDIR += freebee SUBDIR += freeblocks SUBDIR += freecell-solver SUBDIR += freeciv diff --git a/games/freebee/Makefile b/games/freebee/Makefile new file mode 100644 index 000000000000..b080db8e4e90 --- /dev/null +++ b/games/freebee/Makefile @@ -0,0 +1,27 @@ +PORTNAME= freebee +DISTVERSIONPREFIX= ${PORTNAME}- +DISTVERSION= 1.7 +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Multi-platform ncurses-based console client for Free Bee + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libcurl.so:ftp/curl + +USES= ncurses +USE_GITHUB= yes +GH_ACCOUNT= freebee-game +GH_PROJECT= console-client + +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + +.include diff --git a/games/freebee/distinfo b/games/freebee/distinfo new file mode 100644 index 000000000000..c942c9f53674 --- /dev/null +++ b/games/freebee/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620327621 +SHA256 (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = a239520a4f10f5206e81a219d1cc7d3056f668b7119934d074fb8c65999244c3 +SIZE (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = 453839 diff --git a/games/freebee/files/patch-Makefile b/games/freebee/files/patch-Makefile new file mode 100644 index 000000000000..2edc9d571b40 --- /dev/null +++ b/games/freebee/files/patch-Makefile @@ -0,0 +1,47 @@ +--- Makefile.orig 2020-07-28 01:02:14 UTC ++++ Makefile +@@ -2,18 +2,18 @@ + + CC ?= cc + CFLAGS ?= -O2 -pipe +-CFLAGS += -I/usr/local/include ++CFLAGS += -I${LOCALBASE}/include + + # Remove if your system doesn't have + # arc4random_uniform(3) and/or strlcat(3) + # Same with pledge(2) and/or unveil(2) + CFLAGS += -DHAVE_ARC4RANDOM_UNIFORM -DHAVE_STRLCAT +-CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL ++#CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL + + # Uncomment if you don't want to install + # or if you plan to install the dictionary somewhere + # other than /usr/local/share/freebee/enable1.txt +-#CFLAGS += -DDICTIONARY="\"enable1.txt\"" ++CFLAGS += -DDICTIONARY="\"${SHAREDIR}/enable1.txt\"" + + PREFIX ?= /usr/local + BINDIR ?= ${PREFIX}/bin +@@ -25,15 +25,15 @@ OBJS = anagram.o arc4random_uniform.o dir.o game.o mai + strlcat.o + + all: ${OBJS} +- ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L/usr/local/lib -lcurl ++ ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L${LOCALBASE}/lib -lcurl + + install: +- /usr/bin/install -d -m 755 ${BINDIR} +- /usr/bin/install -d -m 755 ${MANDIR} +- /usr/bin/install -d -m 755 ${SHAREDIR} +- /usr/bin/install -c -s -m 555 freebee ${BINDIR} +- /usr/bin/install -c -m 444 freebee.6 ${MANDIR} +- /usr/bin/install -c -m 444 enable1.txt ${SHAREDIR} ++ /usr/bin/install -d -m 755 ${DESTDIR}${BINDIR} ++ /usr/bin/install -d -m 755 ${DESTDIR}${MANDIR} ++ /usr/bin/install -d -m 755 ${DESTDIR}${SHAREDIR} ++ /usr/bin/install -c -s -m 555 freebee ${DESTDIR}${BINDIR} ++ /usr/bin/install -c -m 444 freebee.6 ${DESTDIR}${MANDIR} ++ /usr/bin/install -c -m 444 enable1.txt ${DESTDIR}${SHAREDIR} + + clean: + rm -f ${PROG} ${OBJS} ${PROG}.core diff --git a/games/freebee/pkg-descr b/games/freebee/pkg-descr new file mode 100644 index 000000000000..556a86bec2d8 --- /dev/null +++ b/games/freebee/pkg-descr @@ -0,0 +1,19 @@ +Free Bee is an enhanced Free Software clone of The New York Times +game Spelling Bee. + +In this game, your goal is to find as many words as you can with +the seven letters you are given. You don't have to use any letter +except the middle letter and letters can be used more than once in +a word. Finding a word that uses all seven letters yields bonus +points! Every game has at least one such word, and many games have +multiple. + +Earning enough points to reach the rank of Queen Bee wins the game! + +You can play the daily challenge like the original game or try your +hand at a nearly infinite number of computer-generated random +challenges. Unlike the original game, you are not restricted to +only a single game per day! + +WWW: https://freebee.fun/ +WWW: https://github.com/freebee-game/console-client diff --git a/games/freebee/pkg-plist b/games/freebee/pkg-plist new file mode 100644 index 000000000000..0e9a24516aa1 --- /dev/null +++ b/games/freebee/pkg-plist @@ -0,0 +1,3 @@ +bin/freebee +man/man6/freebee.6.gz +%%DATADIR%%/enable1.txt