diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-11-13 15:03:06 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-11-13 15:11:46 +0100 |
commit | 62007389099832d4e0a975fbd11c4a8a7cf0fdce (patch) | |
tree | 2823aca24238d633f6cbee30f1e82b490cb298fb /dev-ruby/duktape-rb | |
parent | app-i18n/ibus-typing-booster: drop old (diff) | |
download | gentoo-62007389099832d4e0a975fbd11c4a8a7cf0fdce.tar.gz gentoo-62007389099832d4e0a975fbd11c4a8a7cf0fdce.tar.bz2 gentoo-62007389099832d4e0a975fbd11c4a8a7cf0fdce.zip |
dev-ruby/duktape-rb: new package
Ruby bindings for dev-lang/duktape. This appears to be the only
JavaScript runtime compatible with dev-ruby/execjs that is not based on
Google V8 (which doesn't work on 32-bit PPC), works under Linux (unless
it is somehow possible to get Apple JavaScriptCore to do so; pretty sure
Windows Script Host will not), and works under C Ruby (therubyrhino is
JRuby-specific). With none of the versions of net-libs/nodejs currently
in the tree even compiling on ppc, we urgently need this one in order
not to break Ruby on Rails in Gentoo/PPC32.
On my test amd64 system, dev-ruby/execjs-2.7.0 modified to depend on
dev-lang/duktape-rb both successfully detects it and passes all tests.
Nb. no ruby27 support because of dependencies which don't support it yet.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-ruby/duktape-rb')
-rw-r--r-- | dev-ruby/duktape-rb/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/duktape-rb/duktape-rb-2.3.0.0.ebuild | 36 | ||||
-rw-r--r-- | dev-ruby/duktape-rb/metadata.xml | 11 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/duktape-rb/Manifest b/dev-ruby/duktape-rb/Manifest new file mode 100644 index 000000000000..a78c853e0a81 --- /dev/null +++ b/dev-ruby/duktape-rb/Manifest @@ -0,0 +1 @@ +DIST duktape-rb-2.3.0.0.tar.gz 1356464 BLAKE2B be7362ddbe6860bcb12c8f8909f66ae525585e628f7be2317b07eb07960f8f25e503dbc89e713e57144cc8108751ac856aa73a16cbd58502e928acf9e116247c SHA512 af4fd45387c3f40cd24bf3c879ef4e0d7efd43ca24f0cb866bf869db7fa9f4add9b60122c0dcfbce5491cdd7479b1414637fa1054078216b9f57fa426feb0154 diff --git a/dev-ruby/duktape-rb/duktape-rb-2.3.0.0.ebuild b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0.ebuild new file mode 100644 index 000000000000..36f25d8917dc --- /dev/null +++ b/dev-ruby/duktape-rb/duktape-rb-2.3.0.0.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" + +# Tests require dev-ruby/sdoc, which is currently ~arch-only and fairly limited +# in the number of supported keywords. +RESTRICT="test" + +RDEPEND+="dev-lang/duktape" + +ruby_add_bdepend "dev-ruby/rake-compiler" + +RUBY_S=${MY_P} + +each_ruby_compile() { + ${RUBY} -S rake compile +} diff --git a/dev-ruby/duktape-rb/metadata.xml b/dev-ruby/duktape-rb/metadata.xml new file mode 100644 index 000000000000..6d364fd717af --- /dev/null +++ b/dev-ruby/duktape-rb/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <upstream> + <remote-id type="github">judofyr/duktape.rb</remote-id> + </upstream> +</pkgmetadata> |