Index: head/misc/py-onnx/Makefile =================================================================== --- head/misc/py-onnx/Makefile (revision 563552) +++ head/misc/py-onnx/Makefile (revision 563553) @@ -1,31 +1,34 @@ # $FreeBSD$ PORTNAME= onnx -DISTVERSION= 1.8.0 -PORTREVISION= 1 +DISTVERSION= 1.8.1 CATEGORIES= misc # machine-learning MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Open Neural Network eXchange LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= cmake:devel/cmake \ +BUILD_DEPENDS= bash:shells/bash \ + cmake:devel/cmake \ + protoc-gen-mypy:devel/py-mypy-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} LIB_DEPENDS= libprotobuf.so:devel/protobuf RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.2.1:devel/py-typing-extensions@${PY_FLAVOR} -USES= compiler:c11 python:3.6+ +USES= compiler:c11 python:3.6+ shebangfix USE_PYTHON= distutils concurrent autoplist + +SHEBANG_FILES= tools/protoc-gen-mypy.sh.in BINARY_ALIAS= python=${PYTHON_CMD} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/onnx/onnx_cpp2py_export*.so .include Index: head/misc/py-onnx/distinfo =================================================================== --- head/misc/py-onnx/distinfo (revision 563552) +++ head/misc/py-onnx/distinfo (revision 563553) @@ -1,3 +1,3 @@ -TIMESTAMP = 1604851394 -SHA256 (onnx-1.8.0.tar.gz) = 5f787fd3ce1290e12da335237b3b921152157e51aa09080b65631b3ce3fcc50c -SIZE (onnx-1.8.0.tar.gz) = 5231652 +TIMESTAMP = 1612156758 +SHA256 (onnx-1.8.1.tar.gz) = 9d65c52009a90499f8c25fdfe5acda3ac88efe0788eb1d5f2575a989277145fb +SIZE (onnx-1.8.1.tar.gz) = 5232742 Index: head/misc/py-onnx/files/patch-CMakeLists.txt =================================================================== --- head/misc/py-onnx/files/patch-CMakeLists.txt (nonexistent) +++ head/misc/py-onnx/files/patch-CMakeLists.txt (revision 563553) @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2021-02-01 05:41:35 UTC ++++ CMakeLists.txt +@@ -18,7 +18,7 @@ project(onnx C CXX) + option(ONNX_BUILD_BENCHMARKS "Build ONNX micro-benchmarks" OFF) + option(ONNX_USE_PROTOBUF_SHARED_LIBS "Build ONNX using protobuf shared library. Sets PROTOBUF_USE_DLLS CMAKE Flag " OFF) + +-option(BUILD_ONNX_PYTHON "Build Python binaries" OFF) ++option(BUILD_ONNX_PYTHON "Build Python binaries" ON) + option(ONNX_GEN_PB_TYPE_STUBS "Generate protobuf python type stubs" ON) + option(ONNX_WERROR "Build with Werror" OFF) + option(ONNX_COVERAGE "Build with coverage instrumentation" OFF) Property changes on: head/misc/py-onnx/files/patch-CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/py-onnx/files/patch-setup.py =================================================================== --- head/misc/py-onnx/files/patch-setup.py (revision 563552) +++ head/misc/py-onnx/files/patch-setup.py (revision 563553) @@ -1,20 +1,20 @@ ---- setup.py.orig 2019-09-25 20:37:27 UTC +--- setup.py.orig 2021-01-29 23:31:55 UTC +++ setup.py -@@ -53,11 +53,12 @@ COVERAGE = bool(os.getenv('COVERAGE')) +@@ -56,11 +56,12 @@ COVERAGE = bool(os.getenv('COVERAGE')) # Version ################################################################################ -try: - git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'], - cwd=TOP_DIR).decode('ascii').strip() -except (OSError, subprocess.CalledProcessError): - git_version = None +#try: +# git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'], +# cwd=TOP_DIR).decode('ascii').strip() +#except (OSError, subprocess.CalledProcessError): +# git_version = None +git_version = None with open(os.path.join(TOP_DIR, 'VERSION_NUMBER')) as version_file: VersionInfo = namedtuple('VersionInfo', ['version', 'git_version'])(