mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/py-hglib: upgrade to 2.5 and modernize abuild
This commit is contained in:
parent
7d72a93f5a
commit
e396733a73
@ -2,21 +2,28 @@
|
|||||||
# Maintainer: André Klitzing <aklitzing@gmail.com>
|
# Maintainer: André Klitzing <aklitzing@gmail.com>
|
||||||
pkgname=py-hglib
|
pkgname=py-hglib
|
||||||
_pkgname=python-hglib
|
_pkgname=python-hglib
|
||||||
pkgver=2.4
|
pkgver=2.5
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="A fast and convenient interface to Mercurial's command server"
|
pkgdesc="A fast and convenient interface to Mercurial's command server"
|
||||||
url="https://pypi.python.org/pypi/python-hglib"
|
url="https://pypi.python.org/pypi/python-hglib"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
makedepends="mercurial python2-dev py-setuptools python3-dev"
|
makedepends="mercurial python2-dev py-setuptools python3-dev"
|
||||||
|
checkdepends="py-nose"
|
||||||
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
|
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
|
||||||
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgname-$pkgver"
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
python2 setup.py build || return 1
|
python2 setup.py build
|
||||||
python3 setup.py build || return 1
|
python3 setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
python2 test.py
|
||||||
|
python3 test.py
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
@ -42,4 +49,4 @@ _py3() {
|
|||||||
_py python3
|
_py python3
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="91fff5b5badb798aa0a5a25d8544718afe545a53d1b4f5725abbf46a07a81fbbea12e3a8b05c874b4693668e3fc57362100844d7387ed3dc6dc7b50d3a7e8c52 python-hglib-2.4.tar.gz"
|
sha512sums="6152094dcace80b6c6b927543d6450ef2eb0bf6ab86de966a025dba12fc0a95910a0aaea7df2491d320c00ee76a4c3f5dfb3cfbdaaaaa6c941a3322c1b0dbab9 python-hglib-2.5.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user