From e4f32ecc1e714e50a9c2f6f1c48b0dd4a9de404e Mon Sep 17 00:00:00 2001 From: mobinmob Date: Sat, 15 May 2021 21:34:40 +0300 Subject: [PATCH] mercurial: update to 5.8. --- srcpkgs/mercurial/template | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/srcpkgs/mercurial/template b/srcpkgs/mercurial/template index a8b24bffbee2..c47a313d2186 100644 --- a/srcpkgs/mercurial/template +++ b/srcpkgs/mercurial/template @@ -1,23 +1,39 @@ # Template file for 'mercurial' pkgname=mercurial -version=5.6.1 +version=5.8 revision=1 build_style=python3-module -hostmakedepends="python3 python3-setuptools python3-devel" +hostmakedepends="python3 python3-setuptools python3-devel gettext" makedepends="python3-devel" depends="python3 ca-certificates" checkdepends="iana-etc tar unzip which xz" +# cvs tests fail +checkdepends="iana-etc tar unzip which xz subversion-python python3-docutils gnupg2 + python3-Pygments" short_desc="Fast, lightweight source control management system" maintainer="Johannes " license="GPL-2.0-or-later" homepage="https://www.mercurial-scm.org/" distfiles="https://www.mercurial-scm.org/release/mercurial-${version}.tar.gz" -checksum=e55c254f4904c45226a106780e57f4279aee03368f6ff6a981d5d2a38243ffad +checksum=fc5d6a8f6478d88ef83cdd0ab6d86ad68ee722bbdf4964e6a0b47c3c6ba5309f + +pre_check() { + if [ "$XBPS_TARGET_LIBC" = musl ]; then + # fix hardcoded strerror() value from glibc + vsed -e 's/Address already in use/Address in use/' -i tests/common-pattern.py + fi +} do_check() { + if [ "$XBPS_CHECK_PKGS" = full ]; then + _additional_test=--allow-slow-tests + else + _additional_test='test-s*' + fi + cd tests - rm test-doctest.py test-hghave.t test-https.t test-merge-tools.t test-persistent-nodemap.t - python3 run-tests.py ${makejobs} + rm test-hghave.t test-merge-tools.t + python3 run-tests.py ${makejobs} ${_additional_test} } post_install() {