Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/
Date: Fri, 09 Oct 2020 03:41:16
Message-Id: 1602214794.e3c8b1c6f989f78d1713ad00f2229598d71bd651.perfinion@gentoo
1 commit: e3c8b1c6f989f78d1713ad00f2229598d71bd651
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 8 01:36:08 2020 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 9 03:39:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3c8b1c6
7
8 sci-libs/tensorflow-estimator: bump 2.3.0
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 sci-libs/tensorflow-estimator/Manifest | 1 +
14 .../tensorflow-estimator-2.3.0.ebuild | 75 ++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/sci-libs/tensorflow-estimator/Manifest b/sci-libs/tensorflow-estimator/Manifest
18 index c8747119185..70794737dc2 100644
19 --- a/sci-libs/tensorflow-estimator/Manifest
20 +++ b/sci-libs/tensorflow-estimator/Manifest
21 @@ -3,3 +3,4 @@ DIST bazelbuild-rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip 159656 BLA
22 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
23 DIST tensorflow-estimator-2.1.tar.gz 622792 BLAKE2B d1c8abb22d90c789ebfadaf78ca932f87428274afe6e1ac20670bf6d2b4c1c6ea8f367b1eb7ee64ff9f6e9b8ecdc2f64113924e7e2286e3f4e3d2c36cb101794 SHA512 4aaa21969299b02443e9396c238ef4c03af3bde1d0142a81c04d9706f18b02bfd125f3aaf8ffb47e0a3ffad949c3d3bca3909375f12a1c1e4c55ca1cc7930d51
24 DIST tensorflow-estimator-2.2.0.tar.gz 627362 BLAKE2B 125792fc2167b8af837a99b08a9a26943bc5c1fda8ab3690b01c0d49a6dd39142ff4a063867dfe1bee3b99fb018981d0e4ee45d194caac2cd96a829ad22db0ad SHA512 aaf743835e2c606439fcccb56742997e930ba0e72c01d51633ce86824bbfaacd64607dc1fd7fb9604cc444feb65ebae60c2266be084e1b49ef2a1a9ca5a3d60d
25 +DIST tensorflow-estimator-2.3.0.tar.gz 642118 BLAKE2B 29ecf5b64da20e8e6981375f1631b9b7e8ad061f71d0a3f1ac567bcd04b02102c5854d24e5106660f6bcd7b4ca683bd3bfbde51f236669d0f17e8f847feb7039 SHA512 0befc9c04650a0cd91ce90bc2e9a5d17ae3f7d8d8e4b8f763f223bbb891c73c7e2cbe91a2779af36342008e16f02d118120d94165c6a8e3c14a723b32ee29cb0
26
27 diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.3.0.ebuild b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.3.0.ebuild
28 new file mode 100644
29 index 00000000000..5fa7d1782c3
30 --- /dev/null
31 +++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.3.0.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8} )
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 + https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip -> bazelbuild-rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip
56 + https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
57 +
58 +SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
59 + ${bazel_external_uris}"
60 +
61 +RDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
62 +DEPEND="${RDEPEND}"
63 +BDEPEND="
64 + dev-java/java-config
65 + >=dev-util/bazel-3"
66 +
67 +S="${WORKDIR}/${MY_P}"
68 +
69 +DOCS=( CONTRIBUTING.md README.md )
70 +
71 +src_unpack() {
72 + unpack "${P}.tar.gz"
73 + bazel_load_distfiles "${bazel_external_uris}"
74 +}
75 +
76 +src_prepare() {
77 + bazel_setup_bazelrc
78 + default
79 + python_copy_sources
80 +}
81 +
82 +src_compile() {
83 + export JAVA_HOME=$(java-config --jre-home)
84 +
85 + do_compile() {
86 + ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package
87 + ebazel shutdown
88 +
89 + local srcdir="${T}/src-${EPYTHON/./_}"
90 + mkdir -p "${srcdir}" || die
91 + bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src "${srcdir}" || die
92 + }
93 +
94 + python_foreach_impl run_in_build_dir do_compile
95 +}
96 +
97 +src_install() {
98 + do_install() {
99 + cd "${T}/src-${EPYTHON/./_}" || die
100 + esetup.py install
101 + python_optimize
102 + }
103 + python_foreach_impl do_install
104 +
105 + cd "${S}" || die
106 + einstalldocs
107 +}