commit:     306f70a0f64401bdb45188d982d07253df1f01ae
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 13 14:23:01 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Nov 13 14:23:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=306f70a0

dev-ruby/duktape-rb: add a version supporting running tests

Will still keep the test-restricted one around in case it turns out
keywording and stabilising dev-ruby/sdoc and its dependencies on ppc
turns out to be too complex, as we need a ppc-stable version of
duktape-rb rather soon.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r1.ebuild | 36 ++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r1.ebuild 
b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r1.ebuild
new file mode 100644
index 00000000000..24d4c00ed15
--- /dev/null
+++ b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26"
+
+RUBY_FAKEGEM_GEMSPEC="duktape.gemspec"
+RUBY_FAKEGEM_NAME="duktape"
+
+inherit ruby-fakegem
+
+MY_PN=${PN/-/\.}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Ruby bindings to the Duktape JavaScript interpeter"
+HOMEPAGE="https://github.com/judofyr/duktape.rb";
+SRC_URI="https://github.com/judofyr/${MY_PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND+="dev-lang/duktape"
+
+ruby_add_bdepend "
+       dev-ruby/rake-compiler
+       test? (
+               dev-ruby/sdoc
+       )"
+
+RUBY_S=${MY_P}
+
+each_ruby_compile() {
+       ${RUBY} -S rake compile
+}

Reply via email to