1 |
graaff 10/08/28 14:22:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: json-1.4.6.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.41 dev-ruby/json/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.41&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/ChangeLog?rev=1.41&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/ChangeLog?r1=1.40&r2=1.41 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v |
19 |
retrieving revision 1.40 |
20 |
retrieving revision 1.41 |
21 |
diff -u -r1.40 -r1.41 |
22 |
--- ChangeLog 28 Aug 2010 08:16:55 -0000 1.40 |
23 |
+++ ChangeLog 28 Aug 2010 14:22:12 -0000 1.41 |
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.40 2010/08/28 08:16:55 graaff Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/json/ChangeLog,v 1.41 2010/08/28 14:22:12 graaff Exp $ |
29 |
+ |
30 |
+*json-1.4.6 (28 Aug 2010) |
31 |
+ |
32 |
+ 28 Aug 2010; Hans de Graaff <graaff@g.o> +json-1.4.6.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
22 Aug 2010; Hans de Graaff <graaff@g.o> -json-1.2.2.ebuild, |
36 |
-json-1.4.3.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-ruby/json/json-1.4.6.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/json-1.4.6.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/json-1.4.6.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: json-1.4.6.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.6.ebuild,v 1.1 2010/08/28 14:22:12 graaff Exp $ |
50 |
|
51 |
EAPI=2 |
52 |
USE_RUBY="ruby18 ree18 ruby19 jruby" |
53 |
|
54 |
RUBY_FAKEGEM_TASK_DOC="doc" |
55 |
RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README" |
56 |
RUBY_FAKEGEM_DOCDIR="doc" |
57 |
|
58 |
inherit multilib 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 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" |
66 |
SLOT="0" |
67 |
IUSE="" |
68 |
|
69 |
RDEPEND="${RDEPEND}" |
70 |
DEPEND="${DEPEND} |
71 |
dev-util/ragel" |
72 |
|
73 |
ruby_add_bdepend "dev-ruby/rake |
74 |
test? ( virtual/ruby-test-unit )" |
75 |
|
76 |
all_ruby_prepare() { |
77 |
# Avoid building the extension twice! |
78 |
# And use rdoc instead of sdoc which we don't have packaged |
79 |
sed -i \ |
80 |
-e 's| => :compile_ext||' \ |
81 |
-e 's| => :clean||' \ |
82 |
-e 's|sdoc|rdoc|' \ |
83 |
Rakefile || die "rakefile fix failed" |
84 |
} |
85 |
|
86 |
each_ruby_compile() { |
87 |
if [[ $(basename ${RUBY}) != "jruby" ]]; then |
88 |
${RUBY} -S rake compile_ext || die "extension compile failed" |
89 |
fi |
90 |
} |
91 |
|
92 |
each_ruby_test() { |
93 |
# We have to set RUBYLIB because otherwise the tests will run |
94 |
# against the sytem-installed json; at the same time, we cannot |
95 |
# use the -I parameter because rake won't let it pass to the |
96 |
# testrb call that is executed down the road. |
97 |
|
98 |
RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext/json/ext" \ |
99 |
${RUBY} -S rake test_pure || die "pure ruby tests failed" |
100 |
|
101 |
if [[ $(basename ${RUBY}) != "jruby" ]]; then |
102 |
RUBYLIB="${RUBYLIB}${RUBYLIB+:}lib:ext" \ |
103 |
${RUBY} -Ilib:ext -S rake test_ext || die " ruby extension tests failed" |
104 |
fi |
105 |
} |
106 |
|
107 |
each_ruby_install() { |
108 |
each_fakegem_install |
109 |
if [[ $(basename ${RUBY}) != "jruby" ]]; then |
110 |
ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname) |
111 |
ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname) |
112 |
fi |
113 |
} |