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/rack: rack-1.2.4-r2.ebuild ChangeLog rack-1.3.5.ebuild
Date: Sat, 24 Dec 2011 08:03:12
Message-Id: 20111224080302.635A42004B@flycatcher.gentoo.org
1 graaff 11/12/24 08:03:02
2
3 Modified: ChangeLog
4 Added: rack-1.2.4-r2.ebuild rack-1.3.5.ebuild
5 Log:
6 Version bump. Make sure only the latest testing version installs rackup.
7
8 (Portage version: 2.1.10.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.64 dev-ruby/rack/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 17 Dec 2011 14:53:47 -0000 1.63
24 +++ ChangeLog 24 Dec 2011 08:03:02 -0000 1.64
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-ruby/rack
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.63 2011/12/17 14:53:47 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.64 2011/12/24 08:03:02 graaff Exp $
30 +
31 +*rack-1.3.5 (24 Dec 2011)
32 +*rack-1.2.4-r2 (24 Dec 2011)
33 +
34 + 24 Dec 2011; Hans de Graaff <graaff@g.o> +rack-1.2.4-r2.ebuild,
35 + +rack-1.3.5.ebuild:
36 + Version bump. Make sure only the latest testing version installs rackup.
37
38 17 Dec 2011; Hans de Graaff <graaff@g.o> rack-1.2.4-r1.ebuild:
39 Avoid broken specs for ruby19. These appear to be related to changes in newer
40
41
42
43 1.1 dev-ruby/rack/rack-1.2.4-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.2.4-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.2.4-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: rack-1.2.4-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.2.4-r2.ebuild,v 1.1 2011/12/24 08:03:02 graaff Exp $
53
54 EAPI="2"
55 USE_RUBY="ruby18 ree18 ruby19 jruby"
56
57 RUBY_FAKEGEM_DOCDIR="doc"
58 RUBY_FAKEGEM_EXTRADOC="ChangeLog KNOWN-ISSUES README SPEC"
59
60 RUBY_FAKEGEM_BINWRAP=""
61
62 inherit ruby-fakegem eutils versionator
63
64 DESCRIPTION="A modular Ruby webserver interface"
65 HOMEPAGE="http://rubyforge.org/projects/rack"
66 SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
67
68 LICENSE="MIT"
69 SLOT="$(get_version_component_range 1-2)"
70 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
71 IUSE=""
72
73 ruby_add_rdepend "virtual/ruby-ssl"
74
75 # The gem has automagic dependencies over mongrel, ruby-openid,
76 # memcache-client, thin, mongrel and camping; not sure if we should
77 # make them dependencies at all. We do add the fcgi dependency because
78 # that spec isn't optional.
79 ruby_add_bdepend "test? ( dev-ruby/bacon dev-ruby/ruby-fcgi )"
80
81 # Block against versions in older slots that also try to install a binary.
82 RDEPEND="${RDEPEND} !<dev-ruby/rack-1.1.0-r1:0"
83
84 #USE_RUBY=ruby19 \
85 # ruby_add_bdepend "ruby_targets_ruby19 test" '=dev-ruby/test-unit-1*'
86
87 all_ruby_prepare() {
88 epatch "${FILESDIR}"/${PN}-1.2.1-gentoo.patch
89
90 # Add missing require for Mutex use. This may show up in the tests
91 # depending on load order.
92 sed -i -e '1 irequire "thread"' lib/rack/lock.rb || die
93 }
94
95 each_ruby_prepare() {
96 case ${RUBY} in
97 *ruby19)
98 # Avoid failing encoding-related specs, most likely due to
99 # changes in handling of encodings in newer ruby 19
100 # versions.
101 sed -i -e '/escape non-UTF8 strings/,/end/ s:^:#:' test/spec_utils.rb || die
102 sed -i -e '/escape html entities in unicode strings/,/end/ s:^:#:' test/spec_utils.rb || die
103 sed -i -e '/escape html entities even on MRI/,/^ end/ s:^:#:' test/spec_utils.rb || die
104 sed -i -e '/accept params and build multipart encoded params/,/^ end/ s:^:#:' test/spec_mock.rb || die
105 ;;
106 *)
107 ;;
108 esac
109 }
110
111 each_ruby_test() {
112 # Since the Rakefile calls specrb directly rather than loading it, we
113 # cannot use it to launch the tests or only the currently-selected
114 # RUBY interpreter will be tested.
115 ${RUBY} -S bacon -Ilib -w -a \
116 -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|rackup)' \
117 || die "test failed for ${RUBY}"
118 }
119
120
121
122 1.1 dev-ruby/rack/rack-1.3.5.ebuild
123
124 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.3.5.ebuild?rev=1.1&view=markup
125 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.3.5.ebuild?rev=1.1&content-type=text/plain
126
127 Index: rack-1.3.5.ebuild
128 ===================================================================
129 # Copyright 1999-2011 Gentoo Foundation
130 # Distributed under the terms of the GNU General Public License v2
131 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.3.5.ebuild,v 1.1 2011/12/24 08:03:02 graaff Exp $
132
133 EAPI="2"
134 USE_RUBY="ruby18 ree18 ruby19 jruby"
135
136 RUBY_FAKEGEM_DOCDIR="doc"
137 RUBY_FAKEGEM_EXTRADOC="ChangeLog KNOWN-ISSUES README.rdoc SPEC"
138
139 inherit ruby-fakegem eutils versionator
140
141 DESCRIPTION="A modular Ruby webserver interface"
142 HOMEPAGE="http://rubyforge.org/projects/rack"
143 SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
144
145 LICENSE="MIT"
146 SLOT="$(get_version_component_range 1-2)"
147 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
148 IUSE=""
149
150 ruby_add_rdepend "virtual/ruby-ssl"
151
152 # The gem has automagic dependencies over mongrel, ruby-openid,
153 # memcache-client, thin, mongrel and camping; not sure if we should
154 # make them dependencies at all. We do add the fcgi dependency because
155 # that spec isn't optional.
156 ruby_add_bdepend "test? ( dev-ruby/bacon dev-ruby/ruby-fcgi )"
157
158 # Block against versions in older slots that also try to install a binary.
159 RDEPEND="${RDEPEND} !<dev-ruby/rack-1.1.0-r1:0 !<dev-ruby/rack-1.2.4-r2:1.2"
160
161 all_ruby_prepare() {
162 epatch "${FILESDIR}"/${PN}-1.2.1-gentoo.patch
163 }
164
165 each_ruby_prepare() {
166 case ${RUBY} in
167 *jruby)
168 # Avoid two failing tests due to bugs in jruby that should
169 # be solved in 1.6.5 or 1.7.
170 rm test/spec_deflater.rb || die
171 ;;
172 *)
173 ;;
174 esac
175 }
176
177 each_ruby_test() {
178 # Since the Rakefile calls specrb directly rather than loading it, we
179 # cannot use it to launch the tests or only the currently-selected
180 # RUBY interpreter will be tested.
181 ${RUBY} -S bacon -Ilib -w -a \
182 -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
183 || die "test failed for ${RUBY}"
184 }