summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rubocop-ast')
-rw-r--r--dev-ruby/rubocop-ast/Manifest1
-rw-r--r--dev-ruby/rubocop-ast/rubocop-ast-1.10.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rubocop-ast/Manifest b/dev-ruby/rubocop-ast/Manifest
index 193c8863..d472f04f 100644
--- a/dev-ruby/rubocop-ast/Manifest
+++ b/dev-ruby/rubocop-ast/Manifest
@@ -1,4 +1,5 @@
DIST rubocop-ast-0.8.0.tar.gz 119528 BLAKE2B ce7afd0d9365dea365244f727bec95fd6faf4d6167e13ac0c4f4048b095c64d5d62335709e23bd92c46a59e1ef422fc3488050f94548ab3dfa96d85971ced5ce SHA512 609b9d0be3826254f9beeec554641c922ea75977504cf5a67da2002a1b0ac842f3b17f955eae4cd44184d749bb02e58f180c1de48753d9e57fa86ba0aabc4426
+DIST rubocop-ast-1.10.0.tar.gz 125607 BLAKE2B 969638a1fe1ac7ea0a5cf9a1f452eaeb07734872d12f3332b45751f09e73581b77e5ac6ac2679d2a5e9728cfbef27e454a488a40e3db313c84559c34f6dbeae7 SHA512 56438b6cbb47750f666c6bb11bf2f6d1f3c131c573d01cd62bbec1739f39a9e312d3092a35c08ce5618e4851e5a862a21b6a32d9a7d2e4d7d74edc414b1fcd29
DIST rubocop-ast-1.7.0.tar.gz 123594 BLAKE2B 9893c95af69ff074aeceb7106f90ea5d8c75690c2bbd04b02347e909dd0c2344586a9e875e4c7980d89f579d858af0905bf0f50459cbf913017f6e6d710d5d12 SHA512 61f3187d53cef5ba9762db6e40bd8c8c161d08320529f3e46e2218c6141aa3e03b16f7892bc7994e5824f2e58f50cba2328e39c52feb7505db5f82a47f36b48f
DIST rubocop-ast-1.8.0.tar.gz 123954 BLAKE2B 2f938d2b75c869cee1a95305817f955d303e157beeca33b6b0fc685ebf092ff0969d3216b0fdd7a642da5fa511a1f7ce9dc0725342c755e12a32c6fb8086fcab SHA512 bd48b48768905b6db3732c61790665c8c39105c370bf2a4cceaad43e1ff143fe33df5c06bb3ebb6368a851582bf2fdf4f59c38441d679bb50cb7667315e53795
DIST rubocop-ast-1.9.0.tar.gz 124037 BLAKE2B ae16fc52e3b7d52bc09b65ec155794e76c1705a79ef3f5e687e67fbf43fb5407d8238b70d95c681923e3063dd0c83367fe65dc8d39d67101edaf2991e7acf90a SHA512 461338ab9ac86f0fc423bfb1ed0d030862613a15ca8415a917a1a790ef2b44335e7cb2856d3a623cc2eb27ca88f53f7cc0c6ce9c67e624b2a85297f121c4d887
diff --git a/dev-ruby/rubocop-ast/rubocop-ast-1.10.0.ebuild b/dev-ruby/rubocop-ast/rubocop-ast-1.10.0.ebuild
new file mode 100644
index 00000000..bfd27110
--- /dev/null
+++ b/dev-ruby/rubocop-ast/rubocop-ast-1.10.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 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.0.1.1
+"
+
+ruby_add_bdepend "dev-ruby/bundler dev-ruby/oedipus_lex 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
+}