Add new revisions that also install a rspec-2 wrapper.
authorHans de Graaff <graaff@gentoo.org>
Sun, 7 Dec 2014 07:32:25 +0000 (07:32 +0000)
committerHans de Graaff <graaff@gentoo.org>
Sun, 7 Dec 2014 07:32:25 +0000 (07:32 +0000)
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0x8883FA56A308A8D7!

dev-ruby/rspec-core/ChangeLog
dev-ruby/rspec-core/Manifest
dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild [new file with mode: 0644]
dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild [new file with mode: 0644]

index 3f1b5319577e8ba854bfc7a6365d547c885d154e..10950e752174c9c676c58389027e15876fdb1a7d 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for dev-ruby/rspec-core
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v 1.83 2014/12/05 08:17:22 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/ChangeLog,v 1.84 2014/12/07 07:32:24 graaff Exp $
+
+*rspec-core-2.99.2-r1 (07 Dec 2014)
+*rspec-core-2.14.8-r2 (07 Dec 2014)
+
+  07 Dec 2014; Hans de Graaff <graaff@gentoo.org> +rspec-core-2.14.8-r2.ebuild,
+  +rspec-core-2.99.2-r1.ebuild:
+  Add new revisions that also install a rspec-2 wrapper.
 
   05 Dec 2014; Hans de Graaff <graaff@gentoo.org> -rspec-core-2.99.1.ebuild:
   Cleanup.
index 24a7d0f194c13ceac6f3dd6abd174383a87d989f..c987d0386a226b826aff643573d1043d49a5f818 100644 (file)
@@ -4,14 +4,16 @@ Hash: SHA256
 DIST rspec-core-2.14.8-git.tgz 195949 SHA256 757febdcc4465b62fb41572e1fb7e0deb86f903127cb2941ea65d2c1d4ac29db SHA512 2be487f0a820cb959771b0c2a725aa7a43cd80a76f85ed42f3341420cefa4ba6413b5dbd86e8fba9f5515afef3e895e0f1f2f8239d50f0b764f037d5f0791095 WHIRLPOOL 5b2422d7f1d087caf654ea04d81f269ae90be63eb73135d34691839c27e6dfa152aac425f64a860b3af50ef0bf513ac7f4a68c979c254083f187e57a96c20fe3
 DIST rspec-core-2.99.2-git.tgz 212935 SHA256 75794e3f94f3323b1212b93e827d37d6ab2813dea2f5f927929b40e9ee170c43 SHA512 e13bc3384fd85c367481a8651c14be4a412cba5f58e12a8f4ab14b5d2768a7b92191b81e000e7dbf6a28275b41044d8b3eb70a04e4b30b5bf88db98cbec4cc44 WHIRLPOOL 5584be2da2310688155c4fe600a4a36f68434440ebc00b063e9fcdcb3188138831a210f482ac86a469984fcf9838d795511ea02433020ecc6bc1d6aacc8c72bd
 EBUILD rspec-core-2.14.8-r1.ebuild 2876 SHA256 dbdb1f3268ce4cf524c2c60199ad99260d1fca9d59125220c5f6b4b73b96aa96 SHA512 1dff6921216ffb29fd544621e11cbf81b6f2a2c4e3e81cbbf5d197b39229a3e66e55ba78de192cd89f42f9306b37ef571a20c6ddc775a97f4763b2cdb468d70c WHIRLPOOL 1929c4e10198ade5833da7b30813ca0d9b9490d17367b6d07a90d6788596ec18c600a95400ded233761c57539372650913466fa5c8962ef4ea78733611f8fdf1
+EBUILD rspec-core-2.14.8-r2.ebuild 2764 SHA256 65f75f0951624a8ece8e1e78f6c23d135110193b0ccf2c76627f7823097c89c4 SHA512 de1ed2c034449b5e8751cb2250ee48e9f1edcab263d140803e1a0ba006c3767deab63ba409f240097b8505441ce59a21708d9cdbed6a66879cadbd28c8b7b743 WHIRLPOOL 1042d2450f5a6554d631e350d3c6ae3615803eb4d88ea5db961f438d03927cd9d4999d2e1de52b28c5b04a4dfdc365cbae380814edfe2c49cdf8d265bcf57e20
 EBUILD rspec-core-2.14.8.ebuild 2546 SHA256 93c37ba4215d2012e2b3713236210db8d651760b8372ed332f2d6217ab930b01 SHA512 c0bc2f59dc7003bfa9457654f9374398add77ba7e9808b1485591bd80a941791cac0fedf640c61bea1db2454b548f90191e1b7793a30af94db0dbf269069446e WHIRLPOOL 96332ae0d915b5460ff37079ba746f1a8aaafc7f76a626fca4072aed67ac5a7993d9555d8d5f14558adfadf0de8cf9f6cc5b2e470321cb8f6bcdac0682addd2d
