1 |
commit: 5d542c18f193f7ac807f94d8eed0bda7ff854385 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 13 08:17:58 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 13 13:32:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d542c18 |
7 |
|
8 |
sci-libs/tensorflow-estimator: bump 1.15.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
sci-libs/tensorflow-estimator/Manifest | 1 + |
14 |
.../tensorflow-estimator-1.15.0.ebuild | 59 ++++++++++++++++++++++ |
15 |
2 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/tensorflow-estimator/Manifest b/sci-libs/tensorflow-estimator/Manifest |
18 |
index 35a720495fc..0d5db6da28e 100644 |
19 |
--- a/sci-libs/tensorflow-estimator/Manifest |
20 |
+++ b/sci-libs/tensorflow-estimator/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST tensorflow-estimator-1.13.0.tar.gz 530871 BLAKE2B 4f208ed20e10fa68e06d21c9865cd07623e14362bdcff456bc9b412431c8f12f289c8a8f8ad89cb1f0ec98b1432844632d7e1097ea29d40bf6f67b90b4968f93 SHA512 e4be92b805776d2be5f391f737f1043b994f42721173c4d4a7dbf3fac9b00121cb072091a474bf71c7dcd952fc8b330cf9254c7a5ad9d096ba1cdc12ba12078b |
23 |
DIST tensorflow-estimator-1.14.0.tar.gz 670750 BLAKE2B d24bba87131605f965be05cd76103e77c45c606af685f08d478cf4acaf2975aba6134bfe9ea51d1837297cf4ce5339bad761af6c00077193ccbae3f1bbcaa667 SHA512 65d21f4d275edc57feb0b36775f275d7b7adc1f5c2958b8269dcf61bed0189570adcb2eaf981e2ae4ba7e6ccec6d4d467384a267a6a29c325dc8126b1bdced5a |
24 |
+DIST tensorflow-estimator-1.15.0.tar.gz 696331 BLAKE2B 67aac4adb05149de13d68595e3520f4b843dedd48b58b0b0bea920767f04f64291842b9931f2540b6c6e997bbd01f8e23f64da9ea02ee295f57c777186e5ab19 SHA512 ea0f0c9f74db3d7bed5ee2b38a8eafbeae8fddd824c410461a88ecebc3e11ad6f885cc7404b3af8c7751562bbc2b71fb7e0e5627cb5dea05617ec1a383279bee |
25 |
|
26 |
diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-1.15.0.ebuild b/sci-libs/tensorflow-estimator/tensorflow-estimator-1.15.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..736ba39f9e5 |
29 |
--- /dev/null |
30 |
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-1.15.0.ebuild |
31 |
@@ -0,0 +1,59 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python{3_5,3_6,3_7} ) |
38 |
+MY_PN="estimator" |
39 |
+MY_PV=${PV/_rc/-rc} |
40 |
+MY_P=${MY_PN}-${MY_PV} |
41 |
+ |
42 |
+inherit bazel distutils-r1 flag-o-matic toolchain-funcs |
43 |
+ |
44 |
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine learning programming" |
45 |
+HOMEPAGE="https://www.tensorflow.org/" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="" |
51 |
+ |
52 |
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
53 |
+ |
54 |
+RDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+BDEPEND=" |
57 |
+ dev-java/java-config" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}" |
60 |
+ |
61 |
+DOCS=( CONTRIBUTING.md README.md ) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ sed -i "/^_VERSION/s/'[0-9.]*'/'${PV}'/" tensorflow_estimator/tools/pip_package/setup.py || die |
65 |
+ bazel_setup_bazelrc |
66 |
+ default |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ export JAVA_HOME=$(java-config --jre-home) |
71 |
+ |
72 |
+ ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package |
73 |
+ ebazel shutdown |
74 |
+ |
75 |
+ local srcdir="${T}/src" |
76 |
+ mkdir -p "${srcdir}" || die |
77 |
+ bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src "${srcdir}" || die |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ do_install() { |
82 |
+ cd "${T}/src" || die |
83 |
+ esetup.py install |
84 |
+ python_optimize |
85 |
+ } |
86 |
+ python_foreach_impl do_install |
87 |
+ |
88 |
+ cd "${S}" || die |
89 |
+ einstalldocs |
90 |
+} |