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/rspec-core: rspec-core-3.2.1.ebuild ChangeLog
Date: Fri, 27 Feb 2015 06:56:58
Message-Id: 20150227065652.ED24212A5A@oystercatcher.gentoo.org
1 graaff 15/02/27 06:56:52
2
3 Modified: ChangeLog
4 Added: rspec-core-3.2.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.93 dev-ruby/rspec-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?rev=1.93&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?rev=1.93&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?r1=1.92&r2=1.93
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v
20 retrieving revision 1.92
21 retrieving revision 1.93
22 diff -u -r1.92 -r1.93
23 --- ChangeLog 21 Feb 2015 09:37:16 -0000 1.92
24 +++ ChangeLog 27 Feb 2015 06:56:52 -0000 1.93
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/rspec-core
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v 1.92 2015/02/21 09:37:16 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v 1.93 2015/02/27 06:56:52 graaff Exp $
30 +
31 +*rspec-core-3.2.1 (27 Feb 2015)
32 +
33 + 27 Feb 2015; Hans de Graaff <graaff@g.o> +rspec-core-3.2.1.ebuild:
34 + Version bump.
35
36 21 Feb 2015; Hans de Graaff <graaff@g.o> rspec-core-2.99.2-r1.ebuild,
37 rspec-core-3.2.0.ebuild, metadata.xml:
38
39
40
41 1.1 dev-ruby/rspec-core/rspec-core-3.2.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.2.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.2.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rspec-core-3.2.1.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.2.1.ebuild,v 1.1 2015/02/27 06:56:52 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
54
55 RUBY_FAKEGEM_TASK_TEST="none"
56 RUBY_FAKEGEM_TASK_DOC="none"
57
58 RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
59
60 # Also install this custom path since internal paths depend on it.
61 RUBY_FAKEGEM_EXTRAINSTALL="exe"
62
63 RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
64
65 inherit ruby-fakegem
66
67 DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
68 HOMEPAGE="https://github.com/rspec/rspec-core"
69 SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
70
71 LICENSE="MIT"
72 SLOT="3"
73 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
74 IUSE="highlight"
75
76 SUBVERSION="$(get_version_component_range 1-2)"
77
78 ruby_add_rdepend "
79 =dev-ruby/rspec-support-${SUBVERSION}*
80 !!<dev-ruby/rspec-core-2.14.8-r4
81 highlight? ( >=dev-ruby/coderay-1.0.9 )
82 "
83
84 ruby_add_bdepend "test? (
85 >=dev-ruby/nokogiri-1.5.2
86 >=dev-ruby/coderay-1.0.9
87 dev-ruby/syntax
88 >=dev-ruby/zentest-4.6.2
89 >=dev-ruby/rspec-expectations-3.0.0:3
90 >=dev-ruby/rspec-mocks-2.99.0:3
91 )"
92
93 # Skip yard for ruby21 for now since we don't support ruby21 eselected
94 # yet and we can't bootstrap otherwise.
95 USE_RUBY=${USE_RUBY/ruby21 ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
96
97 all_ruby_prepare() {
98 # Don't set up bundler: it doesn't understand our setup.
99 sed -i -e '/[Bb]undler/d' Rakefile || die
100
101 # Avoid dependency on cucumber since we can't run the features anyway.
102 sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
103
104 # Duplicate exe also in bin. We can't change it since internal stuff
105 # also depends on this and fixing that is going to be fragile. This
106 # way we can at least install proper bin scripts.
107 cp -R exe bin || die
108
109 # Avoid unneeded dependency on git.
110 sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
111
112 # Avoid aruba dependency so that we don't end up in dependency hell.
113 sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
114 rm spec/integration/{filtering,order}_spec.rb spec/support/aruba_support.rb || die
115 }
116
117 each_ruby_prepare() {
118 sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
119
120 case ${RUBY} in
121 *ruby22)
122 # The rubygems version bundled with ruby 2.2 causes warnings.
123 sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
124 ;;
125 esac
126 }
127
128 all_ruby_compile() {
129 if use doc ; then
130 yardoc || die
131 fi
132 }
133
134 each_ruby_test() {
135 PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
136 }
137
138 all_ruby_install() {
139 all_fakegem_install
140
141 ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
142 }