+EBUILD rspec-core-2.99.2-r1.ebuild 2492 SHA256 9fa5f88e3790dab4d53eff65da11a8a59627837b531b49c4d9d9a4fdb9334fbc SHA512 51f71230434fd7faf609a281b322d5e7c7a5539aeae382c790695d8183b72804ed2d0f31cb207d8866a46dc0ce2d353efa907b340b304afbe6f5b2f05d097d3e WHIRLPOOL bd5388d1d6eb26373f2b7b789f167707cfc6c3b6844bcb349bf78794631109ad67a3455ed751739f5289ce2955dca020c4d5dd932880ace88d895e64545db3ab
 EBUILD rspec-core-2.99.2.ebuild 2536 SHA256 43fecdf3408db43893701609bcbe1dc8adbb8bd3cee41d4d9115fd5212d9982d SHA512 f5c6276cc84612f32a14b23afc3bf88dd6d0bc26a692de1859c69eebcb4285cf8a296e80cb5d0d30b8d9f58498f861c6dc718e6c814e2f5179c1cbf98257867c WHIRLPOOL f28744a2df69c3a02bbafdb485859c1754e4c9e6f57bc53f1e7937a248ef2e18c44f68e05226f4335823e3023b3cfcc5df662b17d69b70391158223b0b67136a
-MISC ChangeLog 10552 SHA256 dd3e187408844fe6cf6db45220d8f2858643a46dfdd6147c148d7be3c97e9896 SHA512 29924b35722384b647a4e0209007c31dbfce96154d64319ffd68e4aafcb47e8146a0f05604a2215cc1d298a7644f415e9b4036058be0d2d8aa2629ce3877b1d7 WHIRLPOOL 651814932282395e8f5c7e5d3067fc28a2f03ddf50e7d0d35c7e74681de57706811283dc75a4c4c1422d3383cf875ac5cd6309e5d91b0f1426441f224173ccf9
+MISC ChangeLog 10795 SHA256 1bc93bb310d5b5c035342cfc0773ffb2283f92ede1f3eb31b55ca2335ab31276 SHA512 f1c5199a755d23c147414bac63c55d0ef042ed2ecd0c30b1c0ee3ff8832b949a789969f783dad78bb7cfdf8a514c2d5c2a6d5dbea576c8085f00df4aa67f2058 WHIRLPOOL 9c00f4fcb1d8aaec8db9344fcde9f3d5cff2afd8d76b4063b166621d8f8f3cbc76c8a299e8cfbd404e672fe3dec00a3fe68f99959d77e9fe6a7b72ac54d2b6e3
 MISC metadata.xml 157 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c SHA512 0cec73b966de88015ea4c7212723d848d367608aa93658bb945f298a8000c4ba8aba73c9eb8481859fb5bbed45e80dae32c628caf81e027a4ad8eafa7e632851 WHIRLPOOL 4da25c81e21173ad8b7b5f35b056264869d9a16741062aa4422c5ea1aa9e73da8eb700b0d54de84c169d702fbb3f41ed157c9dc7c9daac110849ae84715c051b
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iF4EAREIAAYFAlSBahMACgkQiIP6VqMIqNf39AEAhfVKKa9aOp2KDffe8sO17EF7
-p/e6LAgQwA1yOkwRac8A/RUjgUQR7bTdNYBQN2yg605a7gR43QMelHY7VdP4hqVh
-=fw/r
+iF4EAREIAAYFAlSEAokACgkQiIP6VqMIqNeAtgD+PaZMjLRIqE5dPVk90SPWh1sO
+uCFI9V2G5cbViP0cvG4A+wap9I2vbmsjj7fNkcgfAa5df8DC/jao6cwS5CGp3GQw
+=N1w0
 -----END PGP SIGNATURE-----
