summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/rubocop-ast/Manifest1
-rw-r--r--dev-ruby/rubocop-ast/rubocop-ast-1.35.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/rubocop-ast/Manifest b/dev-ruby/rubocop-ast/Manifest
index 417b5dbd..6ddbe18f 100644
--- a/dev-ruby/rubocop-ast/Manifest
+++ b/dev-ruby/rubocop-ast/Manifest
@@ -4,3 +4,4 @@ DIST rubocop-ast-1.33.0.tar.gz 135568 BLAKE2B fa402f51757c969955ab22acede168ae67
DIST rubocop-ast-1.33.1.tar.gz 135647 BLAKE2B c8d63df8acc3fa81acc1a2244a5cf0ffab516923441ef00860bfd6abd1248529e3d8065132b93bf957baf1d2043599257370093b0dc64422bc7b03aac2a335e9 SHA512 ea44bd6f02d30bcffa9d473fc3f8bd3a181a719b39ed3aace7e7d39afe36a516f9187c83c33280efdf48a52a7c464ec2f579ce1cf63536c4634c7817e61de257
DIST rubocop-ast-1.34.0.tar.gz 135727 BLAKE2B e6c7208ed267bd4566782caa85a8a90cf657e8b58676015c46862e2f38f03cad1796dd859f61518ac581794d88f5138cae568699776eec712f95820fcfa50dc0 SHA512 dd242e9263793f3e97df37a2eec05ffe4a20049a1869d97753af5b56c484a006e630b4f132c50d84e9a37caee1c87315797fc437a019fc4fc116eace30405bcb
DIST rubocop-ast-1.34.1.tar.gz 136588 BLAKE2B a1c42c963fe479b696c84b20a5fa3d369f2eba77cc44b08e01d85de1dbcb2dcbf9cfce2ba836fafc6283b120702ceef9e8366a60bb03fa6d07b8d3a69e390076 SHA512 6c7d10813fc59cc32d9029cbfa6bba39d8ec7b1796f1591580633af1ef51dd8f600081c22e4aa277104974df02d790511fd08073421394ae3db22046c08abaa6
+DIST rubocop-ast-1.35.0.tar.gz 137528 BLAKE2B b8259b580e898689ae4c50cadc36d86aa2f7e489f806958ec3e84d51335c15483aac2ec503bd5b0a8982250bac413e8614971b6159721d02f85929d3ddac70f4 SHA512 624a541fb91f39813ae1e2173fd9685af4661a8f4d943c7242d318a30e2961e0cf4d3bea1b16a5909956b2f7e81b4326c2f1dfb3088db4880a394b4f206272ce
diff --git a/dev-ruby/rubocop-ast/rubocop-ast-1.35.0.ebuild b/dev-ruby/rubocop-ast/rubocop-ast-1.35.0.ebuild
new file mode 100644
index 00000000..e4e19add
--- /dev/null
+++ b/dev-ruby/rubocop-ast/rubocop-ast-1.35.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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/rubocop-ast"
+SRC_URI="https://github.com/rubocop/rubocop-ast/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64"
+
+ruby_add_rdepend "
+ >=dev-ruby/parser-3.3.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 -e 's/git ls-files/find/' -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ 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/' \
+ -e '/prism/ s:^:#:' \
+ -i Gemfile || die
+
+ rm -f tasks/check_commit.rake || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s:bundle exec:${RUBY} -S:" tasks/compile.rake || die
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake generate || die
+}