mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
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>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DIST duktape-rb-2.3.0.0.tar.gz 1356464 BLAKE2B be7362ddbe6860bcb12c8f8909f66ae525585e628f7be2317b07eb07960f8f25e503dbc89e713e57144cc8108751ac856aa73a16cbd58502e928acf9e116247c SHA512 af4fd45387c3f40cd24bf3c879ef4e0d7efd43ca24f0cb866bf869db7fa9f4add9b60122c0dcfbce5491cdd7479b1414637fa1054078216b9f57fa426feb0154
|
||||
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user