Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/mocha: mocha-0.10.5-r2.ebuild mocha-0.11.4-r1.ebuild ChangeLog
Date: Sun, 04 May 2014 11:40:39
Message-Id: 20140504114035.72C0D2004C@flycatcher.gentoo.org
1 mrueg 14/05/04 11:40:35
2
3 Modified: ChangeLog
4 Added: mocha-0.10.5-r2.ebuild mocha-0.11.4-r1.ebuild
5 Log:
6 Add ruby20 and ruby21 support.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.104 dev-ruby/mocha/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/ChangeLog?rev=1.104&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/ChangeLog?rev=1.104&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/ChangeLog?r1=1.103&r2=1.104
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/mocha/ChangeLog,v
20 retrieving revision 1.103
21 retrieving revision 1.104
22 diff -u -r1.103 -r1.104
23 --- ChangeLog 26 Apr 2014 09:47:40 -0000 1.103
24 +++ ChangeLog 4 May 2014 11:40:35 -0000 1.104
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-ruby/mocha
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/ChangeLog,v 1.103 2014/04/26 09:47:40 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/ChangeLog,v 1.104 2014/05/04 11:40:35 mrueg Exp $
30 +
31 +*mocha-0.11.4-r1 (04 May 2014)
32 +*mocha-0.10.5-r2 (04 May 2014)
33 +
34 + 04 May 2014; Manuel RĂ¼ger <mrueg@g.o> +mocha-0.10.5-r2.ebuild,
35 + +mocha-0.11.4-r1.ebuild, mocha-0.10.5-r1.ebuild:
36 + Add ruby20 and ruby21 support.
37
38 26 Apr 2014; Hans de Graaff <graaff@g.o> mocha-0.14.0.ebuild:
39 Add ruby21.
40
41
42
43 1.1 dev-ruby/mocha/mocha-0.10.5-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/mocha-0.10.5-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/mocha-0.10.5-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mocha-0.10.5-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/mocha-0.10.5-r2.ebuild,v 1.1 2014/05/04 11:40:35 mrueg Exp $
53
54 EAPI=5
55 USE_RUBY="ruby19 ruby20 ruby21 jruby"
56
57 RUBY_FAKEGEM_TASK_TEST="test:units"
58
59 RUBY_FAKEGEM_TASK_DOC="rdoc"
60 RUBY_FAKEGEM_DOCDIR="doc"
61 RUBY_FAKEGEM_EXTRADOC="README.rdoc RELEASE.rdoc"
62
63 RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
64
65 inherit ruby-fakegem
66
67 DESCRIPTION="A Ruby library for mocking and stubbing using a syntax like that of JMock, and SchMock"
68 HOMEPAGE="http://mocha.rubyforge.org/"
69
70 LICENSE="MIT"
71 SLOT="0.10"
72 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
73 IUSE=""
74
75 ruby_add_bdepend "
76 doc? ( dev-ruby/coderay )"
77
78 ruby_add_rdepend "dev-ruby/metaclass" #metaclass ~> 0.0.1
79
80 all_ruby_prepare() {
81 sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
82
83 # Use syntax that works with all versions of coderay
84 sed -i -e 's/html.div/html(:wrap => :div)/' Rakefile || die
85 }
86
87 all_ruby_compile() {
88 all_fakegem_compile
89
90 if use doc; then
91 rake examples || die
92 fi
93 }
94
95 all_ruby_install() {
96 all_fakegem_install
97
98 docinto examples
99 dodoc examples/*.rb || die
100 }
101
102
103
104 1.1 dev-ruby/mocha/mocha-0.11.4-r1.ebuild
105
106 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/mocha-0.11.4-r1.ebuild?rev=1.1&view=markup
107 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mocha/mocha-0.11.4-r1.ebuild?rev=1.1&content-type=text/plain
108
109 Index: mocha-0.11.4-r1.ebuild
110 ===================================================================
111 # Copyright 1999-2014 Gentoo Foundation
112 # Distributed under the terms of the GNU General Public License v2
113 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/mocha-0.11.4-r1.ebuild,v 1.1 2014/05/04 11:40:35 mrueg Exp $
114
115 EAPI=5
116 USE_RUBY="ruby19 ruby20 ruby21 jruby"
117
118 RUBY_FAKEGEM_TASK_TEST="test:units"
119
120 RUBY_FAKEGEM_TASK_DOC="yardoc"
121 RUBY_FAKEGEM_DOCDIR="doc"
122 RUBY_FAKEGEM_EXTRADOC="README.rdoc RELEASE.rdoc"
123
124 RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
125
126 inherit ruby-fakegem
127
128 DESCRIPTION="A Ruby library for mocking and stubbing using a syntax like that of JMock, and SchMock"
129 HOMEPAGE="http://gofreerange.com/mocha/docs/"
130
131 LICENSE="MIT"
132 SLOT="0.11"
133 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
134 IUSE=""
135
136 ruby_add_bdepend "
137 doc? ( dev-ruby/yard )"
138
139 ruby_add_rdepend "dev-ruby/metaclass" #metaclass ~> 0.0.1
140
141 all_ruby_prepare() {
142 sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
143 }
144
145 all_ruby_compile() {
146 all_fakegem_compile
147
148 if use doc; then
149 rake examples || die
150 fi
151 }
152
153 each_ruby_test() {
154 ${RUBY} -Ilib -S testrb test/unit/* || die
155 }
156
157 all_ruby_install() {
158 all_fakegem_install
159
160 docinto examples
161 dodoc examples/*.rb || die
162 }