git: 474f132166e8 - main - devel/rubygem-libddwaf: Add rubygem-libddwaf 1.3.0.2.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 16 Jun 2022 14:05:10 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=474f132166e8ff0f335f8ef60fd622c9d4e301d0

commit 474f132166e8ff0f335f8ef60fd622c9d4e301d0
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-16 13:58:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-16 13:58:50 +0000

    devel/rubygem-libddwaf: Add rubygem-libddwaf 1.3.0.2.0
    
    libddwaf is Datadog's implementation of a WAF engine, with a goal of low
    performance and memory overhead, and embeddability in a wide variety of language
    runtimes through a C API.
    
    WWW: https://github.com/DataDog/libddwaf
---
 devel/Makefile                   |  1 +
 devel/rubygem-libddwaf/Makefile  | 23 +++++++++++++++++++++++
 devel/rubygem-libddwaf/distinfo  |  3 +++
 devel/rubygem-libddwaf/pkg-descr |  5 +++++
 4 files changed, 32 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index f86395b4ffbc..37c71bfedc1a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6611,6 +6611,7 @@
     SUBDIR += rubygem-launchy
     SUBDIR += rubygem-lazy_priority_queue
     SUBDIR += rubygem-libddprof
+    SUBDIR += rubygem-libddwaf
     SUBDIR += rubygem-librarian
     SUBDIR += rubygem-librarianp
     SUBDIR += rubygem-libyajl2
diff --git a/devel/rubygem-libddwaf/Makefile b/devel/rubygem-libddwaf/Makefile
new file mode 100644
index 000000000000..a56f202304a8
--- /dev/null
+++ b/devel/rubygem-libddwaf/Makefile
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	libddwaf
+PORTVERSION=	1.3.0.2.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	WAF implementation in C++, exposed to Ruby
+
+LICENSE=	APACHE20 BSD3CLAUSE
+LICENSE_COMB=	dual
+LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE.Apache
+LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE.BSD3
+
+RUN_DEPENDS=	rubygem-ffi>=1.0<2:devel/rubygem-ffi
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-libddwaf/distinfo b/devel/rubygem-libddwaf/distinfo
new file mode 100644
index 000000000000..9804b5401b3a
--- /dev/null
+++ b/devel/rubygem-libddwaf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1655208204
+SHA256 (rubygem/libddwaf-1.3.0.2.0.gem) = be6ae9a0686ec3afb96831fe778dbee202061fdfa130a746a255d1576769a2f6
+SIZE (rubygem/libddwaf-1.3.0.2.0.gem) = 18432
diff --git a/devel/rubygem-libddwaf/pkg-descr b/devel/rubygem-libddwaf/pkg-descr
new file mode 100644
index 000000000000..dd1a8b69f988
--- /dev/null
+++ b/devel/rubygem-libddwaf/pkg-descr
@@ -0,0 +1,5 @@
+libddwaf is Datadog's implementation of a WAF engine, with a goal of low
+performance and memory overhead, and embeddability in a wide variety of language
+runtimes through a C API.
+
+WWW: https://github.com/DataDog/libddwaf