Date: Sunday, November 13, 2022 @ 13:05:23
  Author: yan12125
Revision: 1347243

archrelease: copy trunk to community-any

Added:
  python-sphinxcontrib-blockdiag/repos/community-any/PKGBUILD
    (from rev 1347242, python-sphinxcontrib-blockdiag/trunk/PKGBUILD)
  python-sphinxcontrib-blockdiag/repos/community-any/ipafont-path.diff
    (from rev 1347242, python-sphinxcontrib-blockdiag/trunk/ipafont-path.diff)
  python-sphinxcontrib-blockdiag/repos/community-any/use-unittest-mock.diff
    (from rev 1347242, 
python-sphinxcontrib-blockdiag/trunk/use-unittest-mock.diff)
Deleted:
  python-sphinxcontrib-blockdiag/repos/community-any/PKGBUILD
  python-sphinxcontrib-blockdiag/repos/community-any/ipafont-path.diff

------------------------+
 PKGBUILD               |   88 ++++++++++++++++++++++++-----------------------
 ipafont-path.diff      |   26 ++++++-------
 use-unittest-mock.diff |   10 +++++
 3 files changed, 69 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-13 13:05:00 UTC (rev 1347242)
+++ PKGBUILD    2022-11-13 13:05:23 UTC (rev 1347243)
@@ -1,42 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-
-pkgname=python-sphinxcontrib-blockdiag
-pkgver=3.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=('9061847004d900b458c2d611b4b539b2a3d594648060a222959f49c837cb41dc'
-            '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/PKGBUILD (from rev 
1347242, python-sphinxcontrib-blockdiag/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-11-13 13:05:23 UTC (rev 1347243)
@@ -0,0 +1,46 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-sphinxcontrib-blockdiag
+pkgver=3.0.0
+pkgrel=2
+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
+# python-nose will not be needed after 
https://github.com/blockdiag/sphinxcontrib-blockdiag/pull/25
+checkdepends=(python-nose python-sphinx-testing 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
+        use-unittest-mock.diff)
+sha256sums=('9061847004d900b458c2d611b4b539b2a3d594648060a222959f49c837cb41dc'
+            'cd127f6f66d49d91d1b8716b5361d917c354e8eed6b6817e037d2c2441b7e9e8'
+            '63d132b35ebb7702c2d8d638787bd54c3a12506a634d9181f008d4c66d3bb938')
+
+prepare() {
+  cd sphinxcontrib-blockdiag-$pkgver
+  patch -Np1 -i ../ipafont-path.diff
+  patch -Np1 -i ../use-unittest-mock.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
+}

Deleted: ipafont-path.diff
===================================================================
--- ipafont-path.diff   2022-11-13 13:05:00 UTC (rev 1347242)
+++ ipafont-path.diff   2022-11-13 13:05:23 UTC (rev 1347243)
@@ -1,13 +0,0 @@
-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,

Copied: python-sphinxcontrib-blockdiag/repos/community-any/ipafont-path.diff 
(from rev 1347242, python-sphinxcontrib-blockdiag/trunk/ipafont-path.diff)
===================================================================
--- ipafont-path.diff                           (rev 0)
+++ ipafont-path.diff   2022-11-13 13:05:23 UTC (rev 1347243)
@@ -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,

Copied: 
python-sphinxcontrib-blockdiag/repos/community-any/use-unittest-mock.diff (from 
rev 1347242, python-sphinxcontrib-blockdiag/trunk/use-unittest-mock.diff)
===================================================================
--- use-unittest-mock.diff                              (rev 0)
+++ use-unittest-mock.diff      2022-11-13 13:05:23 UTC (rev 1347243)
@@ -0,0 +1,10 @@
+--- sphinxcontrib-blockdiag-3.0.0/tests/test_errors.py.orig    2022-11-13 
03:36:24.915816674 +0000
++++ sphinxcontrib-blockdiag-3.0.0/tests/test_errors.py 2022-11-13 
03:36:29.122741097 +0000
+@@ -1,6 +1,6 @@
+ # -*- coding: utf-8 -*-
+ 
+-from mock import patch
++from unittest.mock import patch
+ from sphinx_testing import with_app
+ 
+ import sys

Reply via email to