From 34d05d15811bd789a5348824d4f4151a49f924c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 5 Feb 2024 11:43:07 +0000 Subject: gentoo auto-resync : 05:02:2024 - 11:43:07 --- dev-ruby/nokogiri/Manifest | 2 + dev-ruby/nokogiri/nokogiri-1.16.2.ebuild | 96 ++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 dev-ruby/nokogiri/nokogiri-1.16.2.ebuild (limited to 'dev-ruby/nokogiri') diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest index bab0e9e1c6a0..c50618179720 100644 --- a/dev-ruby/nokogiri/Manifest +++ b/dev-ruby/nokogiri/Manifest @@ -3,9 +3,11 @@ DIST nokogiri-1.15.4-git.tgz 10767816 BLAKE2B fe35809f62279ded261c655cc589fdb344 DIST nokogiri-1.15.5-git.tgz 10768080 BLAKE2B 25d24799c69a4271ea5283b264061c05f6907635ed55de196f76684d2db3c6c226e7f09f02f30de049b282c17cdea69154dec9a06813cb4f63adaac4876e160c SHA512 1df3f6bf4508a7c84fa22ce774cb878ca47154e69730f1cedb403fad270df42c580526ac03b47e73bf2267ad50d2999ed1341079b10043b450f51ea6b0565da7 DIST nokogiri-1.16.0-git.tgz 11010821 BLAKE2B 5b82e28d7d1e7d74e857a997ea32ba406450588f398fa49590d318b194883b2a247b9389b3930583727a34df425034f3cefc4a5cb00f25945a02623872ac3ffa SHA512 0f6740ce69159f878844f2afdddafcc8c8f3bdabee68e5fcedb1526ae9cc48648c6ebda2a272ab1b8776fbde766bae97046802573908bd908cfb908288607e51 DIST nokogiri-1.16.1-git.tgz 11014638 BLAKE2B e03122ba361b03c57e1c4b41e721a497d85e22ab6b6073475c1958f46a0c653b61459c482139c4eeebefdb83759f9af46b8c9c363e5a817d218e9ffd82002517 SHA512 0c821120d8c63f6c9a7440c11c5104d778517be0e0f92c2a787cdd478c0b869565d16f9bad42a66fd541e3dd871a0de98dea22815885e6468224696aba7f25d8 +DIST nokogiri-1.16.2-git.tgz 11014186 BLAKE2B 8b34c586f3326278299786fec8b7513f61d7c147b453d984107d1d6896b42e8e59f078ac32577bebd71fc510e99087e80f8ea4eef822c73a41fc17c0ec079108 SHA512 844a47fcc9ad8677bed5486fd3437e9a685143afc8c8d71464301c14cc09e93827f3a91713df22f741434989adb24ed6d9144b3a4d0f3cb7f63fc83c2d3130a9 EBUILD nokogiri-1.15.3.ebuild 2702 BLAKE2B 8934088d9edfb342b53b74f5fcabf397cf9cdb050c5c8d5ebac1686a15070ae4c1d22d3320de67ac0d055d18384f177353ffa05683e0ba17663c1cba2ae2f9e7 SHA512 3add6c7af7cc8bee29064e8fed1cea2237b401381f6451f5b5938728df1f60046ea4e342cad334630a5e00ccc54fe39a31d8c59a8f10051a56c3219c83e62f9a EBUILD nokogiri-1.15.4.ebuild 2725 BLAKE2B fae2cf3841a75e8971fb765db24eb3ab2948df06405561a2365b7a5b37be950331fe5960d393892ed00ffb37c73045ec16949363ab3e5c331c0317906d49b706 SHA512 97f0a0fc75c85dc646cace0560ac02645f4f8fe19309645de2aec3c17f0d0363526ee1a927c688d4d74bf2f81e2db3560e740a162a1b0186b93e84f824edd974 EBUILD nokogiri-1.15.5.ebuild 2725 BLAKE2B 6591c0f404c0c06fa1e832b18dd5839871d0c9b82f3f7a010f37040b598685cbe5d638b2f71bbc0f2e06496919633e4715e0a5a0ba94bfffa94e069800061156 SHA512 7ade4f7015c07f15fad0ae776cb06e9acddf0f3b8e1e0288b614adca1ea03d7506fd8a9471b6a419d2e5e11ccb76274d6b5472332c1c772ed43b982aab677185 EBUILD nokogiri-1.16.0.ebuild 2723 BLAKE2B 89add45ce1ff833b87f80ec7ba9540ddee2912df7eee3d22ab590af927e047922c6a8508e4111cbcee40e7adb885193c9690c28f10af30a381f4e113ab6be925 SHA512 80b9a3f11f831a3456196900f5314a690071f4197d28fffc05b5d46489839fafe76aba74f9cb81e4824f77c13b3909072b246a418d4441f7cd490753aca33880 EBUILD nokogiri-1.16.1.ebuild 2727 BLAKE2B 1e30bf45c0a2c2a6bceea76e80d9a16dc1431b6dad9fbfbbc16653067a85159c755736db0cbfa1e85adf366a23cffe1aca9722f415bc4b9d3da4600aeaf37d50 SHA512 8127c2309ab5d486920f1403e5917d1767330114c1ec25137ef203cbfa594ce553e8c7bb981a18e89b861a4370aa9230a470c10501a51a30c2546ce92b391f35 +EBUILD nokogiri-1.16.2.ebuild 2727 BLAKE2B 5bbd5dc1a28d112bfbf361c955500343e6b49244031aa07bce967768ced693ce43993f1dd6d3772d511e919a43f2dd2b1c7367eef6c069aa79a61e6022a02243 SHA512 aed9ffdf2e989f22c3262ca01b13d9b5c6d71a7f920dfdd15572b1455162c26f9c9458f0ccf7e9b1f1be6fabf049265fe98bcc98e83a6e5a01283b307f84b427 MISC metadata.xml 349 BLAKE2B 824094b81182da6ed2c43f55f8697dbf614662e1e032ed62bcf8ec4ef8fb6e6a1bf346f90863a8cb7d6cfaf2696f0be70fd3027d6d01e583bba0c1334252447d SHA512 9ab17ab504279d8d1ea584f7a6f411fe778b89564016dc0d596ec7f714cf9ad80ed5e30c179ec6aa190bafe8a8b72bfdc5a964d213a8024783da246bbb817629 diff --git a/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild b/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild new file mode 100644 index 000000000000..64d7dd3b0f24 --- /dev/null +++ b/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" +SLOT="0" +IUSE="test" + +RDEPEND="${RDEPEND} + >=dev-libs/libxml2-2.12.5 + >=dev-libs/libxslt-1.1.39 + sys-libs/zlib + virtual/libiconv" +DEPEND="${DEPEND} + >=dev-libs/libxml2-2.12.5 + >=dev-libs/libxslt-1.1.39 + >=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 '/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() { + MT_NO_PLUGINS=1 \ + RUBY_MEMCHECK_RUNNING=true \ + ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die +} -- cgit v1.2.3