Date: Saturday, February 1, 2020 @ 06:38:03 Author: yan12125 Revision: 560987
archrelease: copy trunk to community-any Added: python-sphinxcontrib-blockdiag/repos/community-any/ python-sphinxcontrib-blockdiag/repos/community-any/PKGBUILD (from rev 560986, python-sphinxcontrib-blockdiag/trunk/PKGBUILD) python-sphinxcontrib-blockdiag/repos/community-any/ipafont-path.diff (from rev 560986, python-sphinxcontrib-blockdiag/trunk/ipafont-path.diff) -------------------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ ipafont-path.diff | 13 +++++++++++++ 2 files changed, 55 insertions(+) Copied: python-sphinxcontrib-blockdiag/repos/community-any/PKGBUILD (from rev 560986, python-sphinxcontrib-blockdiag/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2020-02-01 06:38:03 UTC (rev 560987) @@ -0,0 +1,42 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> + +pkgname=python-sphinxcontrib-blockdiag +pkgver=2.0.0 +pkgrel=1 +pkgdesc='A sphinx extension for embedding block diagram using blockdiag' +arch=(any) +url='https://github.com/blockdiag/sphinxcontrib-blockdiag' +license=(BSD) +depends=(python blockdiag python-sphinx) +makedepends=(python-setuptools) +# otf-ipafont is used by test_latex +checkdepends=(python-nose python-sphinx-testing python-mock python-reportlab otf-ipafont) +optdepends=( + 'python-reportlab: for using PDF as the format of images' +) +source=("https://github.com/blockdiag/sphinxcontrib-blockdiag/archive/$pkgver/$pkgname-$pkgver.tar.gz" + ipafont-path.diff) +sha256sums=('cc7385eb29c81b816ae761c75557ea52a624e51cf6a7456ba7d379ba7932de1a' + 'cd127f6f66d49d91d1b8716b5361d917c354e8eed6b6817e037d2c2441b7e9e8') + +prepare() { + cd sphinxcontrib-blockdiag-$pkgver + patch -Np1 -i ../ipafont-path.diff +} + +build() { + cd sphinxcontrib-blockdiag-$pkgver + python setup.py build +} + +check() { + cd sphinxcontrib-blockdiag-$pkgver + # Running tests with 'nosetests' fails with issues around namespace packages + python -m nose -v +} + +package() { + cd sphinxcontrib-blockdiag-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +} Copied: python-sphinxcontrib-blockdiag/repos/community-any/ipafont-path.diff (from rev 560986, python-sphinxcontrib-blockdiag/trunk/ipafont-path.diff) =================================================================== --- community-any/ipafont-path.diff (rev 0) +++ community-any/ipafont-path.diff 2020-02-01 06:38:03 UTC (rev 560987) @@ -0,0 +1,13 @@ +diff --git a/tests/test_latex.py b/tests/test_latex.py +index bcef06f..175b3ba 100644 +--- a/tests/test_latex.py ++++ b/tests/test_latex.py +@@ -8,7 +8,7 @@ import unittest + + CR = "\r?\n" + +-blockdiag_fontpath = '/usr/share/fonts/truetype/ipafont/ipagp.ttf' ++blockdiag_fontpath = '/usr/share/fonts/OTF/ipagp.ttf' + with_png_app = with_app(srcdir='tests/docs/basic', + buildername='latex', + write_docstring=True,