From d2ed973482fdd800013658e83a61709b29e0a80f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 27 Jun 2024 07:59:40 +0100 Subject: gentoo auto-resync : 27:06:2024 - 07:59:39 --- dev-ruby/nokogiri/Manifest | 2 + dev-ruby/nokogiri/nokogiri-1.16.6.ebuild | 96 ++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 dev-ruby/nokogiri/nokogiri-1.16.6.ebuild (limited to 'dev-ruby/nokogiri') diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest index d4e953aac6b5..72a6053538e4 100644 --- a/dev-ruby/nokogiri/Manifest +++ b/dev-ruby/nokogiri/Manifest @@ -4,10 +4,12 @@ DIST nokogiri-1.16.2-git.tgz 11014186 BLAKE2B 8b34c586f3326278299786fec8b7513f61 DIST nokogiri-1.16.3-git.tgz 11014282 BLAKE2B fbda2a863374e25a9dae0e7ab145419b759e1ec615a8e87418825ed1d188801d535be87bb9e36bb717062080bb2a9f7cb179fdb311dd4dda61b019a41d4df6b8 SHA512 e86d5d2cb47720b9f2e72ced13e07e6d9a2bda808e05d9d151ffba92820e148bb6cd8cfe148d15247b13c23feb2abe64942f2665431e66dc821b9655425df8e3 DIST nokogiri-1.16.4-git.tgz 11014494 BLAKE2B c07d75af189a8f897b885c111bb43258d039c31c8134df4dff65162fb5d3c24c48ec1194af24d816d8c5cc405b8384ae6430ffdce0a8687504f1de2b784b70dd SHA512 76a179fa7c907d5ffd548e472b9d03d02ba1afbd80c58f8c2760a0e342c2d3db75bd973e7a2f3751c671b68dd63ea3da95a6631f4963e18f85d5c5e7b9b877f4 DIST nokogiri-1.16.5-git.tgz 11014565 BLAKE2B 0158c23c1479a4c05074906afbb1f7507814f73702bf6c4f5dbf90d130ad61cbd89e9be2957c59dc3a2f5bf1023d625c7c435220e168d76dbc524d314175cd52 SHA512 822acaf88f838e4b2b1840187e62d9d4424a0e552a850a2349541c114f58f3ca1ca83df2d1d1323275bb6847b79ea4afc87b6282c8ebc56094f1eb8b57dda217 +DIST nokogiri-1.16.6-git.tgz 11014594 BLAKE2B 5a2becbbaf52d753569d778fcf2c84b521a30aa52abeb923970dbc8abea56277b807e70538032edfb883552c9385b7c225885cdbab111462f51a741a0b8d3bd5 SHA512 c90e0dcd9c90980344551a5b660e15cbdf1f42a139c123f936c728952f0d8d07f8ca4810cf6f8dd51070bff66398dca3cb29ed60f8e2242930233dd594efe843 EBUILD nokogiri-1.15.3.ebuild 2702 BLAKE2B 8934088d9edfb342b53b74f5fcabf397cf9cdb050c5c8d5ebac1686a15070ae4c1d22d3320de67ac0d055d18384f177353ffa05683e0ba17663c1cba2ae2f9e7 SHA512 3add6c7af7cc8bee29064e8fed1cea2237b401381f6451f5b5938728df1f60046ea4e342cad334630a5e00ccc54fe39a31d8c59a8f10051a56c3219c83e62f9a EBUILD nokogiri-1.15.5.ebuild 2725 BLAKE2B 6591c0f404c0c06fa1e832b18dd5839871d0c9b82f3f7a010f37040b598685cbe5d638b2f71bbc0f2e06496919633e4715e0a5a0ba94bfffa94e069800061156 SHA512 7ade4f7015c07f15fad0ae776cb06e9acddf0f3b8e1e0288b614adca1ea03d7506fd8a9471b6a419d2e5e11ccb76274d6b5472332c1c772ed43b982aab677185 EBUILD nokogiri-1.16.2.ebuild 2725 BLAKE2B b4cb761c77111b4f3abf8bd0626c9f866ac6e5aa6edf078f43173d9c79eeb1293e7fb90479825c0ac93650a9ec2de0b290985bdbb876507130ac83652ce206fc SHA512 778595850b73d5d9639f03bda58e7f5b94a764275768916f28e2b6c19c81cb61a1c722672627bad92e3ce7b4fb6849448fa511c0b32405453194216416060292 EBUILD nokogiri-1.16.3.ebuild 2727 BLAKE2B 61241258e2b01fbfdb35676fc482a093afabf1d9f0cade0a0391a5aabd19c37e6d85e1ae4853cefb60a6cc70a180c69a53d574ed2d4090d44cc0c394ff1cbc96 SHA512 7f231f67cf38a765a44dc89dd7862f8754be8c143db2a74d32d16ff690f8941a931c1ad5314d1588e61fc6164318a90bb73193d333420d05ad7a8055e8bb8d0c EBUILD nokogiri-1.16.4.ebuild 2734 BLAKE2B 905c3c8b0fee9cdd41e8c54772d5395ffc4e5e742ae02b8863bf8b0ba088cd325f51b725d704fd9d6930141b89606dcccd1674faacc6f6c4ee6160026fd33046 SHA512 0acbd5a3c24ad15bd4352f2c14cc385217e4ba090ee5d1898502399ac009c6dff29e5db45d924325924fa70be9a3435f1d6d4a9b5e37e682a24ab3cf37603534 EBUILD nokogiri-1.16.5.ebuild 2734 BLAKE2B 769f6000919abf9652b5d368aaeb1c7c2f811f9661e89a2d692245263d091659fecd16410fb49fead25babe906e78d8b90140757a1891be2ea141649b527c347 SHA512 06583b2ec6ae6b3f14eee0bd9d29bd85cc9ec4cd1216deb397cf8f91b87c9adf79f79f7091765ce5e226590ce8fcf984f11c858bbc9f941f314c14ee4811d722 +EBUILD nokogiri-1.16.6.ebuild 2715 BLAKE2B 20e9705fd38ca9b623e12de65857ff505d5dafc440fb262b77003d7dc854ce9f700c09cdcbee21e0c5adabf7205df12db235eb9ec76fd32f5324c57f5b5ce477 SHA512 beb7b749b0b4246e968eeb7c268b2f143402e4759d205613696f7e4d000394723805040ecd581a3f5efb7f90051101ca06d9ce70c1ba3d9987ab985d5d3f65b8 MISC metadata.xml 349 BLAKE2B 824094b81182da6ed2c43f55f8697dbf614662e1e032ed62bcf8ec4ef8fb6e6a1bf346f90863a8cb7d6cfaf2696f0be70fd3027d6d01e583bba0c1334252447d SHA512 9ab17ab504279d8d1ea584f7a6f411fe778b89564016dc0d596ec7f714cf9ad80ed5e30c179ec6aa190bafe8a8b72bfdc5a964d213a8024783da246bbb817629 diff --git a/dev-ruby/nokogiri/nokogiri-1.16.6.ebuild b/dev-ruby/nokogiri/nokogiri-1.16.6.ebuild new file mode 100644 index 000000000000..219482043eff --- /dev/null +++ b/dev-ruby/nokogiri/nokogiri-1.16.6.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/" +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.12.8 + >=dev-libs/libxslt-1.1.39 + >=sys-libs/zlib-1.3.1 + virtual/libiconv" +DEPEND=" + >=dev-libs/libxml2-2.12.8 + >=dev-libs/libxslt-1.1.39 + >=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 +} + +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