summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-10-13 06:18:54 +0200
committerHans de Graaff <graaff@gentoo.org>2020-10-13 06:18:54 +0200
commitfde500a14a9f2530d191af1dd53265b494965019 (patch)
treee6ec6885b6dfe4e03bd5925f596d7ef7e77d9185 /dev-ruby/parser
parentdev-ruby/ruby-macho: add 2.3.0 (diff)
downloadgentoo-fde500a14a9f2530d191af1dd53265b494965019.tar.gz
gentoo-fde500a14a9f2530d191af1dd53265b494965019.tar.bz2
gentoo-fde500a14a9f2530d191af1dd53265b494965019.zip
dev-ruby/parser: generate parser files
These are generated as part of running tests but should also be generated with FEATURES=-test. Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/parser')
-rw-r--r--dev-ruby/parser/parser-2.7.2.0-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/parser/parser-2.7.2.0-r1.ebuild b/dev-ruby/parser/parser-2.7.2.0-r1.ebuild
new file mode 100644
index 000000000000..5c1ecf07603c
--- /dev/null
+++ b/dev-ruby/parser/parser-2.7.2.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+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"
+IUSE=""
+
+DEPEND+="test? ( =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
+}