git: 0d5208b47f7e - main - devel/rubygem-opentelemetry-helpers-mysql: Add rubygem-opentelemetry-helpers-mysql 0.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 29 Jul 2024 12:45:51 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d5208b47f7ebbac301219cd74df37ecb80fc4d4

commit 0d5208b47f7ebbac301219cd74df37ecb80fc4d4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-29 12:30:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-29 12:30:21 +0000

    devel/rubygem-opentelemetry-helpers-mysql: Add rubygem-opentelemetry-helpers-mysql 0.1.1
    
    This Ruby gem contains logic shared among MySQL adapter libraries, such as
    mysql2 and trilogy. It's intended for use by by gem authors instrumenting MySQL
    adapter libraries.
---
 devel/Makefile                                     |  1 +
 devel/rubygem-opentelemetry-helpers-mysql/Makefile | 22 ++++++++++++++++++++++
 devel/rubygem-opentelemetry-helpers-mysql/distinfo |  3 +++
 .../rubygem-opentelemetry-helpers-mysql/pkg-descr  |  3 +++
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 85a859c030c0..e7f7d2e6e5e5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7381,6 +7381,7 @@
     SUBDIR += rubygem-opentelemetry-api
     SUBDIR += rubygem-opentelemetry-common
     SUBDIR += rubygem-opentelemetry-exporter-otlp
+    SUBDIR += rubygem-opentelemetry-helpers-mysql
     SUBDIR += rubygem-opentelemetry-helpers-sql-obfuscation
     SUBDIR += rubygem-opentelemetry-instrumentation-action_mailer
     SUBDIR += rubygem-opentelemetry-instrumentation-action_pack
diff --git a/devel/rubygem-opentelemetry-helpers-mysql/Makefile b/devel/rubygem-opentelemetry-helpers-mysql/Makefile
new file mode 100644
index 000000000000..d4f687da817b
--- /dev/null
+++ b/devel/rubygem-opentelemetry-helpers-mysql/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	opentelemetry-helpers-mysql
+PORTVERSION=	0.1.1
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	MySQL Instrumentation Helpers for the OpenTelemetry framework
+WWW=		https://opentelemetry.io/ \
+		https://github.com/open-telemetry/opentelemetry-ruby-contrib \
+		https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/helpers/mysql
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-opentelemetry-api>=1.0<2:devel/rubygem-opentelemetry-api \
+		rubygem-opentelemetry-common>=0.21<1:devel/rubygem-opentelemetry-common
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-opentelemetry-helpers-mysql/distinfo b/devel/rubygem-opentelemetry-helpers-mysql/distinfo
new file mode 100644
index 000000000000..d8b3e79d6696
--- /dev/null
+++ b/devel/rubygem-opentelemetry-helpers-mysql/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722249000
+SHA256 (rubygem/opentelemetry-helpers-mysql-0.1.1.gem) = cd99dab90bc7e483f071905ccdec266f82f13d4f2f8cf7c54d225b2c731ad1da
+SIZE (rubygem/opentelemetry-helpers-mysql-0.1.1.gem) = 10752
diff --git a/devel/rubygem-opentelemetry-helpers-mysql/pkg-descr b/devel/rubygem-opentelemetry-helpers-mysql/pkg-descr
new file mode 100644
index 000000000000..6fa3c04a52f0
--- /dev/null
+++ b/devel/rubygem-opentelemetry-helpers-mysql/pkg-descr
@@ -0,0 +1,3 @@
+This Ruby gem contains logic shared among MySQL adapter libraries, such as
+mysql2 and trilogy. It's intended for use by by gem authors instrumenting MySQL
+adapter libraries.