xdot: update to 1.2, enable tests.

Closes: #26931 [via git-merge-pr]
This commit is contained in:
Nathan Owens 2020-12-03 15:24:14 -06:00 committed by Érico Rolim
parent 9a6456b53c
commit a63e311a1a

View file

@ -1,15 +1,22 @@
# Template file for 'xdot' # Template file for 'xdot'
pkgname=xdot pkgname=xdot
version=1.1 version=1.2
revision=4 revision=1
wrksrc="xdot.py-${version}" wrksrc="xdot.py-${version}"
build_style=python3-module build_style=python3-module
pycompile_module="xdot"
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-setuptools graphviz gtk+3 python3-gobject" depends="graphviz gtk+3 python3-gobject python3-numpy"
checkdepends="$depends xvfb-run"
short_desc="Interactive viewer for Graphviz dot files" short_desc="Interactive viewer for Graphviz dot files"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later" license="LGPL-3.0-or-later"
homepage="https://github.com/jrfonseca/xdot.py" homepage="https://github.com/jrfonseca/xdot.py"
distfiles="https://github.com/jrfonseca/xdot.py/archive/${version}.tar.gz" distfiles="https://github.com/jrfonseca/xdot.py/archive/${version}.tar.gz"
checksum=724c5977bffd775b680e80b49b65fe8b5a8cf92376aa4bbac6f7b05dd9bf002e checksum=28958ffd791d2922c5f95da0c55a536aed67809b7c88eeb61881453b1cac9faa
do_check() {
# test procedure taken from
# https://github.com/jrfonseca/xdot.py/blob/539361b490f4e6cb773cb0d93dee5fd9fb0aa35f/.github/scripts/test.sh
cd tests
xvfb-run python ../test.py *.dot graphs/*.gv
}