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.4.ebuild
Date: Sun, 11 Apr 2010 06:54:32
Message-Id: 20100411065426.81DB62C04A@corvid.gentoo.org
1 graaff 10/04/11 06:54:26
2
3 Modified: ChangeLog
4 Added: json-1.2.4.ebuild
5 Log:
6 Version bump: Triger const_missing callback to make Rails' dynamic class loading work.
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.22 dev-ruby/json/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 4 Apr 2010 06:54:38 -0000 1.21
23 +++ ChangeLog 11 Apr 2010 06:54:26 -0000 1.22
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.21 2010/04/04 06:54:38 graaff Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.22 2010/04/11 06:54:26 graaff Exp $
29 +
30 +*json-1.2.4 (11 Apr 2010)
31 +
32 + 11 Apr 2010; Hans de Graaff <graaff@g.o> +json-1.2.4.ebuild:
33 + Version bump: Triger const_missing callback to make Rails' dynamic class
34 + loading work.
35
36 *json-1.2.3 (04 Apr 2010)
37
38
39
40
41 1.1 dev-ruby/json/json-1.2.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/json-1.2.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/json/json-1.2.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: json-1.2.4.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.4.ebuild,v 1.1 2010/04/11 06:54:26 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 }