commit: 2c484ac90e39d890a71ef54d64c13a1352737ed9
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 30 11:18:58 2018 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Sep 30 11:19:49 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c484ac9
sci-visualization/tensorboard: dont unvendor tensorflow_serving
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
...sorboard-1.11.0.ebuild => tensorboard-1.11.0-r1.ebuild} | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/sci-visualization/tensorboard/tensorboard-1.11.0.ebuild
b/sci-visualization/tensorboard/tensorboard-1.11.0-r1.ebuild
similarity index 69%
rename from sci-visualization/tensorboard/tensorboard-1.11.0.ebuild
rename to sci-visualization/tensorboard/tensorboard-1.11.0-r1.ebuild
index 5e3272e5be0..c7bf274d1a9 100644
--- a/sci-visualization/tensorboard/tensorboard-1.11.0.ebuild
+++ b/sci-visualization/tensorboard/tensorboard-1.11.0-r1.ebuild
@@ -23,6 +23,7 @@ RDEPEND="
dev-python/protobuf-python[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/werkzeug[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
virtual/python-futures[${PYTHON_USEDEP}]"
BDEPEND="app-arch/unzip"
PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
@@ -30,10 +31,15 @@ PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
S="${WORKDIR}/${PN}"
src_prepare() {
- rm -rf "${S}/_vendor" || die
- find "${S}" -name '*.py' -exec sed -i -e \
- 's/^from tensorboard\._vendor import /import /;
- s/^from tensorboard\._vendor\./from /' {} + || die "failed to
unvendor"
+ rm -rf "${S}/_vendor/bleach" || die
+ rm -rf "${S}/_vendor/html5lib" || die
+
+ find "${S}" -name '*.py' -exec sed -i \
+ -e 's/^from tensorboard\._vendor import html5lib/import
html5lib/' \
+ -e 's/^from tensorboard\._vendor import bleach/import bleach/' \
+ -e 's/^from tensorboard\._vendor\.html5lib/from html5lib/' \
+ -e 's/^from tensorboard\._vendor\.bleach/from bleach/' \
+ {} + || die "failed to unvendor"
eapply_user
}