summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-12-08 18:30:25 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2021-12-08 19:08:41 +0200
commit1cabc7117f470fe53dc9eff4c336295188f7e052 (patch)
tree7cb8f64f3951b0af9d72903d4e1a17b2c0c3b70a /dev-python/blockdiag
parentdev-python/funcparserlib: add 1.0.0_alpha0 (diff)
downloadgentoo-1cabc7117f470fe53dc9eff4c336295188f7e052.tar.gz
gentoo-1cabc7117f470fe53dc9eff4c336295188f7e052.tar.bz2
gentoo-1cabc7117f470fe53dc9eff4c336295188f7e052.zip
dev-python/blockdiag: add 3.0.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/blockdiag')
-rw-r--r--dev-python/blockdiag/Manifest1
-rw-r--r--dev-python/blockdiag/blockdiag-3.0.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/blockdiag/Manifest b/dev-python/blockdiag/Manifest
index 8ef8fa233e2d..286c03c13870 100644
--- a/dev-python/blockdiag/Manifest
+++ b/dev-python/blockdiag/Manifest
@@ -1 +1,2 @@
DIST blockdiag-2.0.1.tar.gz 2694776 BLAKE2B 289bbeab89dff4e8274efb9e2061b1e412e29bfbd663f64b55346ee09d09279e0813347c51b6cdc9e547b417eba637a85f7cb37f48006467bfa1c9875a113971 SHA512 07690882b05d4cf7be04245e183a7c54d9cd4acab3bb4b5e170b7b0f9229d6ea42eba4dc9fab47604c1572d3c4b09de96cffb610c0c31882b9c0b150f0e76d89
+DIST blockdiag-3.0.0.tar.gz 2694464 BLAKE2B 18887a48e0aa8293703e45746ee68c7c11accfaddf11d0d02af446c769404ce1666c2587b3e212cc48f4fb09bfa6169931c42a024adb739ce9223ccec862905a SHA512 e0e588941c5212a924068cc0b3953b670089e33c385ea8ce52fc54f5ca79414fb12217eba1052c5384c9f2fd81e79304639c9604cdc4a6464f7c221bb67ef267
diff --git a/dev-python/blockdiag/blockdiag-3.0.0.ebuild b/dev-python/blockdiag/blockdiag-3.0.0.ebuild
new file mode 100644
index 000000000000..a71507b524a3
--- /dev/null
+++ b/dev-python/blockdiag/blockdiag-3.0.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_SETUPTOOLS="rdepend"
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Generate block-diagram image from text"
+HOMEPAGE="http://blockdiag.com/ https://pypi.org/project/blockdiag/ https://github.com/blockdiag/blockdiag/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/funcparserlib-1.0.0_alpha0[${PYTHON_USEDEP}]
+ >=dev-python/pillow-3.0.0[${PYTHON_USEDEP}]
+ dev-python/webcolors[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ media-fonts/ja-ipafonts
+ )
+"
+
+distutils_enable_tests --install nose
+
+python_prepare_all() {
+ # disable tests requiring Internet access
+ sed -e 's:test_app_cleans_up_images:_&:' \
+ -i src/blockdiag/tests/test_command.py || die
+ sed -e 's:ghostscript_not_found_test:_&:' \
+ -i src/blockdiag/tests/test_generate_diagram.py || die
+ rm src/blockdiag/tests/diagrams/node_icon.diag || die
+
+ # By some reason it is needed - recheck on next bump
+ touch src/blockdiag/tests/diagrams/invalid.txt || die
+
+ distutils-r1_python_prepare_all
+}
+
+src_test() {
+ ALL_TESTS=1 distutils-r1_src_test
+}
+
+pkg_postinst() {
+ # TODO: Better descriptions!
+ optfeature "PDF format" dev-python/reportlab
+ optfeature "misc extra support" media-gfx/imagemagick
+ optfeature "Ctypes-based simple MagickWand API binding for Python" dev-python/wand
+}