Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/jsobfu/
Date: Tue, 03 May 2022 04:30:10
Message-Id: 1651551869.701c2c051242b4606098a3ad41064bc505b26932.graaff@gentoo
1 commit: 701c2c051242b4606098a3ad41064bc505b26932
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 04:24:23 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 04:24:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=701c2c05
7
8 dev-ruby/jsobfu: update EAPI 6 -> 8, add ruby30, ruby31
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild b/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..3b7f60cfb522
18 --- /dev/null
19 +++ b/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild
20 @@ -0,0 +1,36 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +USE_RUBY="ruby26 ruby27 ruby30 ruby31"
26 +
27 +RUBY_FAKEGEM_BINWRAP=""
28 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
29 +
30 +inherit ruby-fakegem
31 +
32 +DESCRIPTION="A Javascript code obfuscator"
33 +HOMEPAGE="https://github.com/rapid7/jsobfu"
34 +
35 +LICENSE="BSD"
36 +#rapid7 gems are slotted so we can have multiple versions installed at once to support multiple versions of metasploit
37 +SLOT="${PV}"
38 +KEYWORDS="~amd64 ~arm ~x86"
39 +IUSE=""
40 +
41 +ruby_add_rdepend "!dev-ruby/jsobfu:0
42 + >=dev-ruby/rkelly-remix-0.0.6:0"
43 +
44 +ruby_add_bdepend "test? ( dev-ruby/execjs )"
45 +
46 +all_ruby_prepare() {
47 + sed -i -e '/simplecov/ s:^:#:' \
48 + -e '/config.\(color\|tty\|formatter\)/ s:^:#:' \
49 + spec/spec_helper.rb || die
50 +}
51 +
52 +all_ruby_install() {
53 + all_fakegem_install
54 +
55 + ruby_fakegem_binwrapper jsobfu jsobfu-${PV}
56 +}