summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-12-15 08:45:00 +0100
committerHans de Graaff <graaff@gentoo.org>2024-12-15 08:55:40 +0100
commit90b807012c15352163d6e3aa48b4602875ad915c (patch)
treecef48d03d74ab703c98ac75b58c3b666a6d30a22 /dev-ruby/rexml
parentdev-ruby/rdoc: add 6.9.0 (diff)
downloadgentoo-90b807012c15352163d6e3aa48b4602875ad915c.tar.gz
gentoo-90b807012c15352163d6e3aa48b4602875ad915c.tar.bz2
gentoo-90b807012c15352163d6e3aa48b4602875ad915c.zip
dev-ruby/rexml: add 3.4.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rexml')
-rw-r--r--dev-ruby/rexml/Manifest1
-rw-r--r--dev-ruby/rexml/rexml-3.4.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/rexml/Manifest b/dev-ruby/rexml/Manifest
index ff423903e5d1..5af6615bc501 100644
--- a/dev-ruby/rexml/Manifest
+++ b/dev-ruby/rexml/Manifest
@@ -1 +1,2 @@
DIST rexml-3.3.9.tar.gz 469735 BLAKE2B 39c8a1184b839608da0307271b853f26a253b16e1da4e8a56d024750222cca21138681d2445a869aee0c5ace63cd6fc27b7e0df0060dd0e715d3a0d03d217765 SHA512 391a31938b27d821f35fc96f66eacec1bccfb9d2e250245c15ffbdb05f140ce91a28c7f4d8e9989003ce4480270ddb6c32e0b07f73b2677249ef03e615789f46
+DIST rexml-3.4.0.tar.gz 469982 BLAKE2B 2173b68cdd05dd655e12f5761e511daf3d06a21f6082e76db7e2cd86609dac89a020b36b0eeb91da7b25b099b662eea4f750b2847d22843066b34df070d39b87 SHA512 638bd865f3c1852379c9f038329ac811da5f6747b0b29b95bc34ffadd5abaa9fba431bafc21adb7fddca2b6d85f22f484e14f61894c09e9b97afac19671d8331
diff --git a/dev-ruby/rexml/rexml-3.4.0.ebuild b/dev-ruby/rexml/rexml-3.4.0.ebuild
new file mode 100644
index 000000000000..802c814bb1f9
--- /dev/null
+++ b/dev-ruby/rexml/rexml-3.4.0.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
+}