diff options
Diffstat (limited to 'dev-ruby')
22 files changed, 244 insertions, 130 deletions
diff --git a/dev-ruby/amatch/amatch-0.4.1.ebuild b/dev-ruby/amatch/amatch-0.4.1.ebuild index 4c0399a8981e..9e7b3fb330ec 100644 --- a/dev-ruby/amatch/amatch-0.4.1.ebuild +++ b/dev-ruby/amatch/amatch-0.4.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" @@ -19,12 +19,11 @@ HOMEPAGE="https://github.com/flori/amatch" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" -IUSE="" ruby_add_rdepend "=dev-ruby/tins-1*" # These packages also provide agrep, bug 626480 -RDEPEND+=" !app-misc/glimpse !app-text/agrep !dev-libs/tre" +RDEPEND="!dev-libs/tre" all_ruby_prepare() { # mize is listed as a dependency but not actually used diff --git a/dev-ruby/excon/Manifest b/dev-ruby/excon/Manifest index 28377e204c17..d9ee4860d717 100644 --- a/dev-ruby/excon/Manifest +++ b/dev-ruby/excon/Manifest @@ -2,3 +2,4 @@ DIST excon-0.104.0.tar.gz 229173 BLAKE2B b719d9391f8afc3553c45b88436725e2d7ed649 DIST excon-0.112.0.tar.gz 239915 BLAKE2B 5873c43ae0739d46c01c18caf2aeb22244372377b565cb00ee56a74995a9672165cba28f9da7cf53e9878e6f99cc69b50937b6bef6ebf7f7edd3ca8e81d41c00 SHA512 1b27cfbb8483c4f0ace6cead44f375e3fb13e7e551220f02f9ba6b3a868a2f9f5c28da535b82becc81f1350088b8246fce34c5b1a978c2da1ffeb3979771784f DIST excon-1.2.1.tar.gz 240670 BLAKE2B c68eaf58604939aab2a93964061114545a195aed8acce82165988cc26f8047e562448211bbe6e3aedf42d729a9deb06de1ac2ed7eeed0b5ba987f5106884a78f SHA512 773f994d69c505e1087627f332af08d6d39529ec35d528467c107c51149677d3ff7c281c10a929cd6b8594cba60656b310601a559c042eec4b7f291a69efa7d1 DIST excon-1.2.2.tar.gz 242853 BLAKE2B 823cd40744233d190466e8d43a695a93640a5a651c1b8c16e67380466011e64bdfb98a6597964d149ecc77b881122aba15a29ec6350ac0b1406906d0f42142e8 SHA512 49b6eb69210420db25b3d2af3c151883bfacede9eef20a966c8d3d732fe7ec484826a3913d9a76088fcbc1389868a745ac72c723eef9f9496d7b5adc2c6cef54 +DIST excon-1.2.3.tar.gz 239407 BLAKE2B 74d6232b7b558821d65dc0e9644c7f3fa89379ea5a89b55b9d29cc271b2c6faf8f620a4d539608985a161aad2443ff2eee5e23d0996d051e407a1b7ee1501102 SHA512 6acd9cacad2f0689f824d56fda535968c70bfd42a9cedf9155cb6a25cffc187763e57e95109beeadff408092a58ae4ac188129fc22a230287203067271ad0965 diff --git a/dev-ruby/excon/excon-0.112.0.ebuild b/dev-ruby/excon/excon-0.112.0.ebuild index cd358ef64a12..349c575aac3c 100644 --- a/dev-ruby/excon/excon-0.112.0.ebuild +++ b/dev-ruby/excon/excon-0.112.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -17,7 +17,7 @@ SRC_URI="https://github.com/excon/excon/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="amd64 ~arm64" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-ruby/excon/excon-1.2.3.ebuild b/dev-ruby/excon/excon-1.2.3.ebuild new file mode 100644 index 000000000000..a8a928e3343b --- /dev/null +++ b/dev-ruby/excon/excon-1.2.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_EXTRADOC="changelog.txt README.md" +RUBY_FAKEGEM_GEMSPEC="excon.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="EXtended http(s) CONnections" +HOMEPAGE="https://github.com/excon/excon" +SRC_URI="https://github.com/excon/excon/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +ruby_add_bdepend " + dev-ruby/rake + test? ( + dev-ruby/activesupport + >=dev-ruby/json-1.8.5 + dev-ruby/open4 + >=dev-ruby/rack-2.2.7-r1 + dev-ruby/rackup + dev-ruby/rdoc + dev-ruby/sinatra + dev-ruby/webrick + ) +" +all_ruby_prepare() { + sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die + + # test that need network + rm -f spec/excon/test/server_spec.rb || die + + # test that wrongly assumes 127.0.0.1 won't run a DNS server + rm -f spec/requests/{dns_timeout,resolv_resolver}_spec.rb || die + + # tests that depend on eventmachine which is broken and no longer maintained + rm -f tests/{bad,error,pipeline,response,request}_tests.rb \ + tests/{batch-requests,complete_responses}.rb \ + tests/middlewares/{decompress,mock}_tests.rb || die + rm -f spec/requests/eof_requests_spec.rb spec/excon/error_spec.rb || die +} diff --git a/dev-ruby/fiber-storage/Manifest b/dev-ruby/fiber-storage/Manifest index 1f442bc27969..86271d6de329 100644 --- a/dev-ruby/fiber-storage/Manifest +++ b/dev-ruby/fiber-storage/Manifest @@ -1 +1,2 @@ DIST fiber-storage-0.1.2.tar.gz 6064 BLAKE2B d052a660b37947b27c924c278330820dd14b041fd1e9a02df74f076467613000b48cb8f4f053702430ad29465577017b027246ef3112e4ef1e4c048f4d84368a SHA512 761be842905c4ac6766dc333c82cbcd7f95e442c06b7426f8139910794ea5f779128c64d7fadb306de232f1f527800318deb41a8d0af877fc763ff30fc00b666 +DIST fiber-storage-1.0.0.tar.gz 7048 BLAKE2B 0f007d00ae5d7471f1268e42a33c7a6b809df1b188dc40c66576fc5b95d685118ed70f4fba37bfd6c18b28f4b02d27ce6f46fdbc433791411b8663bd14af6990 SHA512 c9f50dd2dda978c7050dab8fe16ee7eabe1b685a52e6a5c09e078d9fd7dceb7842a169b824b968e688c980b15d21f126415a4cbd8d014fe923133c452c090e24 diff --git a/dev-ruby/fiber-storage/fiber-storage-1.0.0.ebuild b/dev-ruby/fiber-storage/fiber-storage-1.0.0.ebuild new file mode 100644 index 000000000000..923909d13d4d --- /dev/null +++ b/dev-ruby/fiber-storage/fiber-storage-1.0.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="sus" +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="fiber-storage.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Provides a compatibility shim for fiber storage" +HOMEPAGE="https://github.com/ioquatix/fiber-storage" +SRC_URI="https://github.com/ioquatix/fiber-storage/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + rm -f config/sus.rb || die +} diff --git a/dev-ruby/file-tail/Manifest b/dev-ruby/file-tail/Manifest index 35684f8ce76d..cacb7df0b344 100644 --- a/dev-ruby/file-tail/Manifest +++ b/dev-ruby/file-tail/Manifest @@ -1,2 +1 @@ -DIST file-tail-1.2.0.gem 19968 BLAKE2B 8a9ef8b73d2e7c8c21ec04e817991ebe40ba62800e565b607dbae9732b0192074cff4b3fc9dc7a495be9a2315eab63b48126e524091d72b37f7e8261cb1333f1 SHA512 ac20e5e855144f7462ef0471be08ab56e521a7b22117f1653e06624e1d81ac11d047a21a6979476bc8547dd88d90f25e51052950148acbe3ea64bdd3c35e1da3 DIST file-tail-1.3.0.gem 20992 BLAKE2B ecb15f77cabebc9f048888eba2ae2b1b49e66cbbb6143c84a8f98e98f5f6f9480da0b1652b24adfcc826c318d84238e980b3309a0ab1782d6065cb0242726ac5 SHA512 225f73895d76f4c7db37dc891603cf9c7cd6a188c30cd6a19c758cb470ff89d3beb0887cd7bc052c846236b56384a928277c53dfe9e9adef60d35f4fe2f0d0f5 diff --git a/dev-ruby/file-tail/file-tail-1.2.0-r1.ebuild b/dev-ruby/file-tail/file-tail-1.2.0-r1.ebuild deleted file mode 100644 index 752ea7517b83..000000000000 --- a/dev-ruby/file-tail/file-tail-1.2.0-r1.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# 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_RECIPE_TEST="none" - -RUBY_FAKEGEM_RECIPE_DOC="rdoc" -RUBY_FAKEGEM_DOC_SOURCES="lib README.md" - -RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" - -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="A small ruby library that allows it to 'tail' files in Ruby" -HOMEPAGE="https://flori.github.io/file-tail/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -ruby_add_rdepend "=dev-ruby/tins-1*" -ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )" - -all_ruby_prepare() { - sed -i -e '/test_tail_change2/aomit "has race condition"' tests/file_tail_test.rb || die -} - -each_ruby_test() { - ruby-ng_testrb-2 -Ilib tests/*_test.rb - - rm -f test.* -} diff --git a/dev-ruby/file-tail/file-tail-1.3.0.ebuild b/dev-ruby/file-tail/file-tail-1.3.0.ebuild index e323c0191884..57f30b27d5b6 100644 --- a/dev-ruby/file-tail/file-tail-1.3.0.ebuild +++ b/dev-ruby/file-tail/file-tail-1.3.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" RUBY_FAKEGEM_RECIPE_TEST="none" diff --git a/dev-ruby/mini_portile2/mini_portile2-2.8.8.ebuild b/dev-ruby/mini_portile2/mini_portile2-2.8.8.ebuild index 05cf768babd0..5d5bf8b95b1b 100644 --- a/dev-ruby/mini_portile2/mini_portile2-2.8.8.ebuild +++ b/dev-ruby/mini_portile2/mini_portile2-2.8.8.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" inherit ruby-fakegem @@ -15,7 +15,7 @@ SLOT="$(ver_cut 1-2)" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" IUSE="test" -BDEPEND="test? ( dev-build/cmake )" +BDEPEND="test? ( app-crypt/gnupg dev-build/cmake )" ruby_add_bdepend "test? ( dev-ruby/minitar:0 @@ -29,6 +29,10 @@ all_ruby_prepare() { # cannot guarantee. sed -e '/test_configure_defaults_with/askip("Requires gcc to be the C/C++ compiler.")' \ -i test/test_cmake.rb || die + + # Keep gpg from creating a default common.conf with broken keyboxd support. + mkdir -m 700 "${HOME}/.gnupg" || die + touch "${HOME}/.gnupg/common.conf" || die } each_ruby_test() { diff --git a/dev-ruby/minitest-hooks/minitest-hooks-1.5.1.ebuild b/dev-ruby/minitest-hooks/minitest-hooks-1.5.1.ebuild index ec292c0b4544..c9c55b02ad13 100644 --- a/dev-ruby/minitest-hooks/minitest-hooks-1.5.1.ebuild +++ b/dev-ruby/minitest-hooks/minitest-hooks-1.5.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" # Skip tests since they require unpackaged sequel RUBY_FAKEGEM_RECIPE_TEST="none" @@ -16,4 +16,3 @@ HOMEPAGE="https://github.com/jeremyevans/minitest-hooks" LICENSE="MIT" SLOT="1" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="" diff --git a/dev-ruby/net-imap/Manifest b/dev-ruby/net-imap/Manifest index 5688d2bc4ffc..5d063b6be736 100644 --- a/dev-ruby/net-imap/Manifest +++ b/dev-ruby/net-imap/Manifest @@ -2,3 +2,4 @@ DIST net-imap-0.4.17.tar.gz 254727 BLAKE2B 57311009a92d1e68cfa833dccdcb7d42d56cd DIST net-imap-0.4.18.tar.gz 254836 BLAKE2B b4980717dbebae729d83899265c3883f18afb5d63f8b26b7df7e1ca50df1b3a9c72d6b53563439720f11b27a936549505a7571d273e6f7d44f1b285cec616dd7 SHA512 d98e382f2a6c194a487c20fff16f7ca2427704630f79f3e0e71c30096118d69f358afc190e41e25d00690277173732be01133e194caec303315e9450b27f382f DIST net-imap-0.5.3.tar.gz 277208 BLAKE2B f518b18203d67c01f8ebd44f8f642de1e3cd33b1e5d99785611eee6a0cfb44e1e34845d19d082d28299241b3347116b685848b7c5e0ace946122c431280bb99b SHA512 2e50aca7e577a556b29b6301f93afbd3e4cdcf534fb298c37a8816e21b20b3497c773e78954e23a18608fcc4f75297892fbc3ddd1a68384ea43468cd52e10bef DIST net-imap-0.5.4.tar.gz 279986 BLAKE2B 2a294b89b9940ae132aee3120d7006d6b41b84445809ee5689b94c66a09a222569cf7b2755e98c52cbeb1b8fa3241ba5a255762970b0660721779f32ceea240e SHA512 e013b6c2c2933e69689a1b4912f4b5bd27e29118da04d74311d4f87032e9d5e74ca1ddd8bf3362763908eceab5f17dc4415ddaecac25cab7e6bd25c2fe6294f9 +DIST net-imap-0.5.5.tar.gz 282026 BLAKE2B bb7eaf85c7ec2b16b5d3ff5f6ac5f61e2509f5bc47415d56e6a4a5b2b8cabb02f35b25b53b21c7e9fdcef22f9f8d78955ea2aa3e1d798fc0cc5bc5721f4285ae SHA512 4828196b45fa83517e903d098a730ce69ec8c8f5e08d9c138f843754cea88d182a43499cdbe5ed5fa4db3a299172e478944f30de0a2d72b986ebc6a449f7d9ce diff --git a/dev-ruby/net-imap/net-imap-0.5.5.ebuild b/dev-ruby/net-imap/net-imap-0.5.5.ebuild new file mode 100644 index 000000000000..cf99a833fdd7 --- /dev/null +++ b/dev-ruby/net-imap/net-imap-0.5.5.ebuild @@ -0,0 +1,42 @@ +# 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_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="net-imap.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby client api for Internet Message Access Protocol" +HOMEPAGE="https://github.com/ruby/net-imap" +SRC_URI="https://github.com/ruby/net-imap/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_rdepend " + dev-ruby/date + dev-ruby/net-protocol +" + +ruby_add_bdepend "test? ( + dev-ruby/digest + dev-ruby/strscan + dev-ruby/test-unit + dev-ruby/test-unit-ruby-core +)" + +all_ruby_prepare() { + sed -e 's/__dir__/"."/' \ + -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/simplecov/,/^end/ s:^:#:' \ + -i test/lib/helper.rb || die +} diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest index 208e2d98ebc7..bbe6781aa626 100644 --- a/dev-ruby/nokogiri/Manifest +++ b/dev-ruby/nokogiri/Manifest @@ -3,3 +3,4 @@ DIST nokogiri-1.16.6-git.tgz 11014594 BLAKE2B 5a2becbbaf52d753569d778fcf2c84b521 DIST nokogiri-1.16.7-git.tgz 11014702 BLAKE2B b300ceb73101c822df040ed99edcae3b1556ca8a9060b05b51107a949d562ffdd02349d2f771207ad6cb8aa6d17725b823f22b086acde638ad36e0ac36c75889 SHA512 6f4c28351bcf1d01e1892eaceb75a6af3fb8399c2cb18c9db1c2a2e65d87103d9a7f8ef4bf6396e2ab8ca6c178125999bd7273893cb43e6ce47c9e46cfb17462 DIST nokogiri-1.16.8-git.tgz 11014909 BLAKE2B 55a580c96bb281bd57136488139f01dd5939b9fa8122104b6a19c92a121038215ba63d585e6e229b01b5779b650485cf6ff3585daa048173fc6f539d3b3c25a7 SHA512 bcfd72cd4b2b425d9615d7df095989b2ce39abb01eee3fa2d24e09b5f9f3e25d58879a95c3e869cebf6f6d3c0e94f7c2114da51218d2569d806223bd2654de86 DIST nokogiri-1.17.2-git.tgz 11048266 BLAKE2B eb7c1b178d8fbb91e1b398e639a9a68d1b9e62af8de0d41e5b48e681f6359a4501734216431273f4e7d9d3e2aafee9cf9f0237c504e0b0f9cfc848d8cba2ef57 SHA512 9282f38feadd6139e99689706c045c6cc42ef71b7372a6c6d7e684faad6a40249a69553eaa7fbff4f7677e328b4d64b0ab7752415f574f21cca4e2e32ed75852 +DIST nokogiri-1.18.1-git.tgz 11051288 BLAKE2B 544d1cbcfb8e75ca499b93a68928dbeba678ba978e6f2bdd624537d7adb0508e8e0127f2ba4ac2f49be552ba1db932561059d30db65a9940da0ed329b9acf3e9 SHA512 3a099d0c5fec88b3728be150dc5a7a5d52e0b7d2f875e662eccc2fcb7dc4c5c140cf4fca14792d8329f196e3f1fc564af6791c48f693a08816ab977011a157fd diff --git a/dev-ruby/nokogiri/nokogiri-1.16.8.ebuild b/dev-ruby/nokogiri/nokogiri-1.16.8.ebuild index ae75d1819732..ec98aba72670 100644 --- a/dev-ruby/nokogiri/nokogiri-1.16.8.ebuild +++ b/dev-ruby/nokogiri/nokogiri-1.16.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P} LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc ~x86 ~arm64-macos" IUSE="test" RDEPEND=" diff --git a/dev-ruby/nokogiri/nokogiri-1.18.1.ebuild b/dev-ruby/nokogiri/nokogiri-1.18.1.ebuild new file mode 100644 index 000000000000..9a0fc231b909 --- /dev/null +++ b/dev-ruby/nokogiri/nokogiri-1.18.1.ebuild @@ -0,0 +1,96 @@ +# 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.42 + >=sys-libs/zlib-1.3.1 + virtual/libiconv" +DEPEND=" + >=dev-libs/libxml2-2.13.5 + >=dev-libs/libxslt-1.1.42 + >=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 +} diff --git a/dev-ruby/term-ansicolor/Manifest b/dev-ruby/term-ansicolor/Manifest index 1e898a12e2d8..c5764b82696a 100644 --- a/dev-ruby/term-ansicolor/Manifest +++ b/dev-ruby/term-ansicolor/Manifest @@ -1,3 +1 @@ DIST term-ansicolor-1.11.2.gem 47616 BLAKE2B 4481e347c23af4e03061bd92df387ad996e99e86c63ab9377c713ae3f70f12a53c3aa8a411fdcf003fabaedf3e9b39275910627ebaff19b963f49b2879c7b895 SHA512 df7384dbfd68e1efe161f2edc186306a40d8492b488bfc9436cadef09d7b961bc29983a40fca93e2e127c1b502272eb01aa65cc65ba7729a81b31b37aaafcd65 -DIST term-ansicolor-1.8.0.gem 45056 BLAKE2B 89edaf5ecb56dada8027ab91009b71a6ee9a27c85bddeda26d281230e0fc15f32a2de1c3259d02560bdf9c81a2ed92a920521eec17670eaa0b8db1264ff7311c SHA512 4a13f369c03d3660f48f28068f311d5eb806e2e4724da6a3ee38eb0ed3c195a1ce8ea24215dfe80af5aab8df1f6a86fdd89d54c62ee2fb9b7e782f9e5ed3013f -DIST term-ansicolor-1.9.0.gem 46592 BLAKE2B 8e9f4f4f09f57b7eef9b824a1327c4ece8be365b1eeb17f9f29437bd883a96f7339912d9d5b52546d262a49bf2f42520e451cdb0a76c08c27bc2b9bcffeed492 SHA512 a6d9bfd11b620c6bb3de204929af58b2b007359975c64b7f9485b4574e1ace68f7ac389f50a6239050735eed8ec894fa8d8d56821f7614c19ece9053d4c781cd diff --git a/dev-ruby/term-ansicolor/term-ansicolor-1.11.2.ebuild b/dev-ruby/term-ansicolor/term-ansicolor-1.11.2.ebuild index 33d6fedb85c0..f3f3c2ba1c1c 100644 --- a/dev-ruby/term-ansicolor/term-ansicolor-1.11.2.ebuild +++ b/dev-ruby/term-ansicolor/term-ansicolor-1.11.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" RUBY_FAKEGEM_RECIPE_TEST="none" RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" diff --git a/dev-ruby/term-ansicolor/term-ansicolor-1.8.0.ebuild b/dev-ruby/term-ansicolor/term-ansicolor-1.8.0.ebuild deleted file mode 100644 index 748d3f1f35ab..000000000000 --- a/dev-ruby/term-ansicolor/term-ansicolor-1.8.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# 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_RECIPE_TEST="none" -RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" - -RUBY_FAKEGEM_GEMSPEC="term-ansicolor.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="Small Ruby library that colors strings using ANSI escape sequences" -HOMEPAGE="https://flori.github.io/term-ansicolor/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" - -ruby_add_rdepend ">=dev-ruby/tins-1.0" - -each_ruby_test() { - ${RUBY} -Ilib:.:tests -e 'Dir["tests/*_test.rb"].each{|f| require f}' || die -} - -all_ruby_install() { - all_fakegem_install - - docinto examples - dodoc examples/* -} diff --git a/dev-ruby/term-ansicolor/term-ansicolor-1.9.0.ebuild b/dev-ruby/term-ansicolor/term-ansicolor-1.9.0.ebuild deleted file mode 100644 index 748d3f1f35ab..000000000000 --- a/dev-ruby/term-ansicolor/term-ansicolor-1.9.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# 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_RECIPE_TEST="none" -RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" - -RUBY_FAKEGEM_GEMSPEC="term-ansicolor.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="Small Ruby library that colors strings using ANSI escape sequences" -HOMEPAGE="https://flori.github.io/term-ansicolor/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" - -ruby_add_rdepend ">=dev-ruby/tins-1.0" - -each_ruby_test() { - ${RUBY} -Ilib:.:tests -e 'Dir["tests/*_test.rb"].each{|f| require f}' || die -} - -all_ruby_install() { - all_fakegem_install - - docinto examples - dodoc examples/* -} diff --git a/dev-ruby/vlad/vlad-2.7.1-r1.ebuild b/dev-ruby/vlad/vlad-2.7.1-r1.ebuild index 38a8ba0ce20d..29141c5d539b 100644 --- a/dev-ruby/vlad/vlad-2.7.1-r1.ebuild +++ b/dev-ruby/vlad/vlad-2.7.1-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" RUBY_FAKEGEM_EXTRADOC="considerations.txt History.txt README.txt" @@ -14,7 +14,7 @@ HOMEPAGE="https://github.com/seattlerb/vlad" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" ruby_add_bdepend ">=dev-ruby/hoe-3.13 test? ( >=dev-ruby/minitest-5.7 )" diff --git a/dev-ruby/zeitwerk/zeitwerk-2.7.1.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.7.1.ebuild index 7901e88e5a88..750f705c1a7c 100644 --- a/dev-ruby/zeitwerk/zeitwerk-2.7.1.ebuild +++ b/dev-ruby/zeitwerk/zeitwerk-2.7.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby32 ruby33" +USE_RUBY="ruby32 ruby33 ruby34" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
