diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-08-20 08:27:55 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-08-20 09:08:49 +0200 |
commit | 9c26fb0d516007f91b8adee18b8d5dc4f0fe18eb (patch) | |
tree | 081ae71c1fa883c9a4fc05317554f16caba2ac5b /dev-ruby/rake-compiler | |
parent | dev-ruby/power_assert: add 1.1.0 (diff) | |
download | gentoo-9c26fb0d516007f91b8adee18b8d5dc4f0fe18eb.tar.gz gentoo-9c26fb0d516007f91b8adee18b8d5dc4f0fe18eb.tar.bz2 gentoo-9c26fb0d516007f91b8adee18b8d5dc4f0fe18eb.zip |
dev-ruby/rake-compiler: add 1.0.4
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/rake-compiler')
-rw-r--r-- | dev-ruby/rake-compiler/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rake-compiler/rake-compiler-1.0.4.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/rake-compiler/Manifest b/dev-ruby/rake-compiler/Manifest index a7b2aac12af8..ccc2af04aeb0 100644 --- a/dev-ruby/rake-compiler/Manifest +++ b/dev-ruby/rake-compiler/Manifest @@ -1,2 +1,3 @@ DIST rake-compiler-0.9.2.tar.gz 30778 SHA256 72ced9a0ca9a034506de279e888fdec63d542d788ee1d2e7910f1bfd71c82dd3 SHA512 883157bf44540cd021bec22a84e907922756f74a61e84c62e51eed752da01d217a03aebd88582fbe779210116e7ab1a36023707fbdae445b5ac4499c7de9b8eb WHIRLPOOL 79b21689e08ac21005243a2f18bde0941c3a86bdd3bf36bf557d3c706cb64fcb379f2d3fd06c93d3c07f10e8c1e47c75933ba783cc23b57137d9fce6c3e7de78 DIST rake-compiler-1.0.2.tar.gz 32823 SHA256 59b9fefb73dde1da51fb634d34794f07101fd1a583395f5fd85a0b9410646ca7 SHA512 ef7132eff3afb29e98ce21facfd663cfe495053ca98d54b26275ee8e186c91f81f0450e52bf282bfad64e1443f6e065aefa62a30692895648a89966a8a0f0ebe WHIRLPOOL 9c9e730718bf065bea90be9e4c75661fc2f3dc912b6a7d7db2c49e824f4cb10982165b75fe546c1c0fb6e84cfab2c0b2745103124396c537196fe15f775ddf5d +DIST rake-compiler-1.0.4.tar.gz 33590 SHA256 31966db08adb10513ba3033234655aafc5ea42a9e6798324e4466de4ea8fa068 SHA512 fc015d8f6dcc2ba380dbc3eb2959b068f3582e0efcdc765570f5b2c97737db2ba38fb324b9b5bb63d3af822843139561a36758408db637e7716afb3a6074251c WHIRLPOOL 2a8612ad5a1b5ef4454e302c109e610141114dbc4bff8ce3b26a6a010ae82ae364e48227a437b60b15d7b301267c2aaaf6d5dee9972b7af4121620ad652dab67 diff --git a/dev-ruby/rake-compiler/rake-compiler-1.0.4.ebuild b/dev-ruby/rake-compiler/rake-compiler-1.0.4.ebuild new file mode 100644 index 000000000000..2e58095c1a69 --- /dev/null +++ b/dev-ruby/rake-compiler/rake-compiler-1.0.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc" + +inherit ruby-fakegem eutils + +DESCRIPTION="Provide a standard and simplified way to build and package Ruby extensions" +HOMEPAGE="https://github.com/luislavena/rake-compiler" +LICENSE="MIT" + +SRC_URI="https://github.com/luislavena/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +IUSE="" + +ruby_add_rdepend "dev-ruby/rake" + +ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" + +USE_RUBY="ruby21 ruby22" ruby_add_bdepend "test? ( dev-util/cucumber dev-ruby/rspec:2 )" + +all_ruby_prepare() { + # Make sure the right rspec version is used in cucumber. + sed -i -e "1igem 'rspec', '~>2.0'" features/support/env.rb || die + + # Avoid failing features for native gems, this also fails with rubygems + sed -i -e '/generate native gem/,$ s:^:#:' features/package.feature || die +} + +each_ruby_test() { + # Skip cucumber for ruby24 (not ready yet) + case ${RUBY} in + *ruby21|*ruby22) + RSPEC_VERSION=3 ruby-ng_rspec + ruby-ng_cucumber + ;; + *) + RSPEC_VERSION=3 ruby-ng_rspec + ;; + esac +} |