diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-07-07 10:07:34 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-07-07 10:31:01 +0200 |
commit | 4336d84f1d5bcd97972f2011a5e489812f19fd84 (patch) | |
tree | b8bd38050c32fabf44021587feb958cd0a062c9b /dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild | |
parent | dev-ruby/neovim-ruby-client: add ruby27 (diff) | |
download | gentoo-4336d84f1d5bcd97972f2011a5e489812f19fd84.tar.gz gentoo-4336d84f1d5bcd97972f2011a5e489812f19fd84.tar.bz2 gentoo-4336d84f1d5bcd97972f2011a5e489812f19fd84.zip |
dev-ruby/yajl-ruby: add ruby30; EAPI 7; fix extension
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild')
-rw-r--r-- | dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild b/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild new file mode 100644 index 000000000000..9c0004d6cd6d --- /dev/null +++ b/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild @@ -0,0 +1,39 @@ +# 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_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTENSIONS=(ext/yajl/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/yajl" + +inherit multilib ruby-fakegem + +DESCRIPTION="Ruby C bindings to the Yajl JSON stream-based parser library" +HOMEPAGE="https://github.com/brianmario/yajl-ruby" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="${RDEPEND} dev-libs/yajl" +DEPEND="${DEPEND} dev-libs/yajl" + +each_ruby_prepare() { + # Make sure the right ruby interpreter is used + sed -e '/capture/ s:ruby:'${RUBY}':' -i spec/parsing/large_number_spec.rb || die +} + +each_ruby_test() { + # Set RUBYLIB to pass search path on to additional interpreters that + # are started. + RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec || die +} |