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: ChangeLog rspec-core-3.3.1.ebuild
Date: Sun, 28 Jun 2015 06:00:59
Message-Id: 20150628060051.D829073F@oystercatcher.gentoo.org
1 graaff 15/06/28 06:00:51
2
3 Modified: ChangeLog
4 Added: rspec-core-3.3.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.97 dev-ruby/rspec-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?rev=1.97&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?rev=1.97&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/ChangeLog?r1=1.96&r2=1.97
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v
20 retrieving revision 1.96
21 retrieving revision 1.97
22 diff -u -r1.96 -r1.97
23 --- ChangeLog 7 Jun 2015 19:30:21 -0000 1.96
24 +++ ChangeLog 28 Jun 2015 06:00:51 -0000 1.97
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.96 2015/06/07 19:30:21 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v 1.97 2015/06/28 06:00:51 graaff Exp $
30 +
31 +*rspec-core-3.3.1 (28 Jun 2015)
32 +
33 + 28 Jun 2015; Hans de Graaff <graaff@g.o> +rspec-core-3.3.1.ebuild:
34 + Version bump.
35
36 07 Jun 2015; Justin Lecher <jlec@g.o> metadata.xml:
37 Add github to remote-id in metadata.xml
38
39
40
41 1.1 dev-ruby/rspec-core/rspec-core-3.3.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.3.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.3.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rspec-core-3.3.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.3.1.ebuild,v 1.1 2015/06/28 06:00:51 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.3.0:3
90 >=dev-ruby/rspec-mocks-2.99.0:3
91 )"
92
93 # Skip yard for ruby22 for now since we don't support ruby22 eselected
94 # yet and we can't bootstrap otherwise.
95 USE_RUBY=${USE_RUBY/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,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
115
116 # Avoid a spec failing due to path issues
117 sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
118 spec/rspec/core/configuration_spec.rb || die
119 }
120
121 each_ruby_prepare() {
122 sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
123
124 # case ${RUBY} in
125 # *ruby22)
126 # # The rubygems version bundled with ruby 2.2 causes warnings.
127 # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
128 # ;;
129 # esac
130 }
131
132 all_ruby_compile() {
133 if use doc ; then
134 yardoc || die
135 fi
136 }
137
138 each_ruby_test() {
139 PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
140 }
141
142 all_ruby_install() {
143 all_fakegem_install
144
145 ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
146 }