Subject: [PATCH] main/mercurial: upgrade to 5.1.1, revert to python2

From: alpine-mips-patches <[email-masked]>
Date: Fri, 13 Sep 2019 11:21:34 +0000

this is a bug report essentially: python3 build is *unusably* slow.

---
 main/mercurial/APKBUILD | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/main/mercurial/APKBUILD b/main/mercurial/APKBUILD
index 1048c99af5..be4bd20d0d 100644
--- a/main/mercurial/APKBUILD
+++ b/main/mercurial/APKBUILD
@@ -1,13 +1,13 @@
 # Contributor: S��ren Tempel <[email-masked]>
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=mercurial
-pkgver=5.1
+pkgver=5.1.1
 pkgrel=0
 pkgdesc="Scalable distributed SCM tool"
 url="https://www.mercurial-scm.org"
 arch="all"
 license="GPL-2.0-or-later"
-makedepends="python3-dev"
+makedepends="python2-dev"
 subpackages="
 	$pkgname-doc
 	$pkgname-vim:vim:noarch
@@ -22,12 +22,12 @@ source="https://www.mercurial-scm.org/release/mercurial-$pkgver.tar.gz"
 
 build() {
 	cd "$builddir"
-	HGPYTHON3=1 python3 setup.py build
+	python2 setup.py build
 }
 
 package() {
 	cd "$builddir"
-	HGPYTHON3=1 python3 setup.py install --root="$pkgdir"
+	python2 setup.py install --root="$pkgdir"
 	install -m755 contrib/hgk contrib/hg-ssh hgeditor "$pkgdir"/usr/bin
 
 	local man
@@ -66,4 +66,4 @@ bashcomp() {
 		"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
 }
 
-sha512sums="cf7a64a181eeb3dc8f24067ea032fb17504358a9ed08cb50ac041e66ef20426c060d997cb5d30e7582874135b0a351b3e58d7297aaa4e009aabbf562a1ab9fae  mercurial-5.1.tar.gz"
+sha512sums="9866fba2e80486ab19f14f1c309890d6f9b84a1357a31caabfe18f3d0b1d8928f677b3cc4d0fe8cf7bbf6df6f59ac0f1982dc6c27db73df3d1cae66cc16abdc8  mercurial-5.1.1.tar.gz"
-- 
2.23.0