diff options
Diffstat (limited to 'dev-ruby/json')
-rw-r--r-- | dev-ruby/json/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/json/json-2.0.4.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index 658f28768115..20aa44675e16 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -3,3 +3,4 @@ DIST json-1.8.3.gem 152064 SHA256 8ca2091e26678fb989d66cdb9f0104f1307bc584b429c2 DIST json-2.0.1.gem 138240 SHA256 cbea6bfe7bf5162c0fb71f6b0ab2c3108ef05bd0ea7b2f98b1ed6d5a8e75bfee SHA512 957ae157eb4a8c916cc931d397d65c29c7e2036eb407809861a448ba907252bb6ceb9b975c912328aeec846c9318d16eb13f5a4daaa817111fb25d2133c8e065 WHIRLPOOL c2de4df8be59413fe8068d68a3ca00e195ac61c5b100f7c57334e0eefbdb1083fd2f342c41465abbf1bb68e5bf2a6da6b1831d7254363b6c2d283c89130a1227 DIST json-2.0.2.gem 138752 SHA256 400f60ac8282da80764c5d6fbb04c096390a85950bb488652abc1eb993b411d2 SHA512 88f5d5ad2277e29545dc88850637f5b4eb5919dd1bd5dfeefa79013c0a62ba97f7907e301509fef3d6b503c8a3b6e998f22c3abdcfeda633dbe3edd7d1389279 WHIRLPOOL 9e66182514cf44dc026f8e246bb1121f396f03c264e1e7be4ea16f4fe17367acf8986361687a9b8d4821e5587b4a28cf8c5fc6ad13a1f1c0f3d8f8dc4dae8659 DIST json-2.0.3.gem 138752 SHA256 14e75b0de38ca662ef6a8f86ffb30fdf3516ba5cdae60c04369c181a4909fc32 SHA512 9041ebe6abc52db3ae5bc8b309148965e8e04931999685333a59ea85cf3d47c323554e58a10f2ee4e80a1815540d2a93fb49c981e76d4806a9d43842303778c8 WHIRLPOOL 008d7144e753ef38c78750613e7843839bf99306a86a09444ee4bdefa8d81a2d024e208c5998fce3f50deefa45cbb143b4a8c2b6f280b90353063d6eb389369c +DIST json-2.0.4.gem 138752 SHA256 ee1361f37fbd9f06d0de3976cd4320a84119aa41fa7f321eb67244404add3114 SHA512 24105aa06c205b6fe1cd835822d71b81299fdc47a45f48dd8f513f68f7fd12cdb51df476bcaef640916737d22be3156848ee4c9922c4a61aed5ca2d4d0d21c86 WHIRLPOOL 179f95dbfe21fbb8c3a8f97281b93892c167c7e3325d6ff182c0d0e4cc9e3a17bcea118311001756937c1e0e4be09ed7f117ffc824c24df18fc5cc5a31db93ce diff --git a/dev-ruby/json/json-2.0.4.ebuild b/dev-ruby/json/json-2.0.4.ebuild new file mode 100644 index 000000000000..138488fe5ec6 --- /dev/null +++ b/dev-ruby/json/json-2.0.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_GEMSPEC="json.gemspec" + +inherit multilib ruby-fakegem + +DESCRIPTION="A JSON implementation as a Ruby extension" +HOMEPAGE="https://github.com/flori/json" +LICENSE="Ruby" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="2" +IUSE="" + +RDEPEND="${RDEPEND}" +DEPEND="${DEPEND} + dev-util/ragel" + +ruby_add_bdepend "dev-ruby/rake + doc? ( dev-ruby/rdoc )" + +all_ruby_prepare() { + # Avoid building the extension twice! + # And use rdoc instead of sdoc which we don't have packaged + # And don't call git to list files. We're using the pregenerated spec anyway. + sed -i \ + -e '/task :test/ s|:compile,||' \ + -e 's| => :clean||' \ + -e 's|sdoc|rdoc|' \ + -e 's|`git ls-files`|""|' \ + Rakefile || die "rakefile fix failed" + + # Remove hardcoded and broken -O setting. + sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \ + -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die + + # Avoid setting gem since it will not be available yet when installing + sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die +} + +each_ruby_configure() { + for ext in parser generator ; do + ${RUBY} -Cext/json/ext/${ext} extconf.rb || die + done +} + +each_ruby_compile() { + for ext in parser generator ; do + emake V=1 -Cext/json/ext/${ext} + cp ext/json/ext/${ext}/${ext}$(get_modname) ext/json/ext/ || die + done +} + +each_ruby_test() { + for t in pure ext ; do + JSON=${T} ${RUBY} -S rake do_test_${t} || die + done +} + +each_ruby_install() { + each_fakegem_install + + ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname) + ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname) +} |