From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2DF821584F2 for ; Thu, 20 Mar 2025 08:04:50 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 17D9A34330E for ; Thu, 20 Mar 2025 08:04:50 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 74D3C1103CB; Thu, 20 Mar 2025 08:04:43 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 67A411103CD for ; Thu, 20 Mar 2025 08:04:43 +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 1647B3431E3 for ; Thu, 20 Mar 2025 08:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30C7F2837 for ; Thu, 20 Mar 2025 08:04:41 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1742457854.7490fdf79eb9c01e2cfd6e9615468543e6a7cba9.graaff@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.18.5.ebuild X-VCS-Directories: dev-ruby/nokogiri/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 7490fdf79eb9c01e2cfd6e9615468543e6a7cba9 X-VCS-Branch: master Date: Thu, 20 Mar 2025 08:04:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e18e749e-9c05-456f-9ccd-0e46ee51af21 X-Archives-Hash: 2c447e14633e11a390bf3e3655d27c72 commit: 7490fdf79eb9c01e2cfd6e9615468543e6a7cba9 Author: Hans de Graaff gentoo org> AuthorDate: Thu Mar 20 08:00:27 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Mar 20 08:04:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7490fdf7 dev-ruby/nokogiri: add 1.18.5 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/nokogiri/Manifest | 1 + dev-ruby/nokogiri/nokogiri-1.18.5.ebuild | 100 +++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest index 4eccce7280e1..056e505ff67f 100644 --- a/dev-ruby/nokogiri/Manifest +++ b/dev-ruby/nokogiri/Manifest @@ -4,3 +4,4 @@ DIST nokogiri-1.17.2-git.tgz 11048266 BLAKE2B eb7c1b178d8fbb91e1b398e639a9a68d1b DIST nokogiri-1.18.1-git.tgz 11051288 BLAKE2B 544d1cbcfb8e75ca499b93a68928dbeba678ba978e6f2bdd624537d7adb0508e8e0127f2ba4ac2f49be552ba1db932561059d30db65a9940da0ed329b9acf3e9 SHA512 3a099d0c5fec88b3728be150dc5a7a5d52e0b7d2f875e662eccc2fcb7dc4c5c140cf4fca14792d8329f196e3f1fc564af6791c48f693a08816ab977011a157fd DIST nokogiri-1.18.3-git.tgz 11051462 BLAKE2B 122bd2d8ddbba09e7aded36a1125d6fa79ed60f7066488baa39cc1295edeb006cbea119e9edf193a635c8c131d1f3829088f30c6ebf49b0090672b8bdedadc60 SHA512 cccfa0caef34326924e21e24a205199503504a817467a65ba038af5f96ec10978e2c72948c5f28e3db0b1ae172c9d1e63de3ba71cab926956cf4596055606b6d DIST nokogiri-1.18.4-git.tgz 11051342 BLAKE2B f6509767384a19977f08bd56a3f1fadbfabf2321700c02328686cb13180816a51dec231a5810d8a3769c29f036723606fa3ae485fd7beac489f5797453b7f0e7 SHA512 50ea6f22ce03df62c754d5b69b9537af8e8febb90bcb724d6f401df2fb4d3d261ea00d2ed420f67726ae4bf80e78b6cb2929972b91084ee276f3730cd19c0833 +DIST nokogiri-1.18.5-git.tgz 11053564 BLAKE2B 63b935bfd81e2daf0ff11389b593ffb598bf7138e04f95666c3d7f738b0d1ac9b36d1118969e2ef60e03594b6f8a4078ecd267793fed41934e874735ef8af0a3 SHA512 99e9cde9f6840d1dc0d69f3faeaa489dcd499fa733e2bb9b8bed7f1eb9a2d8f69244cd60572439d08dfffde8470012034ea11859f45fa5334c96f3108fc9e977 diff --git a/dev-ruby/nokogiri/nokogiri-1.18.5.ebuild b/dev-ruby/nokogiri/nokogiri-1.18.5.ebuild new file mode 100644 index 000000000000..52f5d69faef6 --- /dev/null +++ b/dev-ruby/nokogiri/nokogiri-1.18.5.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33 ruby34" + +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/" +SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" +IUSE="test" + +RDEPEND=" + >=dev-libs/libxml2-2.13.5 + >=dev-libs/libxslt-1.1.43 + >=sys-libs/zlib-1.3.1 + virtual/libiconv" +DEPEND=" + >=dev-libs/libxml2-2.13.5 + >=dev-libs/libxslt-1.1.43 + >=sys-libs/zlib-1.3.1 + 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 '/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 + + # Avoid a failing test already dropped upstream. + sed -e '128 s:^:#:' \ + -i test/xml/test_document_encoding.rb || 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() { + MT_NO_PLUGINS=1 \ + RUBY_MEMCHECK_RUNNING=true \ + ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die +}