summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-05-20 06:57:35 +0200
committerHans de Graaff <graaff@gentoo.org>2016-05-20 06:57:35 +0200
commite6fb07ad6e5f1fafb4a2950f36eff39763417f0d (patch)
treecae20fb2a84f0481a87926aa6f44c5e498c3f2b2 /dev-ruby/execjs
parentapp-emulation/xen-tools: revbump to 4.6.1-r3 (diff)
downloadgentoo-e6fb07ad6e5f1fafb4a2950f36eff39763417f0d.tar.gz
gentoo-e6fb07ad6e5f1fafb4a2950f36eff39763417f0d.tar.bz2
gentoo-e6fb07ad6e5f1fafb4a2950f36eff39763417f0d.zip
dev-ruby/execjs: add 2.7.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/execjs')
-rw-r--r--dev-ruby/execjs/Manifest1
-rw-r--r--dev-ruby/execjs/execjs-2.7.0.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/execjs/Manifest b/dev-ruby/execjs/Manifest
index cd39e4cd2e5d..10acf1879958 100644
--- a/dev-ruby/execjs/Manifest
+++ b/dev-ruby/execjs/Manifest
@@ -1,2 +1,3 @@
DIST execjs-1.4.0-git.tgz 14300 SHA256 76f10e338cfc0e79cb25110db97d6813f6dcce035daa19f66101188607069cfb SHA512 ed41db6f1c95be7bf5b379370c2f06894a0a233aaceeadf45172c0cfa1ab84f4eac7cb91608d02888c35f1dc9355f1fce60a5779535db58066ff1dacab6e0be8 WHIRLPOOL 226db6a8598735ae75ecfb11b2a03f61a75c6f191fe2d3abee3b57c8d76a284d160e3cb7359499ce4af8f9affc88b8d6b8c1499114e8fc28f55271e8266dbfc6
DIST execjs-2.6.0.tar.gz 423437 SHA256 6c6704e7e31a7180a6105e3b98f6f7b279c99fb804ce216eb42f8df5a6da731c SHA512 9740feceb3f9eae59aaa3697bd8f2fa1bb606cac4868b107bea4b3e9a7fe7fcdcfa387d852f0c267635163fc70eaba60a0ba241421434b26e1f94421b80ad468 WHIRLPOOL 5c3d50e6aa537916da17642d04b4c8c94fff9cc7d573afeece9d78c6f3aa4445385a75cfd5f2a1c34b6ac8332a94294c6f20c584230d72278a778a28c228a3fe
+DIST execjs-2.7.0.tar.gz 425361 SHA256 93454e85d5b9eab91c5f0545ff1e970a40f41be55fd82afe2d40e8f94c8a2b40 SHA512 9627f466e8a363404c940b29227d08a8ad067b53383989a3d8f4f902e8c050c0e81facdbdafbb660c41f7c8dc2fbdd3bd357ca708e612af4d223b5412c6c1fb7 WHIRLPOOL 6c085e31e2a027edf9dce9f91b5b0a64d125060211d5ad1ff8957b1d5d7290ddc5aece8a042daf8d17ea7a1c36567747f91e08299acfe727f2950fac91ca1e5d
diff --git a/dev-ruby/execjs/execjs-2.7.0.ebuild b/dev-ruby/execjs/execjs-2.7.0.ebuild
new file mode 100644
index 000000000000..7ee438c32122
--- /dev/null
+++ b/dev-ruby/execjs/execjs-2.7.0.ebuild
@@ -0,0 +1,41 @@
+# 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_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+inherit ruby-fakegem
+
+DESCRIPTION="ExecJS lets you run JavaScript code from Ruby"
+HOMEPAGE="https://github.com/rails/execjs"
+SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos"
+
+IUSE="test"
+
+# execjs supports various javascript runtimes. They are listed in order
+# as per the documentation. For now only include the ones already in the
+# tree.
+
+# therubyracer, therubyrhino, node.js, spidermonkey (deprecated)
+
+# spidermonkey doesn't pass the test suite:
+# https://github.com/sstephenson/execjs/issues/62
+
+RDEPEND+=" || ( net-libs/nodejs )"
+
+all_ruby_prepare() {
+ sed -i -e "/bundler/d" Rakefile || die
+ # Avoid test requiring network connectivity. We could potentially
+ # substitute dev-ruby/coffee-script-source for this.
+ sed -i -e '/test_coffeescript/,/end/ s:^:#:' test/test_execjs.rb || die
+}