aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-10 10:35:29 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-28 08:26:24 +0000
commit6646db38523d2d089cb105bcf32165cc7d1f10aa (patch)
tree669fef8c8d97ca1391ca0993a6855662a3105d08
parent5e7dd152f4abde7d9b44156cc1c36160aca98d50 (diff)
downloadaports-6646db38523d2d089cb105bcf32165cc7d1f10aa.tar.gz
aports-6646db38523d2d089cb105bcf32165cc7d1f10aa.tar.bz2
aports-6646db38523d2d089cb105bcf32165cc7d1f10aa.tar.xz
main/py-pygments: upgrade to 2.4.0
-rw-r--r--main/py-pygments/APKBUILD34
1 files changed, 21 insertions, 13 deletions
diff --git a/main/py-pygments/APKBUILD b/main/py-pygments/APKBUILD
index 44d2e6d6fb..debf87dcf3 100644
--- a/main/py-pygments/APKBUILD
+++ b/main/py-pygments/APKBUILD
@@ -2,32 +2,40 @@
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-pygments
_pkgname=Pygments
-pkgver=2.2.0
-pkgrel=1
+pkgver=2.4.0
+pkgrel=0
pkgdesc="A syntax highlighting package written in Python."
url="http://pygments.org/"
arch="noarch"
-license="BSD"
+license="BSD-2-Clause"
depends="py3-${pkgname#py-}"
makedepends="python2-dev python3-dev py-setuptools"
+checkdepends="py-nose py3-nose"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-doc::noarch"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
# Soure files are modified during build with 2to3 tool, so we must build
# it separately for each Python version.
local python; for python in python2 python3; do
- cp -r "$builddir" "$builddir-$python" || return 1
+ cp -r "$builddir" "$builddir-$python"
done
}
build() {
local python; for python in python2 python3; do
cd "$builddir"-$python
- $python setup.py build || return 1
+ $python setup.py build
+ done
+}
+
+check() {
+ local python; for python in python2 python3; do
+ cd "$builddir"-$python
+ $python tests/run.py
done
}
@@ -55,10 +63,10 @@ _py() {
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"-$python
- $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
local path; for path in "$subpkgdir"/usr/bin/*; do
- mv "$path" "$path-$pyver" || return 1
+ mv "$path" "$path-$pyver"
done
}
@@ -68,16 +76,16 @@ doc() {
cd "$builddir"
install -m 644 -D doc/pygmentize.1 \
- "$subpkgdir"/usr/share/man/man1/pygmentize.1 || return 1
+ "$subpkgdir"/usr/share/man/man1/pygmentize.1
- mkdir -p "$destdir" || return 1
- cp AUTHORS CHANGES LICENSE TODO "$destdir"/ || return 1
+ mkdir -p "$destdir"
+ cp AUTHORS CHANGES LICENSE TODO "$destdir"/
# Note: The documentation in the doc directory needs to be generated
# by py-sphinx
- cp -R ./doc/docs/* "$destdir"/ || return 1
+ cp -R ./doc/docs/* "$destdir"/
default_doc
}
-sha512sums="cc0a4f73e19fa6cbf46314de2e809460c807c631e39ba05cbe5edb5f40db1a687aafcd9715585a0ed45f791710eb6038305e273f282f8682df76f30e63710b29 Pygments-2.2.0.tar.gz"
+sha512sums="86adad3588578eb7e13f74840a875dd2474ca3634e723a337219d27e3f631aa4ca361618d07471a308f909a0d55652a42637643ba91de8e14daa438bcbe81248 Pygments-2.4.0.tar.gz"