summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rake-compiler')
-rw-r--r--dev-ruby/rake-compiler/Manifest1
-rw-r--r--dev-ruby/rake-compiler/rake-compiler-1.0.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rake-compiler/Manifest b/dev-ruby/rake-compiler/Manifest
index 3b98059e4fdf..4987b8b33668 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-0.9.9.tar.gz 32624 SHA256 d82eedb4a1e23aa4e1e07af130c3ef450b6fb0a32b1297a923e1387cd420b811 SHA512 66d1468d687f10bb1df77410024ff6f9a9b0f396b5ec5e13ac009d02748fca503d8dc805a0f82e30bb9989441ad98d2a5aa2e586c5e5345a164fc03853259f22 WHIRLPOOL 8cec34ae674c98311b2e947b44f72a7f4998366f4d05c8a97a83a93f4b7522c96b95b7d09ec1d92ee8eb90ee9913c9b50485a00d252bcbfb9fa7b72bb2bf861e
+DIST rake-compiler-1.0.0.tar.gz 32745 SHA256 bb4f3035f693d71b4bff0969968b4c5beba4a3e096e94da1e4c34ef7716a9fdc SHA512 451fecbd64bb45d797f57f825e0fd380e2e0972d470f27e9167cee715b0ba264248dc08cd41196827dcea7b34b0795ce0965ad1ed497f39b01577a443595f9f8 WHIRLPOOL 911e949701bffbf801376b627b93e66010b0f9bbf2bcbf56f07f35ee1032578e60c72ec66de4de5dc59d3545b3865f9425a1e4373818014d706f472b1085c17d
diff --git a/dev-ruby/rake-compiler/rake-compiler-1.0.0.ebuild b/dev-ruby/rake-compiler/rake-compiler-1.0.0.ebuild
new file mode 100644
index 000000000000..594b4403c44a
--- /dev/null
+++ b/dev-ruby/rake-compiler/rake-compiler-1.0.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+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 ~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"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/rake"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:2 )"
+
+USE_RUBY="ruby20 ruby21 ruby22" ruby_add_bdepend "test? ( dev-util/cucumber )"
+
+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
+}
+
+each_ruby_test() {
+ # Skip cucumber for ruby23 (not ready yet)
+ case ${RUBY} in
+ *ruby20|*ruby21|*ruby22)
+ ruby-ng_rspec
+ ruby-ng_cucumber
+ ;;
+ *)
+ ruby-ng_rspec
+ ;;
+ esac
+}