commit:     64a9702a67f63b58a159139bbe395595c864404a
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  2 13:14:16 2018 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Fri Mar  2 13:14:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a9702a

dev-util/buildbot-prometheus: Drop dependency on pip

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 ...rometheus-17.7.2.ebuild => buildbot-prometheus-17.7.2-r1.ebuild} | 6 +++++-
 dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild      | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild 
b/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2-r1.ebuild
similarity index 75%
copy from dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild
copy to dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2-r1.ebuild
index e84caf19914..a930624175f 100644
--- a/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild
+++ b/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2-r1.ebuild
@@ -18,5 +18,9 @@ IUSE=""
 RDEPEND="dev-python/prometheus_client[${PYTHON_USEDEP}]
        dev-util/buildbot[${PYTHON_USEDEP}]"
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       dev-python/pip[${PYTHON_USEDEP}]
        ${RDEPEND}"
+
+python_prepare_all() {
+       sed -i -e "/^install_reqs.*$/d" -e "/^from pip.*$/d" -e "s/requires = 
.*/requires = ['buildbot', 'prometheus_client']/" setup.py || die
+       distutils-r1_python_prepare_all
+}

diff --git a/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild 
b/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild
index e84caf19914..a930624175f 100644
--- a/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild
+++ b/dev-util/buildbot-prometheus/buildbot-prometheus-17.7.2.ebuild
@@ -18,5 +18,9 @@ IUSE=""
 RDEPEND="dev-python/prometheus_client[${PYTHON_USEDEP}]
        dev-util/buildbot[${PYTHON_USEDEP}]"
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       dev-python/pip[${PYTHON_USEDEP}]
        ${RDEPEND}"
+
+python_prepare_all() {
+       sed -i -e "/^install_reqs.*$/d" -e "/^from pip.*$/d" -e "s/requires = 
.*/requires = ['buildbot', 'prometheus_client']/" setup.py || die
+       distutils-r1_python_prepare_all
+}

Reply via email to