git: 4e155b25b157 - main - misc/{,py-}onnx: Update 1.13.0 → 1.13.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Mar 2023 09:32:37 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e155b25b157f12f080a5b3b59b32166f0a291d2

commit 4e155b25b157f12f080a5b3b59b32166f0a291d2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-03-09 09:19:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-03-09 09:32:07 +0000

    misc/{,py-}onnx: Update 1.13.0 → 1.13.1
    
    Reported by:    portscout
---
 misc/onnx/Makefile                      |  4 ++--
 misc/onnx/distinfo                      |  6 +++---
 misc/py-onnx/Makefile                   |  2 +-
 misc/py-onnx/distinfo                   |  6 +++---
 misc/py-onnx/files/patch-CMakeLists.txt | 20 ++++++++---------
 misc/py-onnx/files/patch-setup.py       | 38 ++++++++++++++++-----------------
 6 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/misc/onnx/Makefile b/misc/onnx/Makefile
index b08dfbc228b2..8a4b1a1a4b9b 100644
--- a/misc/onnx/Makefile
+++ b/misc/onnx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	onnx
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.13.0
+DISTVERSION=	1.13.1
 CATEGORIES=	misc # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -13,7 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 #BUILD_DEPENDS=	bash:shells/bash
 LIB_DEPENDS=	libprotobuf.so:devel/protobuf
 
-USES=		cmake:testing python:build
+USES=		cmake:testing compiler:c++11-lang python:build
 
 USE_GITHUB=	yes
 
diff --git a/misc/onnx/distinfo b/misc/onnx/distinfo
index 933fe5c272bd..9f5eaf2d07b2 100644
--- a/misc/onnx/distinfo
+++ b/misc/onnx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1672366239
-SHA256 (onnx-onnx-v1.13.0_GH0.tar.gz) = 66eb61fc0ff4b6189816eb8e4da52e1e6775a1c29f372cbd08b694aa5b4ca978
-SIZE (onnx-onnx-v1.13.0_GH0.tar.gz) = 10779860
+TIMESTAMP = 1678353027
+SHA256 (onnx-onnx-v1.13.1_GH0.tar.gz) = 090d3e10ec662a98a2a72f1bf053f793efc645824f0d4b779e0ce47468a0890e
+SIZE (onnx-onnx-v1.13.1_GH0.tar.gz) = 10782133
diff --git a/misc/py-onnx/Makefile b/misc/py-onnx/Makefile
index 09ffa16f89bb..db19e0edfcb7 100644
--- a/misc/py-onnx/Makefile
+++ b/misc/py-onnx/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	onnx
-DISTVERSION=	1.13.0
+DISTVERSION=	1.13.1
 CATEGORIES=	misc # machine-learning
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/misc/py-onnx/distinfo b/misc/py-onnx/distinfo
index 30db3ac69d2e..db8a8241c7b1 100644
--- a/misc/py-onnx/distinfo
+++ b/misc/py-onnx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1672356068
-SHA256 (onnx-1.13.0.tar.gz) = 410b39950367857f97b65093681fe2495a2e23d63777a8aceaf96c56a16d166e
-SIZE (onnx-1.13.0.tar.gz) = 10376857
+TIMESTAMP = 1678353559
+SHA256 (onnx-1.13.1.tar.gz) = 0bdcc25c2c1ce4a8750e4ffbd93ae945442e7fac6e51176f38e366b74a97dfd9
+SIZE (onnx-1.13.1.tar.gz) = 10405481
diff --git a/misc/py-onnx/files/patch-CMakeLists.txt b/misc/py-onnx/files/patch-CMakeLists.txt
index 61d9f650f002..7444f85f429d 100644
--- a/misc/py-onnx/files/patch-CMakeLists.txt
+++ b/misc/py-onnx/files/patch-CMakeLists.txt
@@ -1,11 +1,11 @@
---- CMakeLists.txt.orig	2022-11-17 13:03:00 UTC
+--- CMakeLists.txt.orig	2023-02-22 16:34: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 and Protobuf_USE_STATIC_LIBS. " 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)
+@@ -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 and Protobuf_USE_STATIC_LIBS. " 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)
diff --git a/misc/py-onnx/files/patch-setup.py b/misc/py-onnx/files/patch-setup.py
index 55535f2d925f..b20306abb9fb 100644
--- a/misc/py-onnx/files/patch-setup.py
+++ b/misc/py-onnx/files/patch-setup.py
@@ -1,20 +1,20 @@
---- setup.py.orig	2022-11-09 10:56:10 UTC
+--- setup.py.orig	2023-02-22 16:34:50 UTC
 +++ setup.py
-@@ -56,11 +56,12 @@ COVERAGE = bool(os.getenv("COVERAGE", "0") == "1")
- ################################################################################
- 
- try:
--    git_version = (
--        subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
--        .decode("ascii")
--        .strip()
--    )
-+    #git_version = (
-+    #    subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
-+    #    .decode("ascii")
-+    #    .strip()
-+    #)
-+    git_version = None
- except (OSError, subprocess.CalledProcessError):
-     git_version = None
- 
+@@ -56,11 +56,12 @@ COVERAGE = bool(os.getenv("COVERAGE", "0") == "1")
+ ################################################################################
+ 
+ try:
+-    git_version = (
+-        subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
+-        .decode("ascii")
+-        .strip()
+-    )
++    #git_version = (
++    #    subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
++    #    .decode("ascii")
++    #    .strip()
++    #)
++    git_version = None
+ except (OSError, subprocess.CalledProcessError):
+     git_version = None
+