[arch-commits] Commit in python-fonttools/trunk (PKGBUILD)

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Aug 29 10:31:31 UTC 2019


    Date: Thursday, August 29, 2019 @ 10:31:30
  Author: aginiewicz
Revision: 504748

upgpkg: python-fonttools 4.0.0-1

python-fonttools: new upstream release, only supports python 3

Modified:
  python-fonttools/trunk/PKGBUILD

----------+
 PKGBUILD |   62 +++++++++++++++----------------------------------------------
 1 file changed, 16 insertions(+), 46 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-29 10:28:38 UTC (rev 504747)
+++ PKGBUILD	2019-08-29 10:31:30 UTC (rev 504748)
@@ -2,64 +2,34 @@
 # Contributor: Firmicus <firmicus āt gmx dōt net>
 # Contributor: flying sheep <flying-sheep at web.de>
 
-pkgbase=python-fonttools
-pkgname=('python2-fonttools' 'python-fonttools')
-pkgver=3.44.0
+pkgname='python-fonttools'
+pkgver=4.0.0
 pkgrel=1
-pkgdesc="Converts OpenType and TrueType fonts to and from XML"
+pkgdesc="A library to manipulate font files from Python"
 url="https://github.com/fonttools/fonttools"
 license=("MIT")
 arch=('any')
-makedepends=("python2-setuptools" "python-setuptools" "python-numpy" "python2-numpy")
+depends=("python")
+makedepends=("python-setuptools")
+optdepends=("python-lxml: faster backend for XML files reading/writing"
+	    "python-fs: to read/write UFO source files"
+	    "python-brotli: to compress/decompress WOFF 2.0 web fonts"
+	    "python-zopfli: faster backend fom WOFF 1.0 web fonts compression"
+	    "python-scipy: for finding wrong contour/component order between different masters"
+	    "python-matplotlib: for visualizing DesignSpaceDocument and resulting VariationModel"
+	    "python-sympy: for symbolic font statistics analysis"
+	    "python-pyqt5: for drawing glyphs with Qt's QPainterPath"
+	    "python-reportlab: to drawing glyphs as PNG images")
 source=("https://github.com/fonttools/fonttools/releases/download/${pkgver}/fonttools-${pkgver}.zip")
-sha256sums=('b72cc654e07219d8d7d8c624d1af13cec6f6cc2a51189f8385c295725e4ac36c')
+sha256sums=('9415fda795f4ff8e89d41ab907388ec5a4c236f4774ea65a746d8c1e4e839d3d')
 
-prepare() {
-  cd "$srcdir"
-  cp -a fonttools-${pkgver} fonttools-py2-${pkgver}
-  cd fonttools-py2-${pkgver}
-
-  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
-      -i $(find . -name '*.py')
-}
-
 build() {
-  # "Building Python2"
-  cd "$srcdir"/fonttools-py2-${pkgver}
-  python2 setup.py build
-
-  # "Building Python3"
   cd "$srcdir"/fonttools-${pkgver}
   python setup.py build
 }
 
-package_python2-fonttools() {
-  depends=("python2-numpy")
-
-  cd "$srcdir"/fonttools-py2-${pkgver}
-
-  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
-  # fix conflicts with python-fonttools
-  mv "$pkgdir"/usr/bin/pyftmerge{,2}
-  mv "$pkgdir"/usr/bin/pyftsubset{,2}
-  mv "$pkgdir"/usr/bin/ttx{,2}
-  mv "$pkgdir"/usr/share/man/man1/ttx{,2}.1
-  mv "$pkgdir"/usr/bin/fonttools{,2}
-
-  install -D -m755 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  chmod oga+r "$pkgdir"/usr/share/man/man1/ttx2.1
-}
-
-package_python-fonttools() {
-  depends=("python-numpy")
-
+package() {
   cd "$srcdir"/fonttools-${pkgver}
-
   python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
   install -D -m755 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  chmod oga+r "$pkgdir"/usr/share/man/man1/ttx.1
 }



More information about the arch-commits mailing list