diff --git a/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild b/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild
new file mode 100644 (file)
index 0000000..5b0e51f
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild,v 1.1 2014/12/07 07:32:24 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+RUBY_FAKEGEM_TASK_DOC="none"
+
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+# Also install this custom path since internal paths depend on it.
+RUBY_FAKEGEM_EXTRAINSTALL="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
+HOMEPAGE="http://rspec.rubyforge.org/"
+SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="MIT"
+SLOT="2"
+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"
+IUSE=""
+
+ruby_add_bdepend "test? (
+               >=dev-ruby/nokogiri-1.5.2
+               dev-ruby/syntax
+               >=dev-ruby/zentest-4.6.2
+               >=dev-ruby/rspec-expectations-2.14.0:2
+               >=dev-ruby/rspec-mocks-2.12.0:2
+       )"
+
+# Skip yard for ruby20 for now since we don't support ruby20 eselected
+# yet and we can't bootstrap otherwise.
+USE_RUBY=${USE_RUBY/ruby20/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+       # Don't set up bundler: it doesn't understand our setup.
+       sed -i -e '/[Bb]undler/d' Rakefile || die
+
+       # Avoid dependency on cucumber since we can't run the features anyway.
+       sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
+
+       # Cover all released versions of ruby 2.1.x. This should be reported
+       # upstream since ruby 2.1.x uses semantic versioning and the file
+       # should not have the full version number.
+       cp spec/rspec/core/formatters/text_mate_formatted-2.1.0.html spec/rspec/core/formatters/text_mate_formatted-2.1.1.html|| die
+
+       # Duplicate exe also in bin. We can't change it since internal stuff
+       # also depends on this and fixing that is going to be fragile. This
+       # way we can at least install proper bin scripts.
+       cp -R exe bin || die
+
+       # Avoid unneeded dependency on git.
+       sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
+
+       # Avoid aruba dependency so that we don't end up in dependency hell.
+       sed -i -e '/aruba/ s:^:#:' -e '104,106 s:^:#:' spec/spec_helper.rb || die
+       rm spec/command_line/order_spec.rb || die
+}
+
+each_ruby_prepare() {
+       sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
+}
+
+all_ruby_compile() {
+       if use doc ; then
+               yardoc || die
+       fi
+}
+
+each_ruby_test() {
+       PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       ruby_fakegem_binwrapper rspec /usr/bin/rspec-2 'gem "rspec", "~>2.0"'
+}
diff --git a/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild b/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild
new file mode 100644 (file)
index 0000000..a37f288
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild,v 1.1 2014/12/07 07:32:24 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+RUBY_FAKEGEM_TASK_DOC="none"
+
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+# Also install this custom path since internal paths depend on it.
+RUBY_FAKEGEM_EXTRAINSTALL="exe"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
+HOMEPAGE="http://github.com/rspec/rspec-core"
+SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="MIT"
+SLOT="2"
+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"
+IUSE=""
+
+ruby_add_bdepend "test? (
+               >=dev-ruby/nokogiri-1.5.2
+               dev-ruby/syntax
+               >=dev-ruby/zentest-4.6.2
+               >=dev-ruby/rspec-expectations-2.14.0:2
+               >=dev-ruby/rspec-mocks-2.99.0:2
+       )"
+
+# Skip yard for ruby21 for now since we don't support ruby21 eselected
+# yet and we can't bootstrap otherwise.
+USE_RUBY=${USE_RUBY/ruby21/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+       # Don't set up bundler: it doesn't understand our setup.
+       sed -i -e '/[Bb]undler/d' Rakefile || die
+
+       # Avoid dependency on cucumber since we can't run the features anyway.
+       sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
+
+       # Duplicate exe also in bin. We can't change it since internal stuff
+       # also depends on this and fixing that is going to be fragile. This
+       # way we can at least install proper bin scripts.
+       cp -R exe bin || die
+
+       # Avoid unneeded dependency on git.
+       sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
+
+       # Avoid aruba dependency so that we don't end up in dependency hell.
+       sed -i -e '/aruba/ s:^:#:' -e '/Aruba/,/}/ s:^:#:' spec/spec_helper.rb || die
+       rm spec/command_line/order_spec.rb || die
+}
+
+each_ruby_prepare() {
+       sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
+}
+
+all_ruby_compile() {
+       if use doc ; then
+               yardoc || die
+       fi
+}
+
+each_ruby_test() {
+       PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       ruby_fakegem_binwrapper rspec /usr/bin/rspec-2 'gem "rspec", "~>2.0"'
+}