1 |
commit: 741b32f777bdaabe8761415558eaa7f2b8b5e839 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 23 17:50:46 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 23 19:48:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=741b32f7 |
7 |
|
8 |
sci-libs/tensorflow-estimator: bump 2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, 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-2.1.ebuild | 67 ++++++++++++++++++++++ |
15 |
2 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/tensorflow-estimator/Manifest b/sci-libs/tensorflow-estimator/Manifest |
18 |
index a6efdbdc969..7ad05bb861f 100644 |
19 |
--- a/sci-libs/tensorflow-estimator/Manifest |
20 |
+++ b/sci-libs/tensorflow-estimator/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip 72534 BLAKE2B 0bbcc2b3fefb8df84d9f72b13da59c377fcd657ead378f85f80a587f8750302236212ae5c58819933015e62425126bead0733d2924a567fb9c5cb14fb75271a8 SHA512 1818c555504ba89afff88d75fe8b4e1386b3665a3ad477c26b4e9504c8f52f398b6aaedbad41a4ab8b8d9b3f86e0992e7c83a6da70241685d7b79ba177af1035 |
23 |
DIST tensorflow-estimator-1.15.1.tar.gz 696316 BLAKE2B 7797ae13fa5f56920df912f7d0eaef214a381acb25632dc2d21c6bbf5744bcc36b32f21e30b18be16d37f7a1deb30b2139d58c2c0f97a1de7a5f767a8a5462d8 SHA512 ae42057870cfb0e19d45ee59bd99c110ecfb3ae43cd5a5536711c7d2528b429c433b0f594e462eae9c40b34dd7813f3b14b1282cbf2edc725e13c45e93da818d |
24 |
DIST tensorflow-estimator-2.0.1.tar.gz 618583 BLAKE2B d4ae6225cb8a56febc9ffa64d5f811fc41db462534361a183095f724ce6deb17fa22edbd13bacd2d556adcc023dff1daeb7bf7338360b3cb49b19dc3bc3e97d0 SHA512 d7aa35784aa2726c49039be50b73cc957e7f883414bb43101527918bacfa55632df89e6f54cfc58a096512fc49a6ea7524aea87af0579c2a52db2ca7f5ee4bc2 |
25 |
+DIST tensorflow-estimator-2.1.tar.gz 622792 BLAKE2B d1c8abb22d90c789ebfadaf78ca932f87428274afe6e1ac20670bf6d2b4c1c6ea8f367b1eb7ee64ff9f6e9b8ecdc2f64113924e7e2286e3f4e3d2c36cb101794 SHA512 4aaa21969299b02443e9396c238ef4c03af3bde1d0142a81c04d9706f18b02bfd125f3aaf8ffb47e0a3ffad949c3d3bca3909375f12a1c1e4c55ca1cc7930d51 |
26 |
|
27 |
diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.1.ebuild b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0736fbdc237 |
30 |
--- /dev/null |
31 |
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.1.ebuild |
32 |
@@ -0,0 +1,67 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{3_5,3_6,3_7} ) |
39 |
+MY_PN="estimator" |
40 |
+MY_PV=${PV/_rc/-rc} |
41 |
+MY_P=${MY_PN}-${MY_PV} |
42 |
+ |
43 |
+inherit bazel distutils-r1 flag-o-matic toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine learning programming" |
46 |
+HOMEPAGE="https://www.tensorflow.org/" |
47 |
+ |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="" |
52 |
+ |
53 |
+bazel_external_uris=" |
54 |
+ https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip -> bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip" |
55 |
+ |
56 |
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz |
57 |
+ ${bazel_external_uris}" |
58 |
+ |
59 |
+RDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]" |
60 |
+DEPEND="${RDEPEND}" |
61 |
+BDEPEND=" |
62 |
+ dev-java/java-config" |
63 |
+ |
64 |
+S="${WORKDIR}/${MY_P}" |
65 |
+ |
66 |
+DOCS=( CONTRIBUTING.md README.md ) |
67 |
+ |
68 |
+src_unpack() { |
69 |
+ unpack "${P}.tar.gz" |
70 |
+ bazel_load_distfiles "${bazel_external_uris}" |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ bazel_setup_bazelrc |
75 |
+ default |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ export JAVA_HOME=$(java-config --jre-home) |
80 |
+ |
81 |
+ ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package |
82 |
+ ebazel shutdown |
83 |
+ |
84 |
+ local srcdir="${T}/src" |
85 |
+ mkdir -p "${srcdir}" || die |
86 |
+ bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src "${srcdir}" || die |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ do_install() { |
91 |
+ cd "${T}/src" || die |
92 |
+ esetup.py install |
93 |
+ python_optimize |
94 |
+ } |
95 |
+ python_foreach_impl do_install |
96 |
+ |
97 |
+ cd "${S}" || die |
98 |
+ einstalldocs |
99 |
+} |