diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-06-27 09:52:06 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-06-30 08:56:28 +0200 |
commit | 13e285caca92c2540a62153c5303920f34a37a97 (patch) | |
tree | 6de60ab3da65e394556400858fc03fe865fa5d9f /dev-ruby | |
parent | dev-ruby/fast-stemmer: fix extension install; ruby30 (diff) | |
download | gentoo-13e285caca92c2540a62153c5303920f34a37a97.tar.gz gentoo-13e285caca92c2540a62153c5303920f34a37a97.tar.bz2 gentoo-13e285caca92c2540a62153c5303920f34a37a97.zip |
dev-ruby/fast_xs: fix extension install; ruby30
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/fast_xs/fast_xs-0.8.0-r3.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/fast_xs/fast_xs-0.8.0-r3.ebuild b/dev-ruby/fast_xs/fast_xs-0.8.0-r3.ebuild new file mode 100644 index 000000000000..1d561300495a --- /dev/null +++ b/dev-ruby/fast_xs/fast_xs-0.8.0-r3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc" + +RUBY_FAKEGEM_EXTENSIONS=(ext/fast_xs/extconf.rb ext/fast_xs_extra/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="fast_xs text escaping library ruby bindings" +HOMEPAGE="https://github.com/brianmario/fast_xs" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/rack )" + +PATCHES=( "${FILESDIR}/${P}+ruby-1.9.patch" ) + +each_ruby_test() { + # the Rakefile tries to run all the tests in a single process, but + # this breaks the monkey-patchers, we're forced to run them one by + # one. + for tu in test/test_*.rb; do + ${RUBY} -Ilib $tu || die "test $tu failed" + done +} |