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