Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/multi_json: ChangeLog multi_json-1.10.1.ebuild
Date: Thu, 29 May 2014 05:32:48
Message-Id: 20140529053243.3CA542004E@flycatcher.gentoo.org
1 graaff 14/05/29 05:32:43
2
3 Modified: ChangeLog
4 Added: multi_json-1.10.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.42 dev-ruby/multi_json/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_json/ChangeLog?rev=1.42&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_json/ChangeLog?rev=1.42&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_json/ChangeLog?r1=1.41&r2=1.42
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/ChangeLog,v
20 retrieving revision 1.41
21 retrieving revision 1.42
22 diff -u -r1.41 -r1.42
23 --- ChangeLog 26 May 2014 05:40:57 -0000 1.41
24 +++ ChangeLog 29 May 2014 05:32:43 -0000 1.42
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/multi_json
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/ChangeLog,v 1.41 2014/05/26 05:40:57 mrueg Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/ChangeLog,v 1.42 2014/05/29 05:32:43 graaff Exp $
30 +
31 +*multi_json-1.10.1 (29 May 2014)
32 +
33 + 29 May 2014; Hans de Graaff <graaff@g.o> +multi_json-1.10.1.ebuild:
34 + Version bump.
35
36 26 May 2014; Manuel RĂ¼ger <mrueg@g.o> multi_json-1.8.4.ebuild:
37 Remove ruby18 target.
38
39
40
41 1.1 dev-ruby/multi_json/multi_json-1.10.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_json/multi_json-1.10.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/multi_json/multi_json-1.10.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: multi_json-1.10.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/multi_json/multi_json-1.10.1.ebuild,v 1.1 2014/05/29 05:32:43 graaff Exp $
51
52 EAPI=5
53
54 USE_RUBY="ruby19 ruby20 ruby21 jruby"
55
56 RUBY_FAKEGEM_RECIPE_TEST="rspec"
57 RUBY_FAKEGEM_TASK_DOC="yard"
58
59 RUBY_FAKEGEM_DOCDIR="rdoc"
60 RUBY_FAKEGEM_EXTRADOC="README.md"
61
62 RUBY_FAKEGEM_GEMSPEC="multi_json.gemspec"
63
64 inherit ruby-fakegem
65
66 DESCRIPTION="A gem to provide swappable JSON backends"
67 HOMEPAGE="http://github.com/intridea/multi_json"
68 LICENSE="MIT"
69
70 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
71 SLOT="0"
72 IUSE=""
73
74 ruby_add_rdepend "|| ( >=dev-ruby/json-1.4 >=dev-ruby/yajl-ruby-1.0 =dev-ruby/activesupport-3* )"
75
76 ruby_add_bdepend "doc? ( dev-ruby/rspec:2 dev-ruby/yard )"
77
78 ruby_add_bdepend "test? ( dev-ruby/json )"
79
80 USE_RUBY="${USE_RUBY/jruby/}" ruby_add_bdepend "test? ( dev-ruby/yajl-ruby )"
81
82 all_ruby_prepare() {
83 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die "Unable to remove bundler."
84
85 # Remove unimportant rspec options not supported by rspec 2.6.
86 rm .rspec || die
87
88 # Remove specs specific to oj since we don't package oj yet.
89 sed -i -e '/defaults to the best available gem/,/^ end/ s:^:#:' \
90 -e '/Oj does not create symbols on parse/,/^ end/ s:^:#:' \
91 -e '/with Oj.default_settings/,/^ end/ s:^:#:' \
92 -e '/using one-shot parser/,/^ end/ s:^:#:' \
93 spec/multi_json_spec.rb
94
95 # Avoid simplecov which only works with ruby 1.9
96 sed -i -e '/simplecov/d' -e '/SimpleCov.formatter/,/SimpleCov.start/ d' spec/spec_helper.rb || die
97
98 # Remove unpackaged and for our purposes unneeded coveralls
99 sed -i -e '/coveralls/d' spec/spec_helper.rb || die
100
101 # Avoid testing unpackaged adapters
102 rm spec/{gson,jr_jackson,oj}_adapter_spec.rb || die
103 }
104
105 each_ruby_prepare() {
106 case ${RUBY} in
107 *jruby)
108 # Compiled code is not supported for jruby 1.6
109 rm spec/json_gem_adapter_spec.rb || die
110 # jr_jackson is not supported but needed for the common tests.
111 rm spec/multi_json_spec.rb || die
112 ;;
113 esac
114 }
115
116 each_ruby_test() {
117 for t in spec/*_spec.rb; do
118 ${RUBY} -S rspec ${t} || die
119 done
120 }