Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2025 21:24:02 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 743880b0a216 - main - editors/retext: Update to 8.1.0
Message-ID:  <202501102124.50ALO2EQ066922@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=743880b0a216dc7acc2fff7055780383ea723a75

commit 743880b0a216dc7acc2fff7055780383ea723a75
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-01-10 16:59:46 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-01-10 21:23:46 +0000

    editors/retext: Update to 8.1.0
    
    Run tests in Xvfb using an approach to upstream CI:
    `run: xvfb-run -a -s "-screen 0 1024x768x24" python -m unittest discover -s tests -v`
    
    ChangeLog: https://github.com/retext-project/retext/releases/tag/8.1.0
---
 editors/retext/Makefile | 23 +++++++++++++++++------
 editors/retext/distinfo |  6 +++---
 2 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/editors/retext/Makefile b/editors/retext/Makefile
index 73076302d2de..de6637ec2dd8 100644
--- a/editors/retext/Makefile
+++ b/editors/retext/Makefile
@@ -1,8 +1,8 @@
 PORTNAME=	ReText
-DISTVERSION=	8.0.2
-PORTREVISION=	1
+DISTVERSION=	8.1.0
 CATEGORIES=	editors
 MASTER_SITES=	PYPI
+DISTNAME=	retext-${DISTVERSION}
 
 MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	Markdown editor
@@ -16,15 +16,26 @@ BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}markdown>=3.0:textproc/py-markdown@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}markups>=3.0.0:textproc/py-markups@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}markups>=4.0.0:textproc/py-markups@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-markdown-math>=0.6:textproc/py-python-markdown-math@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pymdown-extensions>0:textproc/py-pymdown-extensions@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pymdown-extensions>0:textproc/py-pymdown-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		Xvfb:x11-servers/xorg-server@xvfb
 
-USES=		desktop-file-utils pyqt:6 python:3.9+
+USES=		desktop-file-utils pyqt:6 python:3.9+ qt:6
 USE_PYQT=	pyqt6:run
-USE_PYTHON=	autoplist noflavors pep517 pytest
+USE_PYTHON=	autoplist noflavors pep517
+USE_QT=		tools:build
 
 NO_ARCH=	yes
 
+# Run tests in Xvfb using an approach to upstream CI:
+# https://github.com/retext-project/retext/blob/2ef7142e9422e8423e168a7ab30f8e491510f9b6/.github/workflows/main.yml#L59
+# run: xvfb-run -a -s "-screen 0 1024x768x24" python -m unittest discover -s tests -v
+do-test:
+	Xvfb :1 -screen 0 1024x768x24 & \
+	cd ${WRKSRC} && ${SETENV} DISPLAY=:1 ${PYTHON_CMD} -m pytest -rs -v ; \
+	killall -v Xvfb
+
 .include <bsd.port.mk>
diff --git a/editors/retext/distinfo b/editors/retext/distinfo
index 96bc48f1c236..816cb96b5683 100644
--- a/editors/retext/distinfo
+++ b/editors/retext/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1710616677
-SHA256 (ReText-8.0.2.tar.gz) = fd74d06c580786888da06569ac28981f1d52ae07bc75a9ce6345a0df2c8280dc
-SIZE (ReText-8.0.2.tar.gz) = 546236
+TIMESTAMP = 1736455520
+SHA256 (retext-8.1.0.tar.gz) = d2054a1ef9fd1f40bfd268ed46091131fcb60725b9de36655f59f8f265672ccc
+SIZE (retext-8.1.0.tar.gz) = 569692



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501102124.50ALO2EQ066922>