summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/rubocop-ast/Manifest1
-rw-r--r--dev-ruby/rubocop-ast/rubocop-ast-1.18.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rubocop-ast/Manifest b/dev-ruby/rubocop-ast/Manifest
index d56c3e0c..8daebe9c 100644
--- a/dev-ruby/rubocop-ast/Manifest
+++ b/dev-ruby/rubocop-ast/Manifest
@@ -2,3 +2,4 @@ DIST rubocop-ast-1.13.0.tar.gz 126002 BLAKE2B ed5303cfbb154ccb69477225017bb82ff5
DIST rubocop-ast-1.15.2.tar.gz 126816 BLAKE2B 2e2249da776d854a3ba7b400689fa562f97dca11453ef357d3c890dcf63fb08fa1a647cde02541574a6405c70e31d7050b4a91ad278737f8d16e16f8797956c7 SHA512 4e87a3eb3f548c7145d1ded9840ed0e7e8b37c788ce9f438e88ec648588df95c46b95f16e480065901df5748c995b6b656ba471ad3636d6d5eb848f9780f1a0f
DIST rubocop-ast-1.16.0.tar.gz 126884 BLAKE2B c1dcf4332410a4def130aa2e1c722712d3946ce389cba8dd996ca66245f230cdde4e96f646b1401f7475f005a412030429c4cfbd83b9ba637816d2e4a6c0772e SHA512 93d16d3dd4e3d959f5507395b142e20b15b7dd74f5bd9f0721e9cf954f2c5132644fe68f56ac477fb35d200707d1590c60b9b2d558cfff9c5e7c8ab8789cfe2d
DIST rubocop-ast-1.17.0.tar.gz 127005 BLAKE2B 6b1f76123a519241b9b2661b8c9516d63b649c1758117b7eecfaca46818703c09ccaa64aaa725628f0b274628f11df41ad1894fbd2a1747953ff6a99773600ef SHA512 50b812dd7409d766c4f0386ee0dc376cb3fb521de900efe1adf85c58129844e9ea6a56d0fcae6600befa0181c7bc82c93e7900855d760d93e540136316ad20b9
+DIST rubocop-ast-1.18.0.tar.gz 127187 BLAKE2B 86670ce4f83a33a4ce0b29969004c6d571c83ec1f50bd69d9fec014d8f06d63bfc555ec9365fd5f9f3ea8ba37622206f3021b9b84c447ec246fd5c1f9df0acb0 SHA512 4ed85abd924826ccc2f06a14b09b94f345b3125b495c9853d551277b3763fb482db680e91cb305e29107b1252251b3a622a7bcd4a312f5a9739738c82e945808
diff --git a/dev-ruby/rubocop-ast/rubocop-ast-1.18.0.ebuild b/dev-ruby/rubocop-ast/rubocop-ast-1.18.0.ebuild
new file mode 100644
index 00000000..7f4cb3f1
--- /dev/null
+++ b/dev-ruby/rubocop-ast/rubocop-ast-1.18.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_GEMSPEC="rubocop-ast.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="RuboCop's Node and NodePattern classes"
+HOMEPAGE="https://github.com/rubocop-hq/rubocop-ast"
+SRC_URI="https://github.com/rubocop-hq/rubocop-ast/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/parser-3.1.1.0
+"
+
+ruby_add_bdepend "dev-ruby/bundler >=dev-ruby/oedipus_lex-2.6.0 dev-ruby/racc dev-ruby/rspec:3"
+
+all_ruby_prepare() {
+ sed -i -e '3irequire "uri" ; gem "parser"' spec/spec_helper.rb || die
+ sed -i -e '1irequire "oedipus_lex"' tasks/compile.rake || die
+
+ # Avoid unneeded dependencies
+ rm -f tasks/cut_release.rake || die
+ sed -e "/\(gemspec\|bump\|pry\|'rubocop\|simplecov\)/ s:^:#:" \
+ -e '/rake/ s/~> 13.0/>= 12/' \
+ -i Gemfile || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s:bundle exec:${RUBY} -S:" tasks/compile.rake || die
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake generate || die
+}