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: ChangeLog rack-1.2.1.ebuild rack-1.1.0-r1.ebuild
Date: Tue, 28 Dec 2010 12:25:57
Message-Id: 20101228122547.0CD8420054@flycatcher.gentoo.org
1 graaff 10/12/28 12:25:47
2
3 Modified: ChangeLog rack-1.2.1.ebuild
4 Added: rack-1.1.0-r1.ebuild
5 Log:
6 Put rack 1.2 in a separate slot, and make sure that only rack 1.2 installs rackup so the older version can co-exist. Fixed bug 341941.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.36 dev-ruby/rack/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?rev=1.36&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?rev=1.36&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/ChangeLog?r1=1.35&r2=1.36
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v
20 retrieving revision 1.35
21 retrieving revision 1.36
22 diff -u -r1.35 -r1.36
23 --- ChangeLog 22 Oct 2010 13:25:30 -0000 1.35
24 +++ ChangeLog 28 Dec 2010 12:25:46 -0000 1.36
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-ruby/rack
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.35 2010/10/22 13:25:30 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/ChangeLog,v 1.36 2010/12/28 12:25:46 graaff Exp $
30 +
31 +*rack-1.1.0-r1 (28 Dec 2010)
32 +
33 + 28 Dec 2010; Hans de Graaff <graaff@g.o> +rack-1.1.0-r1.ebuild,
34 + rack-1.2.1.ebuild:
35 + Put rack 1.2 in a separate slot, and make sure that only rack 1.2 installs
36 + rackup so the older version can co-exist. Fixed bug 341941.
37
38 22 Oct 2010; Hans de Graaff <graaff@g.o> -rack-1.0.0.ebuild:
39 Remove old version.
40
41
42
43 1.3 dev-ruby/rack/rack-1.2.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild?rev=1.3&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild?rev=1.3&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild?r1=1.2&r2=1.3
48
49 Index: rack-1.2.1.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild,v
52 retrieving revision 1.2
53 retrieving revision 1.3
54 diff -u -r1.2 -r1.3
55 --- rack-1.2.1.ebuild 3 Oct 2010 10:55:54 -0000 1.2
56 +++ rack-1.2.1.ebuild 28 Dec 2010 12:25:46 -0000 1.3
57 @@ -1,20 +1,20 @@
58 # Copyright 1999-2010 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild,v 1.2 2010/10/03 10:55:54 armin76 Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.2.1.ebuild,v 1.3 2010/12/28 12:25:46 graaff Exp $
62
63 EAPI="2"
64 USE_RUBY="ruby18 ree18 ruby19 jruby"
65
66 RUBY_FAKEGEM_DOCDIR="doc"
67
68 -inherit ruby-fakegem eutils
69 +inherit ruby-fakegem eutils versionator
70
71 DESCRIPTION="A modular Ruby webserver interface"
72 HOMEPAGE="http://rubyforge.org/projects/rack"
73 SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
74
75 LICENSE="MIT"
76 -SLOT="0"
77 +SLOT="$(get_version_component_range 1-2)"
78 KEYWORDS="~amd64 ~ia64 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-solaris"
79 IUSE=""
80
81 @@ -24,6 +24,9 @@
82 # that spec isn't optional.
83 ruby_add_bdepend "test? ( dev-ruby/bacon dev-ruby/ruby-fcgi )"
84
85 +# Block against versions in older slots that also try to install a binary.
86 +ruby_add_rdepend "!<dev-ruby/rack-1.1.0-r1"
87 +
88 #USE_RUBY=ruby19 \
89 # ruby_add_bdepend "ruby_targets_ruby19 test" '=dev-ruby/test-unit-1*'
90
91 @@ -39,9 +42,3 @@
92 -q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|rackup)' \
93 || die "test failed for ${RUBY}"
94 }
95 -
96 -all_ruby_install() {
97 - all_fakegem_install
98 -
99 - ruby_fakegem_binwrapper rackup
100 -}
101
102
103
104 1.1 dev-ruby/rack/rack-1.1.0-r1.ebuild
105
106 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.1.0-r1.ebuild?rev=1.1&view=markup
107 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.1.0-r1.ebuild?rev=1.1&content-type=text/plain
108
109 Index: rack-1.1.0-r1.ebuild
110 ===================================================================
111 # Copyright 1999-2010 Gentoo Foundation
112 # Distributed under the terms of the GNU General Public License v2
113 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rack/rack-1.1.0-r1.ebuild,v 1.1 2010/12/28 12:25:46 graaff Exp $
114
115 EAPI="2"
116 USE_RUBY="ruby18 ree18 ruby19 jruby"
117
118 RUBY_FAKEGEM_DOCDIR="doc"
119
120 RUBY_FAKEGEM_BINWRAP=""
121
122 inherit ruby-fakegem eutils
123
124 DESCRIPTION="A modular Ruby webserver interface"
125 HOMEPAGE="http://rubyforge.org/projects/rack"
126 SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
127
128 LICENSE="MIT"
129 SLOT="0"
130 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-solaris"
131 IUSE=""
132
133 # The gem has automagic dependencies over mongrel, ruby-openid,
134 # memcache-client, thin, mongrel and camping; not sure if we should
135 # make them dependencies at all.
136 ruby_add_bdepend test dev-ruby/test-spec
137
138 USE_RUBY=ruby19 \
139 ruby_add_bdepend "ruby_targets_ruby19 test" '=dev-ruby/test-unit-1*'
140
141 all_ruby_prepare() {
142 epatch "${FILESDIR}"/${P}-gentoo.patch
143 }
144
145 each_ruby_test() {
146 # Since the Rakefile calls specrb directly rather than loading it, we
147 # cannot use it to launch the tests or only the currently-selected
148 # RUBY interpreter will be tested.
149 ${RUBY} -S specrb -Ilib:test -w -a \
150 -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|rackup)' \
151 || die "test failed for ${RUBY}"
152 }