summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-07-14 11:15:42 +0200
committerMichał Górny <mgorny@gentoo.org>2019-07-14 14:26:18 +0200
commitc4e1d514a5d4d49ac588e0b28bb733e91638bfbe (patch)
tree44c8baad24e783e0e9f9228f752604b477ab682f /dev-python/blockdiag
parentdev-python/sphinxcontrib-spelling: Bump to 4.3.0, EAPI=7, Py3.7 (diff)
downloadgentoo-c4e1d514a5d4d49ac588e0b28bb733e91638bfbe.tar.gz
gentoo-c4e1d514a5d4d49ac588e0b28bb733e91638bfbe.tar.bz2
gentoo-c4e1d514a5d4d49ac588e0b28bb733e91638bfbe.zip
dev-python/blockdiag: Bump to 1.5.4, EAPI=7, Py3.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/blockdiag')
-rw-r--r--dev-python/blockdiag/Manifest1
-rw-r--r--dev-python/blockdiag/blockdiag-1.5.4.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/blockdiag/Manifest b/dev-python/blockdiag/Manifest
index bf22d0eb2708..3953b0976175 100644
--- a/dev-python/blockdiag/Manifest
+++ b/dev-python/blockdiag/Manifest
@@ -1 +1,2 @@
DIST blockdiag-1.5.3.tar.gz 2704391 BLAKE2B 4d66263d63c73607a9f1e180172be49d25ffd042fb5ab088138dec542a47ee3e68c99442713f32b004ec31ca608686e495d3ec9172f8ab8b074d94d111733144 SHA512 11ff6334d1ae50c103158db6ef9acce76116a17cfb8e0066581c234138f17fabfddd183b154f407fe95dcd414b0054aebdc22682e82a8e7595905f1ee2fd6222
+DIST blockdiag-1.5.4.tar.gz 2693073 BLAKE2B 8a825742b4144667153af00d5e334325f8a3b49823355787dbd577729da8b0fc221ead14ab899ef8aef1800bbc2cdc47f060330bf0a2f2f1bcd055d172d8adbb SHA512 0eef8b3837282ed611e044ee618abca1f799b4a151bc2d7cece140c97ac728b2f3b9a3bb6877d3fed42a74e0173d0cbfd2966521c4dfb21c266975b4062405d2
diff --git a/dev-python/blockdiag/blockdiag-1.5.4.ebuild b/dev-python/blockdiag/blockdiag-1.5.4.ebuild
new file mode 100644
index 000000000000..ae884c40081d
--- /dev/null
+++ b/dev-python/blockdiag/blockdiag-1.5.4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Generate block-diagram image from text"
+HOMEPAGE="http://blockdiag.com/ https://pypi.org/project/blockdiag/ https://bitbucket.org/blockdiag/blockdiag/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}]
+ >=dev-python/pillow-2.2.1[${PYTHON_USEDEP}]
+ dev-python/webcolors[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' -2)
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ media-fonts/ja-ipafonts
+ )
+"
+
+PATCHES=( "${FILESDIR}/blockdiag-1.5.3-py2_7-test-fix.patch")
+python_prepare_all() {
+ sed -i -e /build-base/d setup.cfg || die
+ # unnecessary dep
+ sed -i -e '/pep8/d' setup.py || die
+ # disable tests requiring Internet access
+ sed -i -e 's:test_app_cleans_up_images:_&:' \
+ src/blockdiag/tests/test_command.py || die
+ sed -i -e 's:ghostscript_not_found_test:_&:' \
+ src/blockdiag/tests/test_generate_diagram.py || die
+ rm src/blockdiag/tests/diagrams/node_icon.diag || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ esetup.py test
+}
+
+pkg_postinst() {
+ einfo "For additional functionality, install the following optional packages:"
+ einfo " dev-python/reportlab for pdf format"
+ einfo " media-gfx/imagemagick"
+ einfo " wand: https://pypi.org/project/Wand"
+ einfo " Ctypes-based simple MagickWand API binding for Python"
+}