mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
math/py-keras: Fix WWW location; Fix formatting
This commit is contained in:
parent
dc4e011ace
commit
ac8a659bb5
2 changed files with 11 additions and 13 deletions
|
@ -5,16 +5,12 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
MAINTAINER= yuri@FreeBSD.org
|
MAINTAINER= yuri@FreeBSD.org
|
||||||
COMMENT= Deep learning library for Python
|
COMMENT= Deep learning library for Python
|
||||||
|
WWW= https://keras.io/
|
||||||
USE_GITHUB= yes
|
|
||||||
GH_ACCOUNT= keras-team
|
|
||||||
GH_PROJECT= ${PORTNAME}
|
|
||||||
GH_TAGNAME= r2.9
|
|
||||||
|
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
RUN_DEPENDS= ${PYNUMPY} \
|
RUN_DEPENDS= ${PYNUMPY} \
|
||||||
${PYTHON_PKGNAMEPREFIX}absl-py>=1.0.0:devel/py-absl-py \
|
${PYTHON_PKGNAMEPREFIX}absl-py>=1.0.0:devel/py-absl-py \
|
||||||
${PYTHON_PKGNAMEPREFIX}h5py>=0:science/py-h5py@${PY_FLAVOR} \
|
${PYTHON_PKGNAMEPREFIX}h5py>=0:science/py-h5py@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}pandas>=1.3.5:math/py-pandas@${PY_FLAVOR} \
|
${PYTHON_PKGNAMEPREFIX}pandas>=1.3.5:math/py-pandas@${PY_FLAVOR} \
|
||||||
|
@ -33,6 +29,11 @@ BUILD_DEPENDS= ${RUN_DEPENDS} \
|
||||||
|
|
||||||
USES= python:3.7+
|
USES= python:3.7+
|
||||||
|
|
||||||
|
USE_GITHUB= yes
|
||||||
|
GH_ACCOUNT= keras-team
|
||||||
|
GH_PROJECT= ${PORTNAME}
|
||||||
|
GH_TAGNAME= r2.9
|
||||||
|
|
||||||
.include "Makefile.MASTER_SITES"
|
.include "Makefile.MASTER_SITES"
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
@ -49,7 +50,7 @@ post-patch:
|
||||||
@${MKDIR} ${WRKDIR}/whl
|
@${MKDIR} ${WRKDIR}/whl
|
||||||
|
|
||||||
# These files are from my tensorflow port
|
# These files are from my tensorflow port
|
||||||
# if both make it into the port they can be shared
|
# if both make it into the port they can be shared
|
||||||
|
|
||||||
# copy the toolchain over
|
# copy the toolchain over
|
||||||
@${CP} -R ${PATCHDIR}/freebsd \
|
@${CP} -R ${PATCHDIR}/freebsd \
|
||||||
|
@ -75,7 +76,7 @@ post-patch:
|
||||||
# auto generated files will sometimes ignore our py_runtime toolchain and our PYTHON_BIN_PATH
|
# auto generated files will sometimes ignore our py_runtime toolchain and our PYTHON_BIN_PATH
|
||||||
# causing it to still set the shebang line to bin/env python3. Even on the github page the solution
|
# causing it to still set the shebang line to bin/env python3. Even on the github page the solution
|
||||||
# has been to use a symlink to work around so do that here as a fix
|
# has been to use a symlink to work around so do that here as a fix
|
||||||
@${MKDIR} ${WRKDIR}/.bin
|
@${MKDIR} ${WRKDIR}/.bin
|
||||||
${LN} -s ${PYTHON_CMD} ${WRKDIR}/.bin/python3
|
${LN} -s ${PYTHON_CMD} ${WRKDIR}/.bin/python3
|
||||||
|
|
||||||
@${REINPLACE_CMD} "s#%%PYTHON%%#${PYTHON_CMD}#" \
|
@${REINPLACE_CMD} "s#%%PYTHON%%#${PYTHON_CMD}#" \
|
||||||
|
@ -83,8 +84,8 @@ post-patch:
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
@cd ${WRKSRC} && ${SETENV} \
|
@cd ${WRKSRC} && ${SETENV} \
|
||||||
PYTHON_BIN_PATH=${PYTHON_CMD} \
|
PYTHON_BIN_PATH=${PYTHON_CMD} \
|
||||||
PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \
|
PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \
|
||||||
PYTHON_BINARY=${PYTHON_CMD} \
|
PYTHON_BINARY=${PYTHON_CMD} \
|
||||||
bazel --bazelrc="${WRKSRC}/bazelrc" \
|
bazel --bazelrc="${WRKSRC}/bazelrc" \
|
||||||
build --config=freebsd \
|
build --config=freebsd \
|
||||||
|
@ -96,7 +97,6 @@ do-build:
|
||||||
@cd ${WRKSRC} && \
|
@cd ${WRKSRC} && \
|
||||||
bazel-bin/keras/tools/pip_package/build_pip_package \
|
bazel-bin/keras/tools/pip_package/build_pip_package \
|
||||||
${WRKDIR}/whl
|
${WRKDIR}/whl
|
||||||
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}
|
@${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
Deep Learning library for Python. Convnets, recurrent neural networks, and
|
Deep Learning library for Python. Convnets, recurrent neural networks, and
|
||||||
more. Runs on Theano and TensorFlow.
|
more. Runs on Theano and TensorFlow.
|
||||||
|
|
||||||
WWW: https://keras.io/
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue