diff options
Diffstat (limited to 'dev-ruby/solargraph/solargraph-0.50.0.ebuild')
-rw-r--r-- | dev-ruby/solargraph/solargraph-0.50.0.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-ruby/solargraph/solargraph-0.50.0.ebuild b/dev-ruby/solargraph/solargraph-0.50.0.ebuild new file mode 100644 index 00000000..70963d67 --- /dev/null +++ b/dev-ruby/solargraph/solargraph-0.50.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_GEMSPEC="solargraph.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="IDE tools for code completion, inline documentation, and static analysis" +HOMEPAGE="https://solargraph.org/" +SRC_URI="https://github.com/castwide/solargraph/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="0" +IUSE="doc" + +ruby_add_rdepend " + >=dev-ruby/backport-1.2:0 + dev-ruby/benchmark + dev-ruby/bundler:2 + >=dev-ruby/diff-lcs-1.4:0 + dev-ruby/e2mmap + >=dev-ruby/jaro_winkler-1.5:1 + >=dev-ruby/kramdown-2.3:2 + >=dev-ruby/kramdown-parser-gfm-1.1:1 + >=dev-ruby/parser-3.0:0 + =dev-ruby/rbs-3* + =dev-ruby/reverse_markdown-2* + >=dev-ruby/rubocop-1.38 + dev-ruby/thor:1 + dev-ruby/tilt:2 + >=dev-ruby/yard-0.9.24:0 +" + +# public_suffix is listed as a development dependency but not actually used anywhere. +ruby_add_bdepend "test? ( + >=dev-ruby/webmock-3.6:3 +)" + +PATCHES=( + "${FILESDIR}/solargraph-0.49.0-rbs-3.patch" + "${FILESDIR}/solargraph-0.49.0-rbs-stdlib-spec.patch" +) + +all_ruby_prepare() { + sed -i -e '/pry/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/bundler/ s:^:#:' \ + -e '/SIMPLECOV/,/end/ s:^:#:' \ + -i spec/spec_helper.rb || die + rm -f spec/api_map/bundler_methods_spec.rb spec/{documentor,yard_map}_spec.rb|| die + + sed -e '/ignores undefined method calls from external sources/askip "Does not work with Gentoo installed package"' \ + -i spec/type_checker/levels/strict_spec.rb || die +} + +each_ruby_test() { + each_fakegem_test + + # Remove cached gem installs in homedir since they will cause the + # next run to fail. + rm -rf "${HOME}/.local/share/gem" || die +} |