From nobody Wed Mar 16 20:34:05 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 F1ED71A2B4E6; Wed, 16 Mar 2022 20:34:06 +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 4KJhnp0NL7z3jYC; Wed, 16 Mar 2022 20:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647462846; 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=pygJxdzIie1WXv95aO8t7risOXvo317ZUxemFNBobwg=; b=rEYIXe3qA8hTseDYAEK1LZGR9A0Leclg7EZ5vOP5qb1XV+11lwXDGL/4EYew0iWrYFRj9W EZgo6d2I1csH1fGjuNliN4kopZdWv82jjnTwn+vh4nN7qn/XNBzkdJ2KU3TLQPvRJnjuLs tF+w+qBRnZq69O1noL8gQa8FnobolfPTpsTnq0A3rV//OHBUhir/sq+S+nKvDOwVnGp1eh FizDcqc9ahV8DfWGUGjypTKV74sdjyRC715tk8nTSN1zkWtwDqPIZ9BGACfZGQoUMgkmWw mcY2kp3j4eDfyAfi4CvPqR0IFhCq7BV73Pp1r1ZU/ZDk3sphTNS/mTeYRZ7LYA== 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 9FAE31D1D2; Wed, 16 Mar 2022 20:34:05 +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 22GKY5Lp004781; Wed, 16 Mar 2022 20:34:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22GKY5vh004780; Wed, 16 Mar 2022 20:34:05 GMT (envelope-from git) Date: Wed, 16 Mar 2022 20:34:05 GMT Message-Id: <202203162034.22GKY5vh004780@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: b3eaf193ab33 - main - =?utf-8?Q?games/brainworkshop: update 5.0.git20191222 =E2=86=92 5.0.2?= 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: b3eaf193ab33ffd43c8a1d6c3338f6b3049ba933 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647462846; 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=pygJxdzIie1WXv95aO8t7risOXvo317ZUxemFNBobwg=; b=b3+Ev1+nuN2Gq8F62Fp5sdaMy3mfkykw+yaZHb4AO2Gv4kFtz4t+mmYCP1/DSJzjR9bM3A xArPofFBl2tTj5YpQF1xi0iU7yFjjWYqw9M4IqxrbFQGZRI1+4nrKdJ1YpVMe/DAQjBA6z raosDFTX8Y42KOdfQ14DwPLD86YOWtgl2SUX/FXpFgIqnL63l8gICsN3ANxu5DYJGISS7F XFU3Bn+U5VmPTY+HEFuKpKTRPN+M1o3xH8D5cP0eiR2CWfN8JVwa1n7A4b4tMYLHgm7ZWq HCosCvgqSK0vS23QZft/W0PBqDUb2kmsveY1WDcczwrv9r3U5JzpjfWE1l8B9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647462846; a=rsa-sha256; cv=none; b=FnxtJKt6kJrm8tsHdLsLfdx5t+ewdIIXD64mdJdBJxsfYPvvmi3mo4d9dJxefhvUSqTMcB DyS2ZlXRLXF88ZT1cdXicXyaceH6yY3GernnBxhgaBz+ZA6njJuWj4qg3LnqMCITCRAJ+E c18XrjBsYMMg515WZ3z7Lyix6keEj6qni5zeVUO6L26n9tCos4BhEyVu03syJnlWdfWIRL 7mv8Z7k55E3mP/7E0ujpMndSgf9gN3rdrswAXaRwdsQu22YsrnCzDen1Ega7m2ODJyU4Hy Reyo5atBNW8qoKM11vf4esTEi+K6fJQK9NNyKGC0Ju//isausV/8s0S6xEvm4w== 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=b3eaf193ab33ffd43c8a1d6c3338f6b3049ba933 commit b3eaf193ab33ffd43c8a1d6c3338f6b3049ba933 Author: Dmitry Marakasov AuthorDate: 2022-03-16 17:24:14 +0000 Commit: Dmitry Marakasov CommitDate: 2022-03-16 20:33:11 +0000 games/brainworkshop: update 5.0.git20191222 → 5.0.2 - Switch to latest pyglet --- games/brainworkshop/Makefile | 15 ++++----- games/brainworkshop/distinfo | 6 ++-- games/brainworkshop/files/patch-brainworkshop.py | 39 +++++++++++++++++++++++ games/brainworkshop/files/patch-brainworkshop.pyw | 25 --------------- 4 files changed, 49 insertions(+), 36 deletions(-) diff --git a/games/brainworkshop/Makefile b/games/brainworkshop/Makefile index 96f8dc0a4ece..66d1d11f16a2 100644 --- a/games/brainworkshop/Makefile +++ b/games/brainworkshop/Makefile @@ -1,6 +1,6 @@ PORTNAME= brainworkshop -PORTVERSION= 5.0.git20191222 -PORTREVISION= 1 +DISTVERSIONPREFIX= v +DISTVERSION= 5.0.2 CATEGORIES= games python MAINTAINER= amdmi3@FreeBSD.org @@ -8,14 +8,13 @@ COMMENT= Dual N-Back mental exercise LICENSE= GPLv1+ # version not specified -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyglet/__init__.py:graphics/py-pyglet150@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyglet/__init__.py:graphics/py-pyglet@${PY_FLAVOR} USE_GITHUB= yes -GH_ACCOUNT= samcv -GH_TAGNAME= f1e28d0 +GH_ACCOUNT= brain-workshop USES= shebangfix python:run -SHEBANG_FILES= brainworkshop.pyw +SHEBANG_FILES= brainworkshop.py NO_BUILD= yes NO_ARCH= yes @@ -33,10 +32,10 @@ DESKTOP_ENTRIES="Brain Workshop" \ OPTIONS_DEFINE= DOCS post-patch: - @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/brainworkshop.pyw + @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/brainworkshop.py do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/brainworkshop.pyw ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKSRC}/brainworkshop.py ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @cd ${WRKSRC} && ${COPYTREE_SHARE} "res data" ${STAGEDIR}${DATADIR}/ do-install-DOCS-on: diff --git a/games/brainworkshop/distinfo b/games/brainworkshop/distinfo index c6e5f24445e7..cc59e17f3886 100644 --- a/games/brainworkshop/distinfo +++ b/games/brainworkshop/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1576179420 -SHA256 (samcv-brainworkshop-5.0.git20191222-f1e28d0_GH0.tar.gz) = cca9dde0780f2ba9eb59a6b64f690a27a15ddca37c30ea46dc88b1e1edcd5c2d -SIZE (samcv-brainworkshop-5.0.git20191222-f1e28d0_GH0.tar.gz) = 7998600 +TIMESTAMP = 1647450762 +SHA256 (brain-workshop-brainworkshop-v5.0.2_GH0.tar.gz) = 32e5e06908203d8de4353f8837830e583c2c94db4f6f33c33145b5875323561b +SIZE (brain-workshop-brainworkshop-v5.0.2_GH0.tar.gz) = 7998711 diff --git a/games/brainworkshop/files/patch-brainworkshop.py b/games/brainworkshop/files/patch-brainworkshop.py new file mode 100644 index 000000000000..236dd803a690 --- /dev/null +++ b/games/brainworkshop/files/patch-brainworkshop.py @@ -0,0 +1,39 @@ +--- brainworkshop.py.orig 2021-05-08 11:38:01 UTC ++++ brainworkshop.py +@@ -41,7 +41,7 @@ def get_argv(arg): + error_msg("Expected an argument following %s" % arg) + exit(1) + +-import random, os, sys, imp, socket, webbrowser, time, math, traceback, datetime, errno ++import random, os, sys, socket, webbrowser, time, math, traceback, datetime, errno + if sys.version_info >= (3,0): + import urllib.request, configparser as ConfigParser + from io import StringIO +@@ -56,9 +56,9 @@ from datetime import date + import gettext + if sys.version_info >= (3,0): + # TODO check if this is right +- gettext.install('messages', localedir='res/i18n') ++ gettext.install('messages', localedir='%%DATADIR%%/res/i18n') + else: +- gettext.install('messages', localedir='res/i18n', unicode=True) ++ gettext.install('messages', localedir='%%DATADIR%%/res/i18n', unicode=True) + + # Clinical mode? Clinical mode sets cfg.JAEGGI_MODE = True, enforces a minimal user + # interface, and saves results into a binary file (default 'logfile.dat') which +@@ -137,14 +137,8 @@ def get_pyglet_media_Player(): + return my_player + + # some functions to assist in path determination +-def main_is_frozen(): +- return (hasattr(sys, "frozen") or # new py2exe +- hasattr(sys, "importers") # old py2exe +- or imp.is_frozen("__main__")) # tools/freeze + def get_main_dir(): +- if main_is_frozen(): +- return os.path.dirname(sys.executable) +- return sys.path[0] ++ return '%%DATADIR%%' + + def get_settings_path(name): + '''Get a directory to save user preferences. diff --git a/games/brainworkshop/files/patch-brainworkshop.pyw b/games/brainworkshop/files/patch-brainworkshop.pyw deleted file mode 100644 index c907f03c726a..000000000000 --- a/games/brainworkshop/files/patch-brainworkshop.pyw +++ /dev/null @@ -1,25 +0,0 @@ ---- brainworkshop.pyw.orig 2019-11-18 21:08:09 UTC -+++ brainworkshop.pyw -@@ -56,9 +56,9 @@ from datetime import date - import gettext - if sys.version_info >= (3,0): - # TODO check if this is right -- gettext.install('messages', localedir='res/i18n') -+ gettext.install('messages', localedir='%%DATADIR%%/i18n') - else: -- gettext.install('messages', localedir='res/i18n', unicode=True) -+ gettext.install('messages', localedir='%%DATADIR%%/i18n', unicode=True) - - # Clinical mode? Clinical mode sets cfg.JAEGGI_MODE = True, enforces a minimal user - # interface, and saves results into a binary file (default 'logfile.dat') which -@@ -142,9 +142,7 @@ def main_is_frozen(): - hasattr(sys, "importers") # old py2exe - or imp.is_frozen("__main__")) # tools/freeze - def get_main_dir(): -- if main_is_frozen(): -- return os.path.dirname(sys.executable) -- return sys.path[0] -+ return '%%DATADIR%%' - - def get_settings_path(name): - '''Get a directory to save user preferences.