summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/py-keras/Makefile9
-rw-r--r--math/py-keras/files/pkg-message.in5
2 files changed, 12 insertions, 2 deletions
diff --git a/math/py-keras/Makefile b/math/py-keras/Makefile
index 448ab3b16b34..512d85f4026f 100644
--- a/math/py-keras/Makefile
+++ b/math/py-keras/Makefile
@@ -2,7 +2,7 @@
PORTNAME= keras
DISTVERSION= 2.2.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,12 +16,17 @@ RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.14:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}theano>=0.8.0:math/py-theano@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}h5py>=0:science/py-h5py@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}keras-applications>=1.0.6:math/py-keras-applications@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}keras-preprocessing>=1.0.5:math/py-keras-preprocessing@${PY_FLAVOR}
USES= python
USE_GITHUB= yes
GH_ACCOUNT= keras-team
USE_PYTHON= autoplist distutils
+
NO_ARCH= yes
+SUB_FILES= pkg-message
.include <bsd.port.mk>
diff --git a/math/py-keras/files/pkg-message.in b/math/py-keras/files/pkg-message.in
new file mode 100644
index 000000000000..03b53c1eced3
--- /dev/null
+++ b/math/py-keras/files/pkg-message.in
@@ -0,0 +1,5 @@
+===
+There is no Tensorflow port currently in FreeBSD ports tree that is required
+by Keras by default. To make Keras work with Theano backend, one need to modify
+theirs $HOME/.keras/keras.json file and set "backend" option to "theano".
+===