commit: e30b81ec74678e4b912cb24c281b9b17cb495a85 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Jul 7 04:27:59 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Jul 7 04:27:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e30b81ec
dev-ruby/rexml: add 3.3.1 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rexml/Manifest | 1 + dev-ruby/rexml/rexml-3.3.1.ebuild | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-ruby/rexml/Manifest b/dev-ruby/rexml/Manifest index aa6ac856a0a7..25422d989c60 100644 --- a/dev-ruby/rexml/Manifest +++ b/dev-ruby/rexml/Manifest @@ -1,3 +1,4 @@ DIST rexml-3.2.8.tar.gz 460176 BLAKE2B 25b7563c1bc6eacf1b39106fde09c20d34040e5b99d7a38502d4e71cf96fffa08772cdf6def0c50d9e2d116af70a6bd0469aa1dd0512d7c5eca043b9e71979b7 SHA512 255bd834f5c7584a87979a8896fef761ada8d0beb5458cc86b16df59d8634bf1446a0fb679935c003a9a5be7a03ffcb2bf86d08e0f26b0d0f7a3dfbaa87da325 DIST rexml-3.2.9.tar.gz 461496 BLAKE2B 9e379b7ad3808461bc738c66c84c0654c256d790bc2d9ad6b23f3da71b4d12bb198349b93c580fd7f44384fbabe3604d041db96c8a94181abc7fb153f0ff1099 SHA512 9feba575fb9c8f7bb9f2d2d03fa67a011c0d52604630ab3b9f6acd99a86d2f520647d58134ae5cf2068e1f87e9c4ba9b98814e437c158bab0f7a4f368e4be486 DIST rexml-3.3.0.tar.gz 461623 BLAKE2B d741310000bf06276f7e424fc9a01cf20657d857b79ab80937537f5853cdfd59de86d81547dbc5298de48b63a683a1c09f617923ce123872610641ad08a6aa09 SHA512 b5edd8d06cd404dcd3d39c124ad1ed96a30d1185c9cf045bfcce73d1f71424b05986dc66f8b4701c20b940f78bae640ee46601334f1cbb304537c549ce099afc +DIST rexml-3.3.1.tar.gz 462490 BLAKE2B 2332c3233bfdd5bec067c548016dd20e8bd97e82e6c924f418242827503221a5ce01f81d9b747967bb984d9768f0652e6402dff41c358f95a643b3783b18e564 SHA512 df35a2481743ac4f857ba1ba6396c37de26e9a306abe763dba943a464be9d5e063e0618182446b6f51011eb04aa6cf094b17e24d9826dd294e02596d5033ac83 diff --git a/dev-ruby/rexml/rexml-3.3.1.ebuild b/dev-ruby/rexml/rexml-3.3.1.ebuild new file mode 100644 index 000000000000..802c814bb1f9 --- /dev/null +++ b/dev-ruby/rexml/rexml-3.3.1.ebuild @@ -0,0 +1,40 @@ +# 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_DOC="none" +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="An XML toolkit for Ruby" +HOMEPAGE="https://github.com/ruby/rexml" +SRC_URI="https://github.com/ruby/rexml/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" + +SLOT="3" +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" + +ruby_add_rdepend "dev-ruby/strscan" + +ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )" + +all_ruby_prepare() { + sed -i -e 's:require_relative ":require "./:' -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/I s:^:#:' Rakefile || die + + # Ensure we use the (new enough) gem version of strscan. The + # versions bundled with ruby up to at least 3.3.1 are all too old. + sed -e '3igem "strscan"' \ + -i test/helper.rb || die +} + +each_ruby_test() { + ${RUBY} test/run.rb || die +}