summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/execjs/Manifest1
-rw-r--r--dev-ruby/execjs/execjs-2.9.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/execjs/Manifest b/dev-ruby/execjs/Manifest
index f96daaf98ec9..0940eed56aa8 100644
--- a/dev-ruby/execjs/Manifest
+++ b/dev-ruby/execjs/Manifest
@@ -1,2 +1,3 @@
DIST execjs-2.8.1.tar.gz 425838 BLAKE2B e81c2cfb803e3ffcfb9fbde3ce907147e577f81563500dd74a6a6aa560f13a0318246530a4e54c7139f86c8fe76fe79c9a2961c3b0d685e65c5e7d9d395ba82d SHA512 ec808d3feccf1cfa2500f4ce17a497a31e5886cdd7482c56fdc0cc952aa8967ca50f09c33eb83545713e04aa73fbb8a201459cdb72647e8f8c291f8846f3f230
DIST execjs-2.9.0.tar.gz 427260 BLAKE2B 0e9323581ab51e9abb4089d018018044b4277fe992206052e733decd27a1fab59465485e126e6fff9f75f3f37bd377d9e18b69a0d52a5b0d0ffebde50a3b02de SHA512 cce6b64d29a8b586fb74308707e659229cd18b2d1745d42202d02fb432d10669f8783ef8e8a16c21252061bcc84974d1a39d40bfb6064028fb55ec09fd47cd9a
+DIST execjs-2.9.1.tar.gz 427442 BLAKE2B 5fbead63cfe02d3ba8c1b34fc3ff35a6971c0070f297aef20ab830ebe90e13939ef683baa21cfa921985ced7389db8c4a3fc87a86b180e5c372166685ddb9d6b SHA512 87d2c7f81c47e15c33c6752c6985823fe953d02c7bab70af8d4cda7e9e390ae8972d0077b4f955a16ac9eb9b00d3c86fe76cbc8b8ac3a67ddc9eb2e9aef182bc
diff --git a/dev-ruby/execjs/execjs-2.9.1.ebuild b/dev-ruby/execjs/execjs-2.9.1.ebuild
new file mode 100644
index 000000000000..ad23c4d39afd
--- /dev/null
+++ b/dev-ruby/execjs/execjs-2.9.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+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 ~riscv ~sparc ~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
+}