From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1528182-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 183CE15810F
	for <garchives@archives.gentoo.org>; Mon, 12 Jun 2023 02:27:53 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 46B00E0886;
	Mon, 12 Jun 2023 02:27:52 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2AA62E0886
	for <gentoo-commits@lists.gentoo.org>; Mon, 12 Jun 2023 02:27:52 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D171C341438
	for <gentoo-commits@lists.gentoo.org>; Mon, 12 Jun 2023 02:27:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C2B9EA91
	for <gentoo-commits@lists.gentoo.org>; Mon, 12 Jun 2023 02:27:48 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1686536841.11f1d3ba6754318722bbf2f9977c9d0de78801ae.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/nokogiri/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-ruby/nokogiri/Manifest dev-ruby/nokogiri/nokogiri-1.15.2.ebuild
X-VCS-Directories: dev-ruby/nokogiri/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 11f1d3ba6754318722bbf2f9977c9d0de78801ae
X-VCS-Branch: master
Date: Mon, 12 Jun 2023 02:27:48 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1f68f47b-d4fe-4a7e-a1b2-3d27c91a85ba
X-Archives-Hash: fca6e3121e83997533f4ada12b023b50

commit:     11f1d3ba6754318722bbf2f9977c9d0de78801ae
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 19:38:21 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 12 02:27:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f1d3ba

dev-ruby/nokogiri: add 1.15.2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/nokogiri/Manifest               |  1 +
 dev-ruby/nokogiri/nokogiri-1.15.2.ebuild | 95 ++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest
index 309d2e73895f..0eb76e76d75b 100644
--- a/dev-ruby/nokogiri/Manifest
+++ b/dev-ruby/nokogiri/Manifest
@@ -2,3 +2,4 @@ DIST nokogiri-1.14.2-git.tgz 10446957 BLAKE2B 0c72c520642bfa3e69a38f5dba8783a4f7
 DIST nokogiri-1.14.3-git.tgz 10446988 BLAKE2B e93caad3b807e74b79204d3272c52d1a33ce2189b65de8d126b0b7476edc1b4b0c4fcd1142c38e40beeab56bcaa605ba7d30f9777542979d60e2e5dda3877eb7 SHA512 93ebc7118e364eaa97030a10cd6dc5b4312483a432f267d65b6a091b22dd355d0c1a490b336981f1b284059ba3420c73d31254a91531f295a60583db26a0d331
 DIST nokogiri-1.14.4-git.tgz 10767764 BLAKE2B b0983b5537ea6ffc86431740e2277bb58ab45a237e47af9a8ef3e98f73872ee81dbd13ae6a9508845dc3d3ba84dc101763e674400e4e5ce98b31defcbbea678d SHA512 09e8bdb660dd2e4340d0bdc701909f066234e70754ad799e21f1462d06f76500ceaf3da074cf792fa690f4717f1126e041a6f3247fd32f5a806404447bdb68be
 DIST nokogiri-1.15.1-git.tgz 10766136 BLAKE2B 60e86e819aceada10cee805928d1e451ec052ebc16c1577aa22198c1dfdab2ece0462ada4ecb80b77f838df8ce7be8c5a6006ad1039341303d9d1574c825ebf5 SHA512 1e57aba16507ae6b760cbf94ca2260f826479d37eac34ddc0e9a0ff2cd3520014b402d2d571516b8ccf486b085e7ee27779cee992c04fe8f20f7f435121d3bbf
+DIST nokogiri-1.15.2-git.tgz 10766215 BLAKE2B 76ac705456790187a9487e8e786bcb2f9e34df3b26b8c2d9942545fba89735dd9493494e1c681b8721fbeab4087a24ff240619654a655d2eb6fe328ba42d7d98 SHA512 12faecdea2f4c06e270de09412f116f0a9ec494a266b0f38938ab3866164485c425189e93cad1d9b682aec2d65c6ec6c3dc76f32e2221510d8e1c1b2890152e9

diff --git a/dev-ruby/nokogiri/nokogiri-1.15.2.ebuild b/dev-ruby/nokogiri/nokogiri-1.15.2.ebuild
new file mode 100644
index 000000000000..460ca3cbae15
--- /dev/null
+++ b/dev-ruby/nokogiri/nokogiri-1.15.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md ROADMAP.md SECURITY.md"
+
+RUBY_FAKEGEM_GEMSPEC="nokogiri.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/nokogiri/extconf.rb)
+
+inherit ruby-fakegem multilib
+
+DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
+HOMEPAGE="https://nokogiri.org/"
+LICENSE="MIT"
+SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos"
+SLOT="0"
+IUSE=""
+
+RDEPEND="${RDEPEND}
+	>=dev-libs/libxml2-2.11.4
+	>=dev-libs/libxslt-1.1.37
+	sys-libs/zlib
+	virtual/libiconv"
+DEPEND="${DEPEND}
+	>=dev-libs/libxml2-2.11.4
+	>=dev-libs/libxslt-1.1.38
+	>=sys-libs/zlib-1.2.13
+	virtual/libiconv"
+
+ruby_add_rdepend ">=dev-ruby/racc-1.4:0"
+
+ruby_add_bdepend "
+	dev-ruby/mini_portile2:2.8
+	>=dev-ruby/rexical-1.0.7
+	dev-ruby/rdoc
+	test? ( dev-ruby/minitest dev-ruby/rubyzip )"
+
+all_ruby_prepare() {
+	sed -i \
+		-e '/tasks\/cross_compile/s:^:#:' \
+		-e '/:test.*prerequisites/s:^:#:' \
+		-e '/license/ s:^:#:' \
+		Rakefile || die
+	# Remove the cross compilation options since they interfere with
+	# native building.
+	sed -i -e 's/cross_compile  = true/cross_compile = false/' Rakefile || die
+	sed -i -e '/cross_config_options/d' Rakefile || die
+
+	sed -e '/simplecov/,/^end/ s:^:#:' \
+		-e '/reporters/I s:^:#:' \
+		-i test/helper.rb || die
+
+	# There is no need for mini_portile2 to be a runtime dependency on Gentoo
+	sed -i -e '/mini_portile2/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_configure() {
+	NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
+		${RUBY} -Cext/${PN} extconf.rb \
+		--with-zlib-include="${EPREFIX}"/usr/include \
+		--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
+		--with-iconv-include="${EPREFIX}"/usr/include \
+		--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
+		--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
+		--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
+		--with-xslt-dir="${EPREFIX}"/usr \
+		--with-iconvlib=iconv \
+		|| die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+	if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
+		${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
+	fi
+
+	if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
+		${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
+	fi
+
+	emake -Cext/${PN} \
+		V=1 \
+		CFLAGS="${CFLAGS} -fPIC" \
+		archflag="${LDFLAGS}" || die "make extension failed"
+	cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
+}
+
+each_ruby_test() {
+	${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
+}