git: 9bf62c5e6bb3 - main - games/py-mnemosyne-proj: Update to 2.11

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 30 Nov 2023 10:10:50 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9bf62c5e6bb3faf955c21592dbc340ec350cf111

commit 9bf62c5e6bb3faf955c21592dbc340ec350cf111
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-11-30 08:25:13 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-11-30 10:01:36 +0000

    games/py-mnemosyne-proj: Update to 2.11
    
    - Rename to match PyPI name
    - Switch to DISTVERSION
    - Switch to pep517 build
    - Remove run dependency on textproc/py-googletrans as upstream changed
      it to a new and optional dependency, not ported yet (google-trans-new)
    
    ChangeLog:      https://mnemosyne-proj.org/whats-new
    PR:             274972
---
 MOVED                                               |  1 +
 games/Makefile                                      |  2 +-
 games/{py-mnemosyne => py-mnemosyne-proj}/Makefile  | 19 +++++++++----------
 games/py-mnemosyne-proj/distinfo                    |  3 +++
 games/{py-mnemosyne => py-mnemosyne-proj}/pkg-descr |  0
 games/py-mnemosyne/distinfo                         |  3 ---
 6 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/MOVED b/MOVED
index 5fa666a37dd8..3e336e1258ba 100644
--- a/MOVED
+++ b/MOVED
@@ -8100,3 +8100,4 @@ textproc/py-pygments-25|textproc/py-pygments|2023-11-27|Remove obsoleted port. U
 devel/rubygem-devise48-rails70|devel/rubygem-devise-rails70|2023-11-29|Use devel/rubygem-devise-rails70 instead
 textproc/rubygem-rouge41|textproc/rubygem-rouge|2023-11-29|Use textproc/rubygem-rouge instead
 devel/rubygem-aws-sdk-s31121|devel/rubygem-aws-sdk-s3|2023-11-29|Use devel/rubygem-aws-sdk-s3 instead
+games/py-mnemosyne|games/py-mnemosyne-proj|2023-11-30|Rename to match PyPI name
diff --git a/games/Makefile b/games/Makefile
index e6eb13e7a737..d65e5d9d319f 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -797,7 +797,7 @@
     SUBDIR += py-cbeams
     SUBDIR += py-discord.py
     SUBDIR += py-fife
-    SUBDIR += py-mnemosyne
+    SUBDIR += py-mnemosyne-proj
     SUBDIR += py-pychess
     SUBDIR += py-pysol-cards
     SUBDIR += py-sgflib
diff --git a/games/py-mnemosyne/Makefile b/games/py-mnemosyne-proj/Makefile
similarity index 73%
rename from games/py-mnemosyne/Makefile
rename to games/py-mnemosyne-proj/Makefile
index 8ef0f66e1c4c..39d3b84c7883 100644
--- a/games/py-mnemosyne/Makefile
+++ b/games/py-mnemosyne-proj/Makefile
@@ -1,11 +1,10 @@
-PORTNAME=	mnemosyne
-PORTVERSION=	2.10.1
-PORTREVISION=	5
+PORTNAME=	mnemosyne-proj
+DISTVERSION=	2.11
 PORTEPOCH=	1
 CATEGORIES=	games education python
-MASTER_SITES=	SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
+MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	Mnemosyne-${DISTVERSION}
+DISTNAME=	mnemosyne_proj-${DISTVERSION}
 
 MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	Flash-card tool which optimises your learning process
@@ -14,10 +13,11 @@ WWW=		https://www.mnemosyne-proj.org/
 LICENSE=	LGPL3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
+		gmake>0:devel/gmake
 RUN_DEPENDS=	${PY_PILLOW} \
 		${PYTHON_PKGNAMEPREFIX}argon2-cffi>0:security/py-argon2-cffi@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cheroot>=5.0:www/py-cheroot@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}googletrans>=3.0:textproc/py-googletrans@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}gTTS>=0:audio/py-gtts@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}PyOpenGL>=0:graphics/py-PyOpenGL@${PY_FLAVOR} \
@@ -26,14 +26,13 @@ RUN_DEPENDS=	${PY_PILLOW} \
 
 USES=		pyqt:6 python qt:6 shebangfix
 USE_PYQT=	pyqt6:run sip:run webengine:run
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 USE_QT=		sqldriver-sqlite:run
 
 SHEBANG_FILES=	mnemosyne/pyqt_ui/mnemosyne
 
-NO_ARCH=	yes
+BINARY_ALIAS=	make=gmake
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|icons|pixmaps|' ${WRKSRC}/setup.py
+NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/games/py-mnemosyne-proj/distinfo b/games/py-mnemosyne-proj/distinfo
new file mode 100644
index 000000000000..9126f2d2a498
--- /dev/null
+++ b/games/py-mnemosyne-proj/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701255197
+SHA256 (mnemosyne_proj-2.11.tar.gz) = f704c6d7c6529ccb3cc148342337ebbdfa3910687e2cf95757dc7882ccec91ad
+SIZE (mnemosyne_proj-2.11.tar.gz) = 898706
diff --git a/games/py-mnemosyne/pkg-descr b/games/py-mnemosyne-proj/pkg-descr
similarity index 100%
rename from games/py-mnemosyne/pkg-descr
rename to games/py-mnemosyne-proj/pkg-descr
diff --git a/games/py-mnemosyne/distinfo b/games/py-mnemosyne/distinfo
deleted file mode 100644
index 6b62e371fa7b..000000000000
--- a/games/py-mnemosyne/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1675849555
-SHA256 (Mnemosyne-2.10.1.tar.gz) = cc8efd8ae4576f94b463ceca7dd1be1ca7345d535038070147b66dfce75a04fe
-SIZE (Mnemosyne-2.10.1.tar.gz) = 1275983