git: 0613e796c437 - main - devel/py-ddtrace: Update to 0.58.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 07 Mar 2022 18:17:02 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0613e796c43709b1e1283588fc7b5695dba3a152

commit 0613e796c43709b1e1283588fc7b5695dba3a152
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-07 17:52:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-07 18:11:04 +0000

    devel/py-ddtrace: Update to 0.58.5
    
    Changes:        https://github.com/DataDog/dd-trace-py/releases
---
 devel/py-ddtrace/Makefile             |  5 +----
 devel/py-ddtrace/distinfo             |  6 +++---
 devel/py-ddtrace/files/patch-setup.py | 21 ++++++++++++++++++---
 3 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/devel/py-ddtrace/Makefile b/devel/py-ddtrace/Makefile
index 188109dfd8e0..146950ff1ac4 100644
--- a/devel/py-ddtrace/Makefile
+++ b/devel/py-ddtrace/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	ddtrace
-PORTVERSION=	0.57.3
+PORTVERSION=	0.58.5
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -27,9 +27,6 @@ OPENTRACING_DESC=	OpenTracing support
 
 OPENTRACING_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}opentracing>=2.0.0:devel/py-opentracing@${PY_FLAVOR}
 
-post-patch:
-	@${RM} ${WRKSRC}/ddtrace/profiling/collector/stack.c
-
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
diff --git a/devel/py-ddtrace/distinfo b/devel/py-ddtrace/distinfo
index 567d473f4d09..15892f2b716b 100644
--- a/devel/py-ddtrace/distinfo
+++ b/devel/py-ddtrace/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643382534
-SHA256 (ddtrace-0.57.3.tar.gz) = e0e4829c150ce3a0b9ec13efe1992885df84516d19eab9f820ec4b1ad163c483
-SIZE (ddtrace-0.57.3.tar.gz) = 1542579
+TIMESTAMP = 1646057936
+SHA256 (ddtrace-0.58.5.tar.gz) = 3e1d36938de39b5283014b50b4e6af3233611419fdbf38f5496369ebd5a97257
+SIZE (ddtrace-0.58.5.tar.gz) = 1643673
diff --git a/devel/py-ddtrace/files/patch-setup.py b/devel/py-ddtrace/files/patch-setup.py
index 0030607277ba..092ee03e6425 100644
--- a/devel/py-ddtrace/files/patch-setup.py
+++ b/devel/py-ddtrace/files/patch-setup.py
@@ -1,11 +1,26 @@
---- setup.py.orig	2021-10-28 20:18:41 UTC
+--- setup.py.orig	2022-02-24 22:37:13 UTC
 +++ setup.py
-@@ -203,7 +203,7 @@ setup(
+@@ -258,7 +257,7 @@ setup(
          "Programming Language :: Python :: 3.10",
      ],
      use_scm_version={"write_to": "ddtrace/_version.py"},
--    setup_requires=["setuptools_scm[toml]>=4,<6.1", "cython"],
+-    setup_requires=["setuptools_scm[toml]>=4,<6.1", "cython", "cmake", "ninja"],
 +    setup_requires=["setuptools_scm[toml]>=4", "cython"],
      ext_modules=ext_modules
      + cythonize(
          [
+@@ -309,14 +308,6 @@ setup(
+                 "ddtrace.profiling._build",
+                 sources=["ddtrace/profiling/_build.pyx"],
+                 language="c",
+-            ),
+-            Cython.Distutils.Extension(
+-                "ddtrace.appsec._ddwaf",
+-                sources=["ddtrace/appsec/_ddwaf.pyx"],
+-                include_dirs=["ddtrace/appsec/include"],
+-                library_dirs=["ddtrace/appsec/lib"],
+-                libraries=ddwaf_libraries,
+-                language="c++",
+             ),
+         ],
+         compile_time_env={