diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-09 08:15:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-09 08:15:38 +0100 |
commit | 21616d4521c47fc859035ab3939842cddd56e374 (patch) | |
tree | bbe695483012ac54498cd55c2d9c03c67fef36d0 /dev-ruby/parser/parser-3.1.2.1.ebuild | |
parent | 3fd9d065ab109700e92fc1cea2a6519a39a5b007 (diff) |
gentoo auto-resync : 09:08:2022 - 08:15:37
Diffstat (limited to 'dev-ruby/parser/parser-3.1.2.1.ebuild')
-rw-r--r-- | dev-ruby/parser/parser-3.1.2.1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/parser/parser-3.1.2.1.ebuild b/dev-ruby/parser/parser-3.1.2.1.ebuild new file mode 100644 index 000000000000..878b2025cd62 --- /dev/null +++ b/dev-ruby/parser/parser-3.1.2.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_TASK_TEST="test" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_VERSION="${PV/_pre/.pre.}" + +RUBY_FAKEGEM_GEMSPEC="parser.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A production-ready Ruby parser written in pure Ruby" +HOMEPAGE="https://github.com/whitequark/parser" +SRC_URI="https://github.com/whitequark/parser/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +DEPEND+=" =dev-util/ragel-6*" + +ruby_add_bdepend " + test? ( + dev-ruby/minitest:5 + dev-ruby/racc ) + dev-ruby/cliver +" +ruby_add_rdepend "=dev-ruby/ast-2.4* >=dev-ruby/ast-2.4.1" + +all_ruby_prepare() { + sed -i -e "/[Bb]undler/d" Rakefile || die + sed -i -e '/simplecov/ s:^:#:' test/helper.rb || die +} + +each_ruby_compile() { + ${RUBY} -S rake generate || die +} |