/[gentoo-x86]/dev-ruby/samuel/samuel-0.3.3-r2.ebuild
Gentoo

Contents of /dev-ruby/samuel/samuel-0.3.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 1 05:51:48 2015 UTC (4 years, 3 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -4 lines
Update mocha dependency.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/samuel/samuel-0.3.3-r2.ebuild,v 1.1 2015/03/29 07:15:47 graaff Exp $
4
5 EAPI=5
6
7 USE_RUBY="ruby19 ruby20 ruby21"
8
9 RUBY_FAKEGEM_TASK_DOC=""
10
11 inherit ruby-fakegem
12
13 DESCRIPTION="An automatic logger for HTTP requests in Ruby"
14 HOMEPAGE="https://github.com/chrisk/samuel"
15
16 LICENSE="MIT"
17 SLOT="0"
18 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
19 IUSE=""
20
21 ruby_add_bdepend "
22 test? (
23 >=dev-ruby/shoulda-2.11.3
24 >=dev-ruby/fakeweb-1.3
25 >=dev-ruby/httpclient-2.2.3
26 dev-ruby/mocha:0.14
27 dev-ruby/test-unit:2
28 )"
29
30 all_ruby_prepare() {
31 # Remove references to bundler
32 sed -i -e '/[Bb]undler/d' test/test_helper.rb || die
33 rm Gemfile*
34
35 # Change the default port from 8000 to 64888 to sidestep Issue #10.
36 # https://github.com/chrisk/samuel/issues/10
37 sed -i -e 's:8000:64888:g' test/*.rb || die
38
39 # Require an old enough version of mocha.
40 sed -i -e '1igem "mocha", "~> 0.14.0"' test/test_helper.rb || die
41
42 # Use the test-unit gem to make jruby compatible with newer mocha.
43 sed -i -e '1igem "test-unit"' test/test_helper.rb || die
44 }

  ViewVC Help
Powered by ViewVC 1.1.20