diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-13 16:50:17 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-18 20:28:52 +0100 |
commit | 4d775dd1b1928b710e198bf94b85b6577f87a0ff (patch) | |
tree | 9a2e5827e115ede964402ebfcff8e130b0ab0ad0 /testing | |
parent | b64561804fe039fd6f3b767734773ef70e231310 (diff) | |
download | aports-4d775dd1b1928b710e198bf94b85b6577f87a0ff.tar.bz2 aports-4d775dd1b1928b710e198bf94b85b6577f87a0ff.tar.xz |
testing/nototools: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nototools/APKBUILD | 42 | ||||
-rw-r--r-- | testing/nototools/data_path.patch | 14 | ||||
-rw-r--r-- | testing/nototools/unichr.patch | 11 |
3 files changed, 67 insertions, 0 deletions
diff --git a/testing/nototools/APKBUILD b/testing/nototools/APKBUILD new file mode 100644 index 0000000000..26fb6b1427 --- /dev/null +++ b/testing/nototools/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: +pkgname=nototools +pkgver=20160719 +_commit=71d0fca844d368ff8b4382e5e75e923368d9c580 +pkgrel=0 +pkgdesc="Noto fonts support tools and scripts" +url="https://www.google.com/get/noto/" +arch="noarch" +license="ASL 2.0" +depends="python2" +makedepends="python2-dev py2-setuptools" +install="" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/googlei18n/$pkgname/archive/$_commit.tar.gz + data_path.patch + unichr.patch" +builddir="$srcdir/$pkgname-$_commit" + +build() { + cd "$builddir" + python2 setup.py build || return 1 +} + +package() { + cd "$builddir" + python2 setup.py install --prefix=/usr \ + --root="$pkgdir" || return 1 + + mkdir -p "$pkgdir"/usr/share/nototools + cp -r third_party "$pkgdir"/usr/share/nototools +} + +md5sums="7a775ac591a4f1404ea73eb1eed1635f nototools-20160719.tar.gz +7ad819232fb297d06186d44b4ab02268 data_path.patch +57497289793f79ee125af4710a68e0a6 unichr.patch" +sha256sums="c5bb22f6ac3d56aad9ac25906039943ffd8a7b0906083adc392e19b2ddd2759b nototools-20160719.tar.gz +b9b0f07abf627049139206d9d379f78baa0f3a761a965e64c71d2ffd3c48dcb2 data_path.patch +730f20da8f2ce8af7baae5089b7e7b4bfce43015c9ae80c80243bcb183ad92a9 unichr.patch" +sha512sums="da2a18c2efa754e4899a33b5e94a6dc2a96476dca156e5cf02f37c4bac4d943a968d998eeeaab24114806bfd555129998d5e45a0850527546661df3cf13b574c nototools-20160719.tar.gz +e0d37ab7c2398695a00053c8c47346406d5cf8dda7ff3e24482d5318786794bb601fd2dd813437054b558d52df8934fc3050dc41a9ec9090a08835cabedaaa1c data_path.patch +507b929b029aa63095fc157237c526a527f6e58a7ef3c8f93c9880a7559cd5cf2ec98051a4825803acdbc3c56c661100e247b0cdd49b861d11ca98aa5a1d7964 unichr.patch" diff --git a/testing/nototools/data_path.patch b/testing/nototools/data_path.patch new file mode 100644 index 0000000000..bbfcefdc7c --- /dev/null +++ b/testing/nototools/data_path.patch @@ -0,0 +1,14 @@ +diff -upr a/nototools/unicode_data.py b/nototools/unicode_data.py +--- a/nototools/unicode_data.py 2016-07-18 23:42:00.000000000 +0200 ++++ b/nototools/unicode_data.py 2016-12-16 01:27:55.783284557 +0100 +@@ -401,8 +401,7 @@ def all_scripts(): + return frozenset(_script_code_to_long_name.keys()) + + +-_DATA_DIR_PATH = path.join(path.abspath(path.dirname(__file__)), +- os.pardir, "third_party", "ucd") ++_DATA_DIR_PATH = "/usr/share/nototools/third_party/ucd" + + + def open_unicode_data_file(data_file_name): +Only in b/nototools: unicode_data.py.orig diff --git a/testing/nototools/unichr.patch b/testing/nototools/unichr.patch new file mode 100644 index 0000000000..325e8aaf6e --- /dev/null +++ b/testing/nototools/unichr.patch @@ -0,0 +1,11 @@ +diff -upr a/nototools/unicode_data.py b/nototools/unicode_data.py +--- a/nototools/unicode_data.py 2016-07-18 23:42:00.000000000 +0200 ++++ b/nototools/unicode_data.py 2016-12-16 01:26:52.293428181 +0100 +@@ -33,7 +33,6 @@ from os import path + import re + import sys + +-from fontTools.misc.py23 import unichr + try: + import unicodedata2 as unicodedata # Unicode 8 compliant native lib + except ImportError: |