commit:     f4e12ad13f410d8c4354e94207234d0007b8bcaa
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 16:07:50 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 16:17:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e12ad1

net-nds/nsscache: QA improvements

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://bugs.gentoo.org/923061

 .../{nsscache-0.49.ebuild => nsscache-0.49-r1.ebuild}  | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/net-nds/nsscache/nsscache-0.49.ebuild 
b/net-nds/nsscache/nsscache-0.49-r1.ebuild
similarity index 92%
rename from net-nds/nsscache/nsscache-0.49.ebuild
rename to net-nds/nsscache/nsscache-0.49-r1.ebuild
index 7c9dfe0b027a..b0fd6dc60bed 100644
--- a/net-nds/nsscache/nsscache-0.49.ebuild
+++ b/net-nds/nsscache/nsscache-0.49-r1.ebuild
@@ -11,6 +11,7 @@ inherit distutils-r1
 DESCRIPTION="commandline tool to sync directory services to local cache"
 HOMEPAGE="https://github.com/google/nsscache";
 SRC_URI="https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-version-${PV}"
 
 # upstream *sources* say "or later", but upstream metadata does not include the
 # 'or later' clause.
@@ -34,12 +35,7 @@ RDEPEND="
        >=dev-python/pycurl-7.45.2[${PYTHON_USEDEP}]
        s3? ( dev-python/boto3[${PYTHON_USEDEP}] )"
 DEPEND="${RDEPEND}
-       dev-python/packaging[${PYTHON_USEDEP}]
-       test? (
-               dev-python/pytest[${PYTHON_USEDEP}]
-       )"
-
-S="${WORKDIR}/${PN}-version-${PV}"
+       dev-python/packaging[${PYTHON_USEDEP}]"
 
 distutils_enable_tests pytest
 
@@ -48,19 +44,17 @@ python_prepare_all() {
        # Default config tries $PREFIX/config/nsscache.conf
        sed -i \
                -e '/data_files/{s,.nsscache.conf.,,}' \
-               setup.py
+               setup.py \
+               || die
        # Upstream forgot to bump the version
        sed -i \
                -e '/^__version__/s,0.48,0.49,g' \
-               nss_cache/__init__.py
+               nss_cache/__init__.py \
+               || die
 
        distutils-r1_python_prepare_all
 }
 
-python_compile() {
-       distutils-r1_python_compile
-}
-
 python_install() {
        distutils-r1_python_install
 

Reply via email to