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/json: ChangeLog json-1.2.1.ebuild
Date: Sat, 27 Feb 2010 07:39:06
Message-Id: E1NlHGN-0007xt-VR@stork.gentoo.org
1 graaff 10/02/27 07:38:59
2
3 Modified: ChangeLog
4 Added: json-1.2.1.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.19 dev-ruby/json/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 23 Feb 2010 18:18:58 -0000 1.18
23 +++ ChangeLog 27 Feb 2010 07:38:59 -0000 1.19
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-ruby/json
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.18 2010/02/23 18:18:58 graaff Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.19 2010/02/27 07:38:59 graaff Exp $
29 +
30 +*json-1.2.1 (27 Feb 2010)
31 +
32 + 27 Feb 2010; Hans de Graaff <graaff@g.o> +json-1.2.1.ebuild:
33 + Version bump: added :symbolize_names option to Parser, which returns
34 + symbols instead of strings in object names/keys.
35
36 23 Feb 2010; Hans de Graaff <graaff@g.o> json-1.2.0-r1.ebuild:
37 Add missing build dependency on dev-ruby/rake, fixes #306493.
38
39
40
41 1.1 dev-ruby/json/json-1.2.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/json-1.2.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/json-1.2.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: json-1.2.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/json-1.2.1.ebuild,v 1.1 2010/02/27 07:38:59 graaff Exp $
51
52 EAPI=2
53 USE_RUBY="ruby18 ruby19 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC="doc"
56 RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README"
57 RUBY_FAKEGEM_DOCDIR="doc"
58
59 inherit ruby-fakegem
60
61 DESCRIPTION="A JSON implementation as a Ruby extension."
62 HOMEPAGE="http://json.rubyforge.org/"
63 LICENSE="|| ( Ruby GPL-2 )"
64 SRC_URI="mirror://rubygems/${P}.gem"
65
66 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
67 SLOT="0"
68 IUSE=""
69
70 RDEPEND=""
71 DEPEND="dev-util/ragel"
72
73 ruby_add_bdepend test virtual/ruby-test-unit
74 ruby_add_bdepend dev-ruby/rake
75
76 all_ruby_prepare() {
77 # Avoid building the extension twice!
78 sed -i \
79 -e 's| => :compile_ext||' \
80 -e 's| => :clean||' \
81 Rakefile || die "rakefile fix failed"
82 }
83
84 each_ruby_compile() {
85 if [[ $(basename ${RUBY}) != "jruby" ]]; then
86 ${RUBY} -S rake compile_ext || die "extension compile failed"
87 fi
88 }
89
90 each_ruby_test() {
91 # We have to set RUBYLIB because otherwise the tests will run
92 # against the sytem-installed json; at the same time, we cannot
93 # use the -I parameter because rake won't let it pass to the
94 # testrb call that is executed down the road.
95
96 RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext/json/ext" \
97 ${RUBY} -S rake test_pure || die "pure ruby tests failed"
98
99 if [[ $(basename ${RUBY}) != "jruby" ]]; then
100 RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext/json/ext" \
101 ${RUBY} -Ilib:ext/json/ext -S rake test_ext || die " ruby extension tests failed"
102 fi
103 }
104
105 each_ruby_install() {
106 each_fakegem_install
107 if [[ $(basename ${RUBY}) != "jruby" ]]; then
108 ruby_fakegem_newins ext/json/ext/generator.so lib/json/generator.so
109 ruby_fakegem_newins ext/json/ext/parser.so lib/json/parser.so
110 fi
111 }