47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'mercurial'
|
|
pkgname=mercurial
|
|
version=6.5
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3 python3-setuptools python3-devel gettext git"
|
|
makedepends="python3-devel"
|
|
depends="python3 ca-certificates"
|
|
# cvs tests fail
|
|
checkdepends="iana-etc tar unzip which xz subversion-python python3-docutils gnupg
|
|
python3-Pygments"
|
|
short_desc="Fast, lightweight source control management system"
|
|
maintainer="dataCobra <datacobra@thinkbot.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.mercurial-scm.org/"
|
|
distfiles="https://www.mercurial-scm.org/release/mercurial-${version}.tar.gz"
|
|
checksum=a5603d0d395ebf67fe5d27abbb3bd37fcc01871ecf394c793672d2c1e68be7e7
|
|
|
|
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-hghave.t test-merge-tools.t test-status.t test-status-eacces.t
|
|
PATH=/tmp/bin:$PATH python3 run-tests.py ${makejobs} ${_additional_test}
|
|
}
|
|
|
|
post_install() {
|
|
for i in doc/*.1 doc/*.8 doc/*.5 ; do
|
|
vman $i
|
|
done
|
|
vinstall contrib/bash_completion 644 \
|
|
usr/share/bash-completion/completions hg
|
|
vinstall contrib/zsh_completion 644 \
|
|
usr/share/zsh/site-functions _hg
|
|
}
|