diff options
author | 2023-12-22 23:20:59 -0600 | |
---|---|---|
committer | 2024-01-06 15:10:24 +0100 | |
commit | 2ece8d0a250f374f58c679b194c599e2f558b4b4 (patch) | |
tree | fdb05c5d1bf3dbb2a9ac4f4fb613ef44efb37127 /dev-python/docutils | |
parent | dev-python/pipenv: Fix import paths from pipdeptree (diff) | |
download | gentoo-2ece8d0a250f374f58c679b194c599e2f558b4b4.tar.gz gentoo-2ece8d0a250f374f58c679b194c599e2f558b4b4.tar.bz2 gentoo-2ece8d0a250f374f58c679b194c599e2f558b4b4.zip |
dev-python/docutils: dev-python/pillow optfeature
If Pillow is installed, the `image` directive lets you give a `scale`
option without the corresponding `width` and `height` options.
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34437
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/docutils')
-rw-r--r-- | dev-python/docutils/docutils-0.20.1-r1.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-python/docutils/docutils-0.20.1-r1.ebuild b/dev-python/docutils/docutils-0.20.1-r1.ebuild index b6e73efa09cc..cca31d549b55 100644 --- a/dev-python/docutils/docutils-0.20.1-r1.ebuild +++ b/dev-python/docutils/docutils-0.20.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..12} pypy3 ) -inherit distutils-r1 pypi +inherit distutils-r1 optfeature pypi DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)" HOMEPAGE=" @@ -71,3 +71,9 @@ python_install_all() { install_txt_doc "${doc}" done < <(find docs tools -name '*.txt' -print0) } + +pkg_postinst() { + optfeature \ + "auto-detecting the image dimensions when using the 'scale' option" \ + dev-python/pillow +} |