diff options
author | Sam James <sam@gentoo.org> | 2021-03-04 03:33:20 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-04 03:49:21 +0000 |
commit | 714e3a839293788d17d197f69a0e45517a9a8b01 (patch) | |
tree | 997713d1078491029a424ae34be4ce1548c72a55 /dev-python | |
parent | dev-python/flask-restful: add Python 3.9 (diff) | |
download | gentoo-714e3a839293788d17d197f69a0e45517a9a8b01.tar.gz gentoo-714e3a839293788d17d197f69a0e45517a9a8b01.tar.bz2 gentoo-714e3a839293788d17d197f69a0e45517a9a8b01.zip |
dev-python/blockdiag: Python 3.9, optfeature
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/blockdiag/blockdiag-2.0.1.ebuild | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/dev-python/blockdiag/blockdiag-2.0.1.ebuild b/dev-python/blockdiag/blockdiag-2.0.1.ebuild index a0667c900eb0..74b07ea3454e 100644 --- a/dev-python/blockdiag/blockdiag-2.0.1.ebuild +++ b/dev-python/blockdiag/blockdiag-2.0.1.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7,8,9} ) DISTUTILS_USE_SETUPTOOLS="rdepend" -inherit distutils-r1 +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/" @@ -25,7 +25,6 @@ RDEPEND=" " DEPEND=" test? ( - ${RDEPEND} dev-python/mock[${PYTHON_USEDEP}] dev-python/nose[${PYTHON_USEDEP}] dev-python/reportlab[${PYTHON_USEDEP}] @@ -34,6 +33,8 @@ DEPEND=" ) " +distutils_enable_tests setup.py + python_prepare_all() { sed -i -e /build-base/d setup.cfg || die # unnecessary dep @@ -48,14 +49,10 @@ python_prepare_all() { distutils-r1_python_prepare_all } -python_test() { - esetup.py test -} - pkg_postinst() { + # TODO: Better descriptions! 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" + optfeature "for PDF format" dev-python/reportlab + optfeature "misc extra support" media-gfx/imagemagick + optfeature "Ctypes-based simple MagickWand API binding for Python" dev-python/wand } |