diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-ruby/multi_xml | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-ruby/multi_xml')
| -rw-r--r-- | dev-ruby/multi_xml/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/multi_xml/files/multi_xml-0.6.0-ox24.patch | 23 | ||||
| -rw-r--r-- | dev-ruby/multi_xml/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-ruby/multi_xml/multi_xml-0.6.0-r1.ebuild | 39 |
4 files changed, 75 insertions, 0 deletions
diff --git a/dev-ruby/multi_xml/Manifest b/dev-ruby/multi_xml/Manifest new file mode 100644 index 000000000000..783212feca59 --- /dev/null +++ b/dev-ruby/multi_xml/Manifest @@ -0,0 +1 @@ +DIST multi_xml-0.6.0.tar.gz 16571 BLAKE2B 1492eab7782823915167ebdb529b6d4699b31f3b66c48eee5acf7857dc25caae62b63a0da10a0bd862ade22865432bc6c4290a3f6ff8e99a889fcf09b56f6b7f SHA512 67e280d838ba07373a6ad5cbe4658b32655102906d8e0ed5429d21220475c21e07ea2ec0d2729df4d30a1bf7d0a5e6ff2d4482342098873135cb12e18c53194a diff --git a/dev-ruby/multi_xml/files/multi_xml-0.6.0-ox24.patch b/dev-ruby/multi_xml/files/multi_xml-0.6.0-ox24.patch new file mode 100644 index 000000000000..a0568a8fb52e --- /dev/null +++ b/dev-ruby/multi_xml/files/multi_xml-0.6.0-ox24.patch @@ -0,0 +1,23 @@ +From f9d18d87c3340aa53f524524bf189b99459ab1e6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> +Date: Thu, 18 May 2017 23:10:48 +0200 +Subject: [PATCH] Update for ox > 2.4.11 + +There is more pedantic parsing of white-space characters in ox > 2.4.11. Better to set explicitly the expected skip mode. +--- + lib/multi_xml/parsers/ox.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/multi_xml/parsers/ox.rb b/lib/multi_xml/parsers/ox.rb +index e52a560..dc1413e 100644 +--- a/lib/multi_xml/parsers/ox.rb ++++ b/lib/multi_xml/parsers/ox.rb +@@ -29,7 +29,7 @@ def parse_error + + def parse(io) + handler = Handler.new +- ::Ox.sax_parse(handler, io, :convert_special => true) ++ ::Ox.sax_parse(handler, io, convert_special: true, skip: :skip_return) + handler.doc + end + diff --git a/dev-ruby/multi_xml/metadata.xml b/dev-ruby/multi_xml/metadata.xml new file mode 100644 index 000000000000..431225ec2a3f --- /dev/null +++ b/dev-ruby/multi_xml/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">sferik/multi_xml</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-ruby/multi_xml/multi_xml-0.6.0-r1.ebuild b/dev-ruby/multi_xml/multi_xml-0.6.0-r1.ebuild new file mode 100644 index 000000000000..daa192d2ecfb --- /dev/null +++ b/dev-ruby/multi_xml/multi_xml-0.6.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_TASK_DOC="yard" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A generic swappable back-end for XML parsing" +HOMEPAGE="https://www.rubydoc.info/gems/multi_xml" +SRC_URI="https://github.com/sferik/multi_xml/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="amd64 ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="" + +ruby_add_bdepend "doc? ( dev-ruby/yard )" +ruby_add_bdepend "test? ( dev-ruby/ox )" + +all_ruby_prepare() { + eapply "${FILESDIR}/${P}-ox24.patch" + + sed -i -e '/simplecov/,/^end/ s:^:#:' spec/helper.rb || die + sed -i -e '/bundler/I s:^:#:' -e '/yardstick/,/end/ s:^:#:' Rakefile || die +} + +each_ruby_test() { + CI=true each_fakegem_test +} |
