From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 840EC138359 for ; Sat, 21 Nov 2020 08:53:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1EC1E07AE; Sat, 21 Nov 2020 08:53:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC151E07AE for ; Sat, 21 Nov 2020 08:53:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6655340DE2 for ; Sat, 21 Nov 2020 08:53:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB71444C for ; Sat, 21 Nov 2020 08:53:06 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1605948769.c4ca787fbe41ec1e4489704931e1912f45194a68.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/execjs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/execjs/execjs-2.7.0-r1.ebuild X-VCS-Directories: dev-ruby/execjs/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: c4ca787fbe41ec1e4489704931e1912f45194a68 X-VCS-Branch: master Date: Sat, 21 Nov 2020 08:53:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 14b6901f-0978-481d-9f8b-5ddc316668f1 X-Archives-Hash: f4ccfacb5784d65e5f89c301f4b5ea13 commit: c4ca787fbe41ec1e4489704931e1912f45194a68 Author: Hans de Graaff gentoo org> AuthorDate: Sat Nov 21 08:52:49 2020 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Nov 21 08:52:49 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4ca787f dev-ruby/execjs: EAPI 7, add duktape-rb Closes: https://bugs.gentoo.org/754921 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/execjs/execjs-2.7.0-r1.ebuild | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/dev-ruby/execjs/execjs-2.7.0-r1.ebuild b/dev-ruby/execjs/execjs-2.7.0-r1.ebuild new file mode 100644 index 00000000000..b49c7109de2 --- /dev/null +++ b/dev-ruby/execjs/execjs-2.7.0-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +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 +}