commit: fd4025f8ceae0601baeca81795570db4dc97beb8
Author: Zen <z <AT> pyl <DOT> onl>
AuthorDate: Fri Feb 14 20:42:29 2025 +0000
Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 14:46:10 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd4025f8
dev-python/pycpio: improve 9999 depends, add zsh completion
Signed-off-by: Zen <z <AT> pyl.onl>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>
dev-python/pycpio/pycpio-9999.ebuild | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/dev-python/pycpio/pycpio-9999.ebuild
b/dev-python/pycpio/pycpio-9999.ebuild
index 7f8c13e6a025..9ff2800b0d18 100644
--- a/dev-python/pycpio/pycpio-9999.ebuild
+++ b/dev-python/pycpio/pycpio-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
-inherit distutils-r1 git-r3
+inherit distutils-r1 optfeature git-r3 shell-completion
DESCRIPTION="Python CPIO library"
HOMEPAGE="https://github.com/desultory/pycpio/"
@@ -16,12 +16,23 @@ LICENSE="GPL-2"
SLOT="0"
RDEPEND="
- >=dev-python/zenlib-3.0.2[${PYTHON_USEDEP}]
+ >=dev-python/zenlib-9999[${PYTHON_USEDEP}]
>=dev-python/zstd-1.5.6.1[${PYTHON_USEDEP}]
"
+BDEPEND="test? ( dev-python/zstd[${PYTHON_USEDEP}] )"
+
distutils_enable_tests unittest
python_test() {
eunittest tests
}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ dozshcomp completion/_pycpio # Install zsh autocomplete script
+}
+
+pkg_postinst() {
+ optfeature "zstd compression support" dev-python/zstd
+}