diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-06-06 15:22:05 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-06-06 15:22:05 +0200 |
commit | 62e45d21790a1322d4c377034451e097b3290bf9 (patch) | |
tree | 0c0a1b4543e603c5df57823867e53b1e31582d96 | |
parent | dev-ruby/msgpack: add 1.7.1 (diff) | |
download | gentoo-62e45d21790a1322d4c377034451e097b3290bf9.tar.gz gentoo-62e45d21790a1322d4c377034451e097b3290bf9.tar.bz2 gentoo-62e45d21790a1322d4c377034451e097b3290bf9.zip |
dev-ruby/rake-compiler: add 1.2.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/rake-compiler/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rake-compiler/rake-compiler-1.2.3.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/rake-compiler/Manifest b/dev-ruby/rake-compiler/Manifest index b3d46b82b292..6fcdf2282671 100644 --- a/dev-ruby/rake-compiler/Manifest +++ b/dev-ruby/rake-compiler/Manifest @@ -1 +1,2 @@ DIST rake-compiler-1.2.1.tar.gz 37723 BLAKE2B 685278cec10f9bd028ed7973446f8f164fd81567d5f390507321fd7fcd260b746e53ebde60fcee025ab20bcf248f274f1d8a0fac16d2f7ef13c0b8996c667037 SHA512 fd99c3a46a9a47f2fc70e59d2c33e6a68b849708cab35e6af46bafa0e9f3c843c20ec1287a463cda7d6237fc79e4cd4965cc78b309ac8b9519c0e7f44f2be8ce +DIST rake-compiler-1.2.3.tar.gz 38603 BLAKE2B d6cb1714ec3983051d794307e0516c01379a1d2a59430fad9780cc4b037a159c924a4edc1abf6cfbfa1b245203e4cfd4ea7bf887dbf2ea02ca93138629012062 SHA512 3dd3374630dbf0ce9d31caf62d399481622ed55aa15184073836043b907d40994b3284c40945f89c604296cc0cd2b588245e2310cef80846da48883c0e6a2f34 diff --git a/dev-ruby/rake-compiler/rake-compiler-1.2.3.ebuild b/dev-ruby/rake-compiler/rake-compiler-1.2.3.ebuild new file mode 100644 index 000000000000..ec50b05cae87 --- /dev/null +++ b/dev-ruby/rake-compiler/rake-compiler-1.2.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="History.md README.md" + +RUBY_FAKEGEM_GEMSPEC="rake-compiler.gemspec" + +inherit ruby-fakegem + +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="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +SLOT="0" +IUSE="" + +ruby_add_rdepend "dev-ruby/rake" + +ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" + +USE_RUBY="ruby27 ruby30 ruby31" ruby_add_bdepend "test? ( dev-util/cucumber )" + +all_ruby_prepare() { + # Avoid failing features for native gems, this also fails with rubygems + sed -i -e '/generate native gem/,$ s:^:#:' features/package.feature || die + + # Fix compatibility with newer cucumber versions. The not syntax has + # been supported since cucumber 3.x. + sed -i -e "s/~@java/'not @java'/" cucumber.yml || die + + # Fix compatibility with newer rspec versions. + sed -i -e 's/be_true/be true/ ; s/be_false/be false/' features/step_definitions/*.rb || die +} + +each_ruby_test() { + # Skip cucumber for new ruby versions (not ready yet due to rspec 2 usage) + case ${RUBY} in + *ruby27|*ruby30|*ruby31) + RSPEC_VERSION=3 ruby-ng_rspec + ruby-ng_cucumber + ;; + *) + RSPEC_VERSION=3 ruby-ng_rspec + ;; + esac +} |