[arch-commits] Commit in (5 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sun Jan 4 00:25:52 UTC 2015


    Date: Sunday, January 4, 2015 @ 01:25:51
  Author: aginiewicz
Revision: 125270

renamed python2-fonttools to python-fonttools, because it now support python 3

Added:
  python-fonttools/
  python-fonttools/repos/
  python-fonttools/trunk/
  python-fonttools/trunk/PKGBUILD
Deleted:
  python2-fonttools/

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Added: python-fonttools/trunk/PKGBUILD
===================================================================
--- python-fonttools/trunk/PKGBUILD	                        (rev 0)
+++ python-fonttools/trunk/PKGBUILD	2015-01-04 00:25:51 UTC (rev 125270)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# 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=2.5
+pkgrel=0
+pkgdesc="Converts OpenType and TrueType fonts to and from XML"
+url="https://github.com/behdad/fonttools"
+license=("BSD")
+arch=('any')
+makedepends=("python2-setuptools" "python-numpy" "python2-numpy")
+source=(https://github.com/behdad/fonttools/archive/${pkgver}.tar.gz)
+md5sums=('aaea54faef0e09466d4c6e99503b291d')
+
+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() {
+  msg "Building Python2"
+
+  cd "$srcdir"/fonttools-py2-${pkgver}
+  python2 setup.py build
+
+  msg "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/pyftinspect{,2}
+  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
+
+  install -D -m755 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  chmod oga+r "$pkgdir"/usr/share/man/man1/ttx2.1
+}
+
+package_python-fonttools() {
+  depends=("python-numpy")
+
+  cd "$srcdir"/fonttools-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -D -m755 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  chmod oga+r "$pkgdir"/usr/share/man/man1/ttx.1
+}


Property changes on: python-fonttools/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list