forked from Lainports/freebsd-ports
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
This commit is contained in:
parent
fce28cc18f
commit
743880b0a2
2 changed files with 20 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue