summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-05-15 07:06:16 +0200
committerHans de Graaff <graaff@gentoo.org>2021-05-15 07:06:16 +0200
commit9da47d8aa08613b51cb69a894df3a008503f49d6 (patch)
treee4818a9cbd2ceceee52211637138e3689446ffbf /dev-ruby/execjs
parentnet-misc/curl: Stabilize 7.76.1 x86, #779535 (diff)
downloadgentoo-9da47d8aa08613b51cb69a894df3a008503f49d6.tar.gz
gentoo-9da47d8aa08613b51cb69a894df3a008503f49d6.tar.bz2
gentoo-9da47d8aa08613b51cb69a894df3a008503f49d6.zip
dev-ruby/execjs: add 2.8.1
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/execjs')
-rw-r--r--dev-ruby/execjs/Manifest1
-rw-r--r--dev-ruby/execjs/execjs-2.8.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/execjs/Manifest b/dev-ruby/execjs/Manifest
index ec2daeff2497..08e129ee164c 100644
--- a/dev-ruby/execjs/Manifest
+++ b/dev-ruby/execjs/Manifest
@@ -1,2 +1,3 @@
DIST execjs-2.7.0.tar.gz 425361 BLAKE2B 8dd3bb5557a6993667abfa6c424cbea6377c1ea7b3928b9b60a6ba084f1df8a109d10d1a616c9d302e1b98a2031ece9e710d7dd933791cbfb3eaa48e45b9a595 SHA512 9627f466e8a363404c940b29227d08a8ad067b53383989a3d8f4f902e8c050c0e81facdbdafbb660c41f7c8dc2fbdd3bd357ca708e612af4d223b5412c6c1fb7
DIST execjs-2.8.0.tar.gz 425756 BLAKE2B dcf5943a4244597da4c25ebfbd5b80eeaecce622d51b3515bf26ec34f63ae92ec4ab96200dbe79b30370914de94fd8cb2e7205df640fd6e572f021d163c0c26d SHA512 3c1b8f5666a18b00e9e09e2206f87fded26482b032405acc093e9d8da20873a620392eccdecea4c68e6d46b958d2ae18a6658faf90a7090b3e704fa7db3e0595
+DIST execjs-2.8.1.tar.gz 425838 BLAKE2B e81c2cfb803e3ffcfb9fbde3ce907147e577f81563500dd74a6a6aa560f13a0318246530a4e54c7139f86c8fe76fe79c9a2961c3b0d685e65c5e7d9d395ba82d SHA512 ec808d3feccf1cfa2500f4ce17a497a31e5886cdd7482c56fdc0cc952aa8967ca50f09c33eb83545713e04aa73fbb8a201459cdb72647e8f8c291f8846f3f230
diff --git a/dev-ruby/execjs/execjs-2.8.1.ebuild b/dev-ruby/execjs/execjs-2.8.1.ebuild
new file mode 100644
index 000000000000..c90bb5a0f859
--- /dev/null
+++ b/dev-ruby/execjs/execjs-2.8.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+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 ~arm64 ~ppc ~ppc64 ~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.
+
+RDEPEND+=" || ( dev-ruby/duktape-rb 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
+}