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/i18n: ChangeLog i18n-0.6.0-r1.ebuild
Date: Sun, 04 Dec 2011 19:24:07
Message-Id: 20111204192350.8F9D72004B@flycatcher.gentoo.org
1 graaff 11/12/04 19:23:50
2
3 Modified: ChangeLog
4 Added: i18n-0.6.0-r1.ebuild
5 Log:
6 Use RUBY_S. Add ruby19.
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.40 dev-ruby/i18n/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/i18n/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/i18n/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/i18n/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/i18n/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 9 Sep 2011 06:59:24 -0000 1.39
24 +++ ChangeLog 4 Dec 2011 19:23:50 -0000 1.40
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/i18n
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/i18n/ChangeLog,v 1.39 2011/09/09 06:59:24 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/i18n/ChangeLog,v 1.40 2011/12/04 19:23:50 graaff Exp $
30 +
31 +*i18n-0.6.0-r1 (04 Dec 2011)
32 +
33 + 04 Dec 2011; Hans de Graaff <graaff@g.o> +i18n-0.6.0-r1.ebuild:
34 + Use RUBY_S. Add ruby19.
35
36 09 Sep 2011; Fabian Groffen <grobian@g.o> i18n-0.6.0.ebuild:
37 Marked ~sparc-solaris
38
39
40
41 1.1 dev-ruby/i18n/i18n-0.6.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/i18n/i18n-0.6.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/i18n/i18n-0.6.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: i18n-0.6.0-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/i18n/i18n-0.6.0-r1.ebuild,v 1.1 2011/12/04 19:23:50 graaff Exp $
51
52 EAPI=4
53
54 USE_RUBY="ruby18 jruby ree18 ruby19"
55
56 # doc regeneration seem to need Jeweler, which is not currently
57 # available
58 RUBY_FAKEGEM_TASK_DOC=""
59
60 RUBY_FAKEGEM_EXTRADOC="README.textile CHANGELOG.textile"
61
62 inherit ruby-fakegem versionator
63
64 DESCRIPTION="Add Internationalization support to your Ruby application."
65 HOMEPAGE="http://rails-i18n.org/"
66
67 SRC_URI="http://github.com/svenfuchs/${PN}/tarball/v${PV} -> ${PN}-git-${PV}.tgz"
68 RUBY_S="svenfuchs-${PN}-*"
69
70 LICENSE="MIT"
71 SLOT="$(get_version_component_range 1-2)"
72 KEYWORDS="~amd64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
73 IUSE=""
74
75 DEPEND=""
76 RDEPEND="${DEPEND}"
77
78 # The testsuite uses the activerecord gem to run some tests; they
79 # require sqlite3-ruby, and that is not available on JRuby.
80 #USE_RUBY="${USE_RUBY/jruby/}" \
81 # ruby_add_bdepend "
82 # test? (
83 # dev-ruby/activerecord
84 # dev-ruby/sqlite3-ruby
85 # dev-ruby/ruby2ruby
86 # )"
87
88 # mocha is optionally used by the testsuite, try to increase coverage
89 # of testing by depending on it.
90 #
91 # One further test dependency would be ruby-cldr
92 # (http://rubygems.org/gems/ruby-cldr) but we don't have it in tree
93 # yet.
94 ruby_add_bdepend "
95 test? (
96 dev-ruby/mocha
97 dev-ruby/test_declarative
98 )"
99
100 all_ruby_prepare() {
101 sed -i -e '/bundler/ s:^:#:' test/test_helper.rb || die
102 }
103
104 each_ruby_prepare() {
105 case ${RUBY} in
106 *ruby19)
107 # Remove tests that require a UTF-8 locale.
108 rm test/gettext/backend_test.rb || die
109
110 # Remove tests that contains a 1.9.3-specific failure.
111 # https://github.com/svenfuchs/i18n/issues/114
112 rm test/i18n/load_path_test.rb || die
113 ;;
114 *)
115 ;;
116 esac
117 }
118
119 src_compile() {
120 # permissions need to be stricter for Ruby-Inline to work properly.
121 chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
122 ruby-ng_src_compile
123 }
124
125 src_test() {
126 # permissions need to be stricter for Ruby-Inline to work properly.
127 chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
128 ruby-ng_src_test
129 }
130
131 each_ruby_test() {
132 # Make sure the optional activerecord tests are not run for jruby
133 # because we don't ship a compatible sqlite3
134 case ${RUBY} in
135 *jruby)
136 ;;
137 *)
138 each_fakegem_test
139 esac
140 }