diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-04-30 06:57:16 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-04-30 06:57:16 +0200 |
commit | aded905d23652f250561889db541bf96949ba4c3 (patch) | |
tree | b1121c4f56bcbedc8fa2369601c3360dc5b3248f | |
parent | net-fs/ncpfs: Remove PHP support (diff) | |
download | gentoo-aded905d23652f250561889db541bf96949ba4c3.tar.gz gentoo-aded905d23652f250561889db541bf96949ba4c3.tar.bz2 gentoo-aded905d23652f250561889db541bf96949ba4c3.zip |
dev-ruby/yajl-ruby: add 1.4.0
Package-Manager: Portage-2.3.24, Repoman-2.3.6
-rw-r--r-- | dev-ruby/yajl-ruby/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/yajl-ruby/Manifest b/dev-ruby/yajl-ruby/Manifest index 173f184e5e47..2ea732ab4eea 100644 --- a/dev-ruby/yajl-ruby/Manifest +++ b/dev-ruby/yajl-ruby/Manifest @@ -1,2 +1,3 @@ DIST yajl-ruby-1.3.0.gem 550912 BLAKE2B 1fe5fd43809fec2bf06d8db14cb6cc6ac5fe59dea8afc12d4c8ca6d0ba7c1095f307575c86cdd6954ce0b5756de3fc2232fbd60398bdf1902da005c6d8242031 SHA512 351e46fb7037541096172bac5c3dcadaa6ac9650ac6aae46de2b4ba31b82427f596bade2b233d0d8e916927800e83b7930b5ceeb9d7340edd02c323f9c0b3116 DIST yajl-ruby-1.3.1.gem 550912 BLAKE2B 809608b5c767c560cf40a0a8d4160f17092762788af9c66e729762ade50fbb0cccd266f1bbd411076ef4b2dc7a4cdfcdeeb552b6d86a58a0d9a38ebf1bad638c SHA512 f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4 +DIST yajl-ruby-1.4.0.gem 556544 BLAKE2B 8eea447ef98cdd9b48fe6c91f2a385740339e78e6395b2f63add8757fe437dfd4ae721b604ca5b381c59e36412e1807c930730bcc1a7c7f921c50ccd7f03857b SHA512 63407542a58231305d1cf326de09e8fdb0f4f5bbf28d3b83a3d8f4099db2a425b7a310fc23c62a37681cb24b50d2ce9d10a6641e07be16b52783ea7401ec7ca5 diff --git a/dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild b/dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild new file mode 100644 index 000000000000..8c309083d19f --- /dev/null +++ b/dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +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 +} |