summaryrefslogtreecommitdiff
path: root/dev-ruby/rake-compiler
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-06 15:39:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-06 15:39:49 +0100
commita52a3a626c1d57fc0b3dbf58e79a23e88c3dd4ff (patch)
tree82d493ce372e412edd2cd56af2108b00677d5f74 /dev-ruby/rake-compiler
parent996d1cba721b044876526a7f3c1d2ef1fcc90bb4 (diff)
gentoo auto-resync : 06:06:2023 - 15:39:49
Diffstat (limited to 'dev-ruby/rake-compiler')
-rw-r--r--dev-ruby/rake-compiler/Manifest2
-rw-r--r--dev-ruby/rake-compiler/rake-compiler-1.2.3.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/rake-compiler/Manifest b/dev-ruby/rake-compiler/Manifest
index 4cbd99aaec19..12aaf225d016 100644
--- a/dev-ruby/rake-compiler/Manifest
+++ b/dev-ruby/rake-compiler/Manifest
@@ -1,3 +1,5 @@
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
EBUILD rake-compiler-1.2.1.ebuild 1607 BLAKE2B b38cc6d15b208e6a7fdb7b00bf37652a5944518abde8cdae723d44aaaab9d3987100265d6b76474389e32bb6506b527506b23ce9ca8e1493f94ea889039a2593 SHA512 c22225e4d1b5a66ee4ffd74160e8c99e9d1648a8d38473b3db7338b3e50e40d42b2d4a078bf047abe20bc7e9006e3c2bdd7b704dd1a47840d458c8a00bac3c09
+EBUILD rake-compiler-1.2.3.ebuild 1607 BLAKE2B 22a64ad303cb17c86bf062c9a5d9879658284d87473ca6b958cd42ffc10c3935e0823b789e2546dfca13dac80ba86f41dbe13eed76a3a3a05a90a0a673ba001d SHA512 30cc460e32b41e9a3583af1060bb0192ab5592d509ebea9c5b92085660910e17a6bf098259a28991b38ecb647e820ec0fb64d28828f313ee0a0858df7d23f95c
MISC metadata.xml 351 BLAKE2B 244d52aa29c9cdaa264cc545994ba23b012d8fa075fe3c173e28958c3af17b11e32216ce686d5117d8cdfc31c2761e3cc5e79801019bc5f2b36725405d085d16 SHA512 74631c371f303715421c6a61ed98889d8a898d761c8216cfe9bbed422eea27e29c4ddd344da4e49f11c4bb31c8ac5fd5df3c5d36a7ab187e80e005276c027bd5
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
+}