git: fb32deaa7f5a - 2024Q4 - textproc/rubygem-loofah222: Add rubygem-loofah222 2.22.0 (copied from rubygem-loofah)

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Fri, 15 Nov 2024 15:58:00 UTC
The branch 2024Q4 has been updated by mfechner:

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

commit fb32deaa7f5a46808dc2494c1ab80ebf8aab32a7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-29 14:09:22 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-11-15 15:56:45 +0000

    textproc/rubygem-loofah222: Add rubygem-loofah222 2.22.0 (copied from rubygem-loofah)
    
    - Add PORTSCOUT
    
    (cherry picked from commit 90e9eebb64dffcbd4b40c70c9dc248ba203f2740)
---
 textproc/Makefile                    |  1 +
 textproc/rubygem-loofah222/Makefile  | 25 +++++++++++++++++++++++++
 textproc/rubygem-loofah222/distinfo  |  3 +++
 textproc/rubygem-loofah222/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 7fbe316d7fd5..37af16ca2dbd 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1870,6 +1870,7 @@
     SUBDIR += rubygem-liquid4
     SUBDIR += rubygem-loggability
     SUBDIR += rubygem-loofah
+    SUBDIR += rubygem-loofah222
     SUBDIR += rubygem-ltsv
     SUBDIR += rubygem-markaby
     SUBDIR += rubygem-mdl
diff --git a/textproc/rubygem-loofah222/Makefile b/textproc/rubygem-loofah222/Makefile
new file mode 100644
index 000000000000..5bba75138b00
--- /dev/null
+++ b/textproc/rubygem-loofah222/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	loofah
+PORTVERSION=	2.22.0
+CATEGORIES=	textproc rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	222
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Library for manipulating HTML/XML documents and fragments
+WWW=		https://github.com/flavorjones/loofah
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE.txt
+
+RUN_DEPENDS=	rubygem-crass>=1.0.2<1.1:www/rubygem-crass \
+		rubygem-nokogiri>=1.12.0:textproc/rubygem-nokogiri
+
+USES=		cpe gem
+
+NO_ARCH=	yes
+
+CPE_VENDOR=	loofah_project
+
+PORTSCOUT=	limit:^2\.22\.
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-loofah222/distinfo b/textproc/rubygem-loofah222/distinfo
new file mode 100644
index 000000000000..690f37cfe2d8
--- /dev/null
+++ b/textproc/rubygem-loofah222/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699985629
+SHA256 (rubygem/loofah-2.22.0.gem) = 10d76e070c86b12fec74b6a9515fd1940f4459198b991342d0a7897d86c372fe
+SIZE (rubygem/loofah-2.22.0.gem) = 33280
diff --git a/textproc/rubygem-loofah222/pkg-descr b/textproc/rubygem-loofah222/pkg-descr
new file mode 100644
index 000000000000..dae5505c8647
--- /dev/null
+++ b/textproc/rubygem-loofah222/pkg-descr
@@ -0,0 +1,4 @@
+Loofah is a general library for manipulating HTML/XML documents and fragments.
+It's built on top of Nokogiri and libxml2, so it's fast and has a nice API.
+Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML
+sanitizers, which are based on HTML5lib's whitelist.