diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-11-08 07:36:26 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-11-08 07:36:43 +0100 |
commit | e5171d48f94f79e2a8c7eecd21a5917416eb9d9a (patch) | |
tree | 5c20eefcf862326d66f3733b46cab05dbea6d8c9 /dev-ruby | |
parent | dev-ruby/mini_mime: add 1.0.0 (diff) | |
download | gentoo-e5171d48f94f79e2a8c7eecd21a5917416eb9d9a.tar.gz gentoo-e5171d48f94f79e2a8c7eecd21a5917416eb9d9a.tar.bz2 gentoo-e5171d48f94f79e2a8c7eecd21a5917416eb9d9a.zip |
dev-ruby/yajl-ruby: add 1.3.1, fixing bug 636474
Bug: https://bugs.gentoo.org/636474
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/yajl-ruby/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/yajl-ruby/Manifest b/dev-ruby/yajl-ruby/Manifest index 98fac4859e33..f27d973ee546 100644 --- a/dev-ruby/yajl-ruby/Manifest +++ b/dev-ruby/yajl-ruby/Manifest @@ -1,2 +1,3 @@ DIST yajl-ruby-1.1.0.gem 557056 SHA256 95b85940c96c0745e780f363170b8bd1b7b66d36073a061b1461b1788834446a SHA512 bde81b5fbe467c6403d27b49075822ff07b5cf356c05f711757fea5162543af36846f1f1da36acd5da359133f05e2cb3186215dc5597f3255da74c76cc8bf3ec WHIRLPOOL baa8f6ec2bfe70cd8f3441c971b2854a99b9f132eb2cae22f9fe6a9de7c7ccbf84f0f3ec982296d4cbc998051529b464aaf16b268049193aa4170ec7ec1ca11b DIST yajl-ruby-1.3.0.gem 550912 SHA256 f1941b3606aa8da0800ab0a5560929454a1ba9c7ec41cb5a2905eabb2f155069 SHA512 351e46fb7037541096172bac5c3dcadaa6ac9650ac6aae46de2b4ba31b82427f596bade2b233d0d8e916927800e83b7930b5ceeb9d7340edd02c323f9c0b3116 WHIRLPOOL 8de8b6575f3972dbb2503315d33f5701f6141b0ce11f9f3b027a7c15ab257823e772d14400dc3db94b41135e90b25c89a89931fb2670a7e0de72a0ee40d885dc +DIST yajl-ruby-1.3.1.gem 550912 SHA256 60bc04e0e58ce689a4f37787ba152b037a960da48f8b229a072929e8129bc4e6 SHA512 f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4 WHIRLPOOL 369462f5104b826f9160215a06050bdc53f61ef937a8461d8e1a11b62d68267fec3a0cae087cf4be6f161e76d1b92c077f9d861c3ce027927308bbb6afab2709 diff --git a/dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild b/dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild new file mode 100644 index 000000000000..b8ecc24eded6 --- /dev/null +++ b/dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_TASK_DOC="" + +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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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_configure() { + ${RUBY} -Cext/yajl extconf.rb || die "extconf.rb failed" +} + +each_ruby_compile() { + emake -Cext/yajl CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" V=1 + cp ext/yajl/yajl$(get_modname) lib/yajl/ || die +} + +each_ruby_test() { + # Set RUBYLIB to pass search path on to additional interpreters that + # are started. + RUBYLIB=lib ruby-ng_rspec || die +} |