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