summaryrefslogtreecommitdiff
path: root/sci-libs/keras
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/keras')
-rw-r--r--sci-libs/keras/Manifest4
-rw-r--r--sci-libs/keras/keras-2.8.0.ebuild87
-rw-r--r--sci-libs/keras/metadata.xml3
3 files changed, 92 insertions, 2 deletions
diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index 8bfa2e9d946b..f8dd672fe575 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -2,5 +2,7 @@ AUX keras-2.7.0-0001-bazel-Use-system-protobuf.patch 10785 BLAKE2B 3d9c08a2ed78c
DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 BLAKE2B 0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56 SHA512 2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
DIST keras-2.7.0.tar.gz 2221030 BLAKE2B 1920e2d01ed88599a49c188691999e30e2ade2fceb3e2225f0c972a34bc0690e4edc56405e0f17c869695b99345eac9fb9a22e9c9aa4fd7dd02be37286ffd62c SHA512 31e4b2d2d10509e8b3cb86d08965cb5d1b1dad96dce322ba3c1aed1e0e585241e121c9873aa2f7986c6ac9c01d6c0a15b7a7d970caa288ac8eb95a93263df56f
+DIST keras-2.8.0.tar.gz 2001168 BLAKE2B 64e756da102369bd41b176245f7f8184b2376b6fb714485627e30107af552035931c9fcff18d82def5f4e1b83f2eae2fa3d0c18b030986f8d3a53dffbdbb2963 SHA512 a70ae1409761211f3b59d358df4d5abf6bb76b915f5dde90ada5a867aef2831581836d38876bd2e962f3c345f59373bf76a7c21247cef8aeaec45ba1301f787b
EBUILD keras-2.7.0.ebuild 2269 BLAKE2B 575fcc1136e8157a2cf95b89ae1487c1bd1f4cd34f9cea16837c0238838091589135c7cfe443595a1bb90c254998bd3ecc182eb28f5bb2a4144cddc0a5a42e62 SHA512 6854e59c4bb0c67311935adf1ae5d3a69bb46d1a425f46cc130611e8a22a135a3d311a56d47359aa500211f6b2a5f6ec9a03dbb38806c9d6ee35baf9f75a30a8
-MISC metadata.xml 470 BLAKE2B 3246fea02a94eea249d50ea91e2f3297c05e711c9fc27d0a43b859029dfd36dbe8a5bb82157b711f408833ed8bf853031e834a49f8765e861b021bf95dd2797a SHA512 33dbf6cc3ae154844f0eeef7e6c8174b355ceef80d3bfb5edab372b013b5b904597e92fbf965abe2a43374e3e6cc2532d1da4b0a592450911752c4e7570f0054
+EBUILD keras-2.8.0.ebuild 2267 BLAKE2B ad23f660b7c5f27cd1befb7f4e8d29f99979a076b6c05a5f38f2dbef0303145dd1e33b5988e2a433cb07e77d64be0f7eb2151752c8a9a469861641e5f1c964c2 SHA512 0872278a00b74f7170f847f722aef6eb81cf1cb87ccad3dc97f64e4bee76023b2f5356da447103386a74f1d6cf4e513b1ec6569ae90640565bcd73370967be43
+MISC metadata.xml 500 BLAKE2B 503c82776ec2dd8ceb09ec37e41fb2555c34937d4bf8febb25aaf2faeefb6ae86d67d8e9e04ff47d0b81758fe4710a02ecb0939f727a7af0dbd25bcee50f3e2b SHA512 e2e0edf60e56427234b6a39e4a818735bd691d582eadca23d92debde8f3f759dea2b2a3acc399e1010ffd37d7bb4fa8d468076c0220b653a41668ead58ee5f66
diff --git a/sci-libs/keras/keras-2.8.0.ebuild b/sci-libs/keras/keras-2.8.0.ebuild
new file mode 100644
index 000000000000..ad31dfa47c78
--- /dev/null
+++ b/sci-libs/keras/keras-2.8.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8,9} )
+inherit bazel distutils-r1
+
+DESCRIPTION="Deep Learning for humans"
+HOMEPAGE="https://keras.io/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+bazel_external_uris="
+ https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
+ https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/keras-team/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ ${bazel_external_uris}"
+
+RDEPEND="
+ >=dev-libs/protobuf-3.13.0:=
+ dev-python/absl-py[${PYTHON_USEDEP}]
+ dev-python/h5py[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ >=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ >=sci-libs/keras-applications-1.0.8[${PYTHON_USEDEP}]
+ >=sci-libs/keras-preprocessing-1.1.2[${PYTHON_USEDEP}]
+ >=sci-libs/tensorflow-2.8[python,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="
+ app-arch/unzip
+ >=dev-libs/protobuf-3.13.0
+ dev-java/java-config
+ >=dev-util/bazel-4.2.2"
+
+# Bazel tests not pytest, also want GPU access
+RESTRICT="test"
+DOCS=( CONTRIBUTING.md README.md )
+PATCHES=(
+ "${FILESDIR}/keras-2.7.0-0001-bazel-Use-system-protobuf.patch"
+)
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+ bazel_setup_bazelrc
+ default
+ python_copy_sources
+}
+
+src_compile() {
+ export JAVA_HOME=$(java-config --jre-home)
+
+ do_compile() {
+ ebazel build //keras/tools/pip_package:build_pip_package
+ ebazel shutdown
+
+ local srcdir="${T}/src-${EPYTHON/./_}"
+ mkdir -p "${srcdir}" || die
+ bazel-bin/keras/tools/pip_package/build_pip_package --src "${srcdir}" || die
+ }
+
+ python_foreach_impl run_in_build_dir do_compile
+}
+
+src_install() {
+ do_install() {
+ cd "${T}/src-${EPYTHON/./_}" || die
+ esetup.py install
+ python_optimize
+ }
+ python_foreach_impl do_install
+
+ cd "${S}" || die
+ einstalldocs
+}
diff --git a/sci-libs/keras/metadata.xml b/sci-libs/keras/metadata.xml
index b0b89c812a51..c2708124bd6d 100644
--- a/sci-libs/keras/metadata.xml
+++ b/sci-libs/keras/metadata.xml
@@ -6,7 +6,8 @@
<name>Jason Zaman</name>
</maintainer>
<longdescription lang="en">
- TensorFlow Keras is an implementation of the Keras API that uses TensorFlow as a backend.
+ A deep learning for humans. TensorFlow Keras is an implementation
+ of the Keras API that uses TensorFlow as a backend.
</longdescription>
<upstream>
<remote-id type="github">keras-team/keras</remote-id>