git: 6da6890ebb90 - main - textproc/rubygem-nokogiri114: Add rubygem-nokogiri114 1.14.5 (copied from rubygem-nokogiri)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 18:51:04 UTC
The branch main has been updated by sunpoet:

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

commit 6da6890ebb9067d152b719cdc724cf93d76998eb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-05 18:18:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-05 18:46:50 +0000

    textproc/rubygem-nokogiri114: Add rubygem-nokogiri114 1.14.5 (copied from rubygem-nokogiri)
    
    - Add PORTSCOUT
---
 textproc/Makefile                                |  1 +
 textproc/rubygem-nokogiri114/Makefile            | 33 ++++++++++++++++++++++++
 textproc/rubygem-nokogiri114/distinfo            |  3 +++
 textproc/rubygem-nokogiri114/files/patch-gemspec | 10 +++++++
 textproc/rubygem-nokogiri114/pkg-descr           |  7 +++++
 5 files changed, 54 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 2846dc6f02ee..160fa94ac13d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1789,6 +1789,7 @@
     SUBDIR += rubygem-nokogiri
     SUBDIR += rubygem-nokogiri-diff
     SUBDIR += rubygem-nokogiri111
+    SUBDIR += rubygem-nokogiri114
     SUBDIR += rubygem-nokogumbo
     SUBDIR += rubygem-octopress-escape-code
     SUBDIR += rubygem-opml
diff --git a/textproc/rubygem-nokogiri114/Makefile b/textproc/rubygem-nokogiri114/Makefile
new file mode 100644
index 000000000000..442452ab3b53
--- /dev/null
+++ b/textproc/rubygem-nokogiri114/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	nokogiri
+PORTVERSION=	1.14.5
+CATEGORIES=	textproc rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	114
+
+MAINTAINER=	ruby@FreeBSD.org
+COMMENT=	HTML, XML, SAX, and Reader parser
+WWW=		https://nokogiri.org/ \
+		https://github.com/sparklemotion/nokogiri
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	${RUN_DEPENDS} \
+		rubygem-mini_portile2>=2.8.0<2.9:devel/rubygem-mini_portile2 \
+		rubygem-pkg-config>=1.1<2:devel/rubygem-pkg-config
+# Do not add mini_portile2 to RUN_DEPENDS. Read ext/nokogiri/extconf.rb
+# and https://lists.freebsd.org/pipermail/svn-ports-all/2019-March/209423.html
+RUN_DEPENDS=	rubygem-racc>=1.4<2:devel/rubygem-racc
+
+USES=		cpe gem gnome gettext-runtime
+USE_GNOME=	libxml2 libxslt
+
+CONFIGURE_ARGS=	--use-system-libraries
+
+PORTSCOUT=	limit:^1\.14\.
+
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/nokogiri
+	${RMDIR} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ports/
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-nokogiri114/distinfo b/textproc/rubygem-nokogiri114/distinfo
new file mode 100644
index 000000000000..0ad3edb30a97
--- /dev/null
+++ b/textproc/rubygem-nokogiri114/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1685162528
+SHA256 (rubygem/nokogiri-1.14.5.gem) = 23f69ddeb1e8ead5341bbbbca18d37de29c0265bc90e94bc5d9663b254dfdcbc
+SIZE (rubygem/nokogiri-1.14.5.gem) = 4646912
diff --git a/textproc/rubygem-nokogiri114/files/patch-gemspec b/textproc/rubygem-nokogiri114/files/patch-gemspec
new file mode 100644
index 000000000000..91bd5faf1274
--- /dev/null
+++ b/textproc/rubygem-nokogiri114/files/patch-gemspec
@@ -0,0 +1,10 @@
+--- nokogiri.gemspec.orig	2023-01-06 04:29:10 UTC
++++ nokogiri.gemspec
+@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
+ 
+   s.specification_version = 4
+ 
+-  s.add_runtime_dependency(%q<mini_portile2>.freeze, ["~> 2.8.0"])
+   s.add_runtime_dependency(%q<racc>.freeze, ["~> 1.4"])
+   s.add_development_dependency(%q<bundler>.freeze, ["~> 2.2"])
+   s.add_development_dependency(%q<hoe-markdown>.freeze, ["~> 1.4"])
diff --git a/textproc/rubygem-nokogiri114/pkg-descr b/textproc/rubygem-nokogiri114/pkg-descr
new file mode 100644
index 000000000000..0a7bef665678
--- /dev/null
+++ b/textproc/rubygem-nokogiri114/pkg-descr
@@ -0,0 +1,7 @@
+* XPath support for document searching
+* CSS3 selector support for document searching
+* XML/HTML builder
+* Drop in replacement for Hpricot (though not bug for bug)
+
+Nokogiri parses and searches XML/HTML very quickly, and also has
+correctly implemented CSS3 selector support as well as XPath support.