ReText: update to 7.2.1.

By ericonr:
- fix tests
- add missing Pygments dependency
- add optional enchant dependency

Closes: #31121 [via git-merge-pr]
This commit is contained in:
mobinmob 2021-05-25 23:25:31 +03:00 committed by Érico Nogueira
parent 5b99ec13bf
commit d779e34752

View file

@ -1,19 +1,27 @@
# Template file for 'ReText'
pkgname=ReText
version=7.1.0
revision=2
version=7.2.1
revision=1
wrksrc="${pkgname,,}-${version}"
build_style=python3-module
hostmakedepends="ImageMagick python3 qt5-host-tools qt5-tools python3-setuptools"
makedepends="python3-Markdown python3-Markups python3-PyQt5-webkit qt5-tools"
depends="desktop-file-utils python3-chardet python3-docutils python3-Markdown
python3-Markups python3-PyQt5-webkit"
python3-Markups python3-PyQt5-webkit python3-Pygments python3-enchant"
checkdepends="${depends} xvfb-run"
short_desc="Simple editor for Markdown and reStructuredText"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/retext-project/retext"
distfiles="https://github.com/retext-project/retext/archive/${version}.tar.gz"
checksum=a51cf19232e74a6972ce5d875ed1f24b07e6922841ce04558b99ecfc34b34134
checksum=a1e8784fcb4e186a6e6e42a0f2be4098c27bedb96a9711aa17a9846278e7d932
do_check() {
# taken from
# https://github.com/retext-project/retext/blob/8329423add3a8edea94d8536a5325a3cc46a7a86/.github/workflows/main.yml
# FIXME: run tests under xvfb-run as well, fails with "Could not initialize GLX"
python3 -m unittest discover -s tests -v
}
post_install() {
local icondir=usr/share/icons/hicolor