summaryrefslogtreecommitdiff
path: root/dev-ruby/rexml
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rexml')
-rw-r--r--dev-ruby/rexml/Manifest2
-rw-r--r--dev-ruby/rexml/rexml-3.4.0.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/rexml/Manifest b/dev-ruby/rexml/Manifest
index 22ae20497807..7ce4a95dc734 100644
--- a/dev-ruby/rexml/Manifest
+++ b/dev-ruby/rexml/Manifest
@@ -1,3 +1,5 @@
DIST rexml-3.3.9.tar.gz 469735 BLAKE2B 39c8a1184b839608da0307271b853f26a253b16e1da4e8a56d024750222cca21138681d2445a869aee0c5ace63cd6fc27b7e0df0060dd0e715d3a0d03d217765 SHA512 391a31938b27d821f35fc96f66eacec1bccfb9d2e250245c15ffbdb05f140ce91a28c7f4d8e9989003ce4480270ddb6c32e0b07f73b2677249ef03e615789f46
+DIST rexml-3.4.0.tar.gz 469982 BLAKE2B 2173b68cdd05dd655e12f5761e511daf3d06a21f6082e76db7e2cd86609dac89a020b36b0eeb91da7b25b099b662eea4f750b2847d22843066b34df070d39b87 SHA512 638bd865f3c1852379c9f038329ac811da5f6747b0b29b95bc34ffadd5abaa9fba431bafc21adb7fddca2b6d85f22f484e14f61894c09e9b97afac19671d8331
EBUILD rexml-3.3.9.ebuild 1141 BLAKE2B cb945a43c793b09ce5b2b5948fcc3347dcab24b799702f9c8f65b4a23f0defbfd7515f72959f8867ee71cc73fa0f4b94307518dc88210ef45bd65179301ae396 SHA512 77ae7e57608fbcdf01ed8b519e0a4674b22bcd1b155ae5634494bca6aaab8aa869815c11d6ac032dbe1123285ac163940aa7f6cf2a2e5d35ec4e11dfd09a3e49
+EBUILD rexml-3.4.0.ebuild 1148 BLAKE2B 8db9d454019e6acbafcd49a6503e4cd567cfabdaa9b580f89e4470a33b29864ce3b224cc26532a4f9e098a26cd5cc31e070c98653d3f04c9c2e61745c8fd5622 SHA512 bdf293bf35217c5e4fd38e7a03ccef62f41ed065ffddb9abee34ef39dd938f10f43250266a760e19501644d21f05228035e6bd909bba414d6c70742202c9ffb8
MISC metadata.xml 337 BLAKE2B 32bcd67d98d6c5b679142524dceab3a59b093b38dfe4d00d1ea01c72b659755e8d4c1a546b5968ca86d7eceb1810eda7b671e0ffe021ea816f88755c9bb2b2ed SHA512 650d4de17e8228c24f0a6ceb5c72ab3e978c75f397c41826b33eb6e6466d965b1c42911b765f464a399f3759331df8b12e1cdf1ea84da494f9318dcc4998de58
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
+}