commit:     f4be84d51adc5fae43494dcc29036c513eb84859
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 07:26:37 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 10 08:01:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4be84d5

net-misc/gsutil: Strip unused monotonic dep

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-misc/gsutil/{gsutil-4.59.ebuild => gsutil-4.59-r1.ebuild} | 3 ++-
 net-misc/gsutil/{gsutil-4.60.ebuild => gsutil-4.60-r1.ebuild} | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-misc/gsutil/gsutil-4.59.ebuild 
b/net-misc/gsutil/gsutil-4.59-r1.ebuild
similarity index 97%
rename from net-misc/gsutil/gsutil-4.59.ebuild
rename to net-misc/gsutil/gsutil-4.59-r1.ebuild
index 48e12ee2207..7cd73f33bff 100644
--- a/net-misc/gsutil/gsutil-4.59.ebuild
+++ b/net-misc/gsutil/gsutil-4.59-r1.ebuild
@@ -28,7 +28,6 @@ RDEPEND="${PYTHON_DEPS}
        >=dev-python/google-reauth-python-0.1.0[${PYTHON_USEDEP}]
        >=dev-python/httplib2-0.18[${PYTHON_USEDEP}]
        >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
-       >=dev-python/monotonic-1.4[${PYTHON_USEDEP}]
        >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
        >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
        >=dev-python/six-1.12.0[${PYTHON_USEDEP}]"
@@ -58,8 +57,10 @@ python_prepare_all() {
        # failes to compile with py3
        rm gslib/vendored/boto/tests/mturk/cleanup_tests.py || die
 
+       # monotonic is only used by bundled fasteners that we do not install
        sed -i \
                -e 's/mock==/mock>=/' \
+               -e '/monotonic/d' \
                setup.py || die
        # Sanity check we didn't miss any updates.
        grep '==' setup.py && die "Need to update version requirements"

diff --git a/net-misc/gsutil/gsutil-4.60.ebuild 
b/net-misc/gsutil/gsutil-4.60-r1.ebuild
similarity index 97%
rename from net-misc/gsutil/gsutil-4.60.ebuild
rename to net-misc/gsutil/gsutil-4.60-r1.ebuild
index 48e12ee2207..7cd73f33bff 100644
--- a/net-misc/gsutil/gsutil-4.60.ebuild
+++ b/net-misc/gsutil/gsutil-4.60-r1.ebuild
@@ -28,7 +28,6 @@ RDEPEND="${PYTHON_DEPS}
        >=dev-python/google-reauth-python-0.1.0[${PYTHON_USEDEP}]
        >=dev-python/httplib2-0.18[${PYTHON_USEDEP}]
        >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
-       >=dev-python/monotonic-1.4[${PYTHON_USEDEP}]
        >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
        >=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
        >=dev-python/six-1.12.0[${PYTHON_USEDEP}]"
@@ -58,8 +57,10 @@ python_prepare_all() {
        # failes to compile with py3
        rm gslib/vendored/boto/tests/mturk/cleanup_tests.py || die
 
+       # monotonic is only used by bundled fasteners that we do not install
        sed -i \
                -e 's/mock==/mock>=/' \
+               -e '/monotonic/d' \
                setup.py || die
        # Sanity check we didn't miss any updates.
        grep '==' setup.py && die "Need to update version requirements"

Reply via email to