aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-20 17:04:58 +0300
committerprspkt <prspkt@protonmail.com>2019-06-20 17:13:53 +0300
commitf74a02b656ba49e8e161ad0bd610a4a2d1447660 (patch)
tree2f616ce9d5670fa423cac53a2e318e6307bb23c5
parent62404f707a5633a350fb16d5e6cb18bcfae9e831 (diff)
downloadaports-f74a02b656ba49e8e161ad0bd610a4a2d1447660.tar.bz2
aports-f74a02b656ba49e8e161ad0bd610a4a2d1447660.tar.xz
testing/py3-fonttools: upgrade to 3.43.1
* Add checkdepends and run test suite.
-rw-r--r--testing/py3-fonttools/APKBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/testing/py3-fonttools/APKBUILD b/testing/py3-fonttools/APKBUILD
index 10d35c8f31..31cae41d90 100644
--- a/testing/py3-fonttools/APKBUILD
+++ b/testing/py3-fonttools/APKBUILD
@@ -2,13 +2,14 @@
# Maintainer:
pkgname=py3-fonttools
_pkgname=fonttools
-pkgver=3.21.2
-pkgrel=2
+pkgver=3.43.1
+pkgrel=0
pkgdesc="Converts OpenType and TrueType fonts to and from XML"
url="https://github.com/fonttools/fonttools"
arch="noarch"
license="MIT AND OFL-1.1"
depends="py3-numpy py3-setuptools"
+checkdepends="py3-pytest"
subpackages="py-$_pkgname-doc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/fonttools/fonttools/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
@@ -16,12 +17,23 @@ builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-fonttools" # Backwards compatibility
provides="py-fonttools=$pkgver-r$pkgrel" # Backwards compatibility
+prepare() {
+ default_prepare
+ # remove interpreter line
+ sed -i '1d' Lib/fontTools/mtiLib/__init__.py
+}
+
build() {
python3 setup.py build
}
+check() {
+ cd "$builddir"/build
+ py.test-3
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="64ee4043f35cae39b0d4a00a5445dffa5afebda9c5571f204b909f91d640bc07c7a3c464430da3b9d36e1c9dd2fd14ae547db48cc00cc5b0da39099cb4d7cbb9 py-fonttools-3.21.2.tar.gz"
+sha512sums="9004ed0f50a5e2014fcb7f851c5a6ad61b0a97a6650a52e220c77ae7adc82ef9fa430259c4c70f4012ea89c3d413cc4ca54112b1c2c661cafd6eb4317f2c8b24 fonttools-3.43.1.tar.gz"