summaryrefslogtreecommitdiff
path: root/dev-ruby/gherkin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/gherkin
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/gherkin')
-rw-r--r--dev-ruby/gherkin/Manifest13
-rw-r--r--dev-ruby/gherkin/files/gherkin-2.12.0-ruby21.patch42
-rw-r--r--dev-ruby/gherkin/files/gherkin-2.12.2-ruby21.patch44
-rw-r--r--dev-ruby/gherkin/gherkin-2.12.0-r3.ebuild95
-rw-r--r--dev-ruby/gherkin/gherkin-2.12.2.ebuild93
-rw-r--r--dev-ruby/gherkin/gherkin-3.2.0-r1.ebuild24
-rw-r--r--dev-ruby/gherkin/gherkin-4.1.3.ebuild24
-rw-r--r--dev-ruby/gherkin/metadata.xml11
8 files changed, 346 insertions, 0 deletions
diff --git a/dev-ruby/gherkin/Manifest b/dev-ruby/gherkin/Manifest
new file mode 100644
index 000000000000..b9801034df5d
--- /dev/null
+++ b/dev-ruby/gherkin/Manifest
@@ -0,0 +1,13 @@
+AUX gherkin-2.12.0-ruby21.patch 1451 SHA256 da20309315bc7c8cc39aaead2191faeb4ccaffb29af560709b0bef04c6b34bff SHA512 57d333b3be301c4e6ad3d14f24ec80bbeea373c5d7199adfa1554c6c221335ae1783e28af325f5757f31884140c278443e045befa15f65a91774e967ca8c3a23 WHIRLPOOL a3cbf2d3e66940a0eb7db5c67c738d99679a0d435406e011195851d5bf6e649734b0ba532e679c0fdf00ea840447294451498967c6e7d9ea913ae8738857b567
+AUX gherkin-2.12.2-ruby21.patch 1485 SHA256 adc82d2ca2ba04e8bbfd26d820df9d0d2052b968109643d8f2871c24fc1f676f SHA512 5d5efcd50727072918c481a972546fc11b04685eb0ce4194ece9316bf100a004d24960d03531da7ee3ccbd7d7e56ea74e93a02400b1302c855bdcfc47b541d0c WHIRLPOOL 1d0830f10618b08945b1fb0ce66ceacba7b2e7d5e7eb4de4816312ea816a94b4d52b3df2e2bf236f15273dc1da26536c6367116cdfc36fa60c658536948e3bc7
+DIST gherkin-2.12.0-git.tgz 605964 SHA256 09206d66e437bfa2cb917a251899e3e95479c47d713a2b8de3e7dcbdd9982bfa SHA512 e86c2299bb3b41845bf8a3119b65ff855023510173b04c1e08e1105c03523e0e89ec45db4c7034e85fc20b7a9e1ce5a791aaf3f4793d44c0aa782ffd9fcee83a WHIRLPOOL dcfc5b5a0dcad7e401c2e0afb41e53593d095a44e97df8eadffa634b155ccb5a979f3e719e57c32d18afac0be49d31021276abc20010a6a9259ca041c155a390
+DIST gherkin-2.12.2-git.tgz 1764938 SHA256 139739eae42c7da925c816c859a41dcf539a361040ffb64c174e90e3fd9425b9 SHA512 1030bcaf31791c7031f22b8e4c5d94ddbddf012b8686d06a7598fde99a28f8a1fda45dc66dbdefdb825a045730b077a10ca1134835630710551e20364886ce51 WHIRLPOOL b5bdcff4a1e8e8ff32c202cac4e33ba9f07dac09ad723b9b6ef202dfa6a86413aff4e5fe24c69962edccf24158c9c85e8d32fc75a92ee0243943dff04327fe7c
+DIST gherkin-3.2.0.gem 30208 SHA256 712404a266c65f6679afcf09978c048a2eee955010de276538f6078f7a8ead14 SHA512 28bccdb94e80945d2f435d15bd0c83355fc59fab7ba8e76f689227015f4c73f6525ae45391536f6cd5db257b74f8e4b1392f83d27dc17798a19afcb3e186a705 WHIRLPOOL 4ed7547b57b73233afd1cfcae18f60cd832d984b1358fda70971cc5acb251010c148b3a5f777ef3f91523aff660398653af8aceedf7362f815a64c822b64cb7f
+DIST gherkin-4.1.3.gem 350208 SHA256 e9bc29c0352dc3a2054b1bf9c6f76fdafba69062bbf784974ccd63e12aca28b4 SHA512 7c113172ddf38ccf7e49eaac19355f3cb991f69d7499dba9189f375b75d3614f349fc6374e584a92c1223b0708cc8944859b4b38e28d79779a5091fa0c775e6e WHIRLPOOL adcd36c4991b7f548481089c927a8cca24092f392b4403fc2ec7414460a5786844801736290d83a1d7bf75a251926786e9e1f4d8ee9908906a1ccc57d28e43c1
+EBUILD gherkin-2.12.0-r3.ebuild 2700 SHA256 d570370e3d450c1831e94f25bf01792eb6fb4064b46879279dd91a43c613662e SHA512 a3571be17c8f17a1b9aa710890b00e0126e0fe224b1fe3e7d02cbe11e9b55ee64f6421a02a1c326e32710feb29f3bb4bd0380a4f24b83c6f7e6d2f1a8ee03ec7 WHIRLPOOL 9cdebb41309c8a79e60882cbfb9ba5a5a3df3d666ccfc5008c59d2b00b195cf014f0e3882c9ab830729ab290002faa3b2c0a220b4d7b3c1ea819388a527457e3
+EBUILD gherkin-2.12.2.ebuild 2624 SHA256 f4f27239e0b428b9518efdf22dfd70892140edb417222588fc225c66ef4bbe31 SHA512 c6a085a7a201b2d58da53f3678b6b3efc47921ea2e77d272910cc06e56479dcd7380dede251f0eaaf1ac66a5cd335e28b614d3f1d2a7f97d55f66e1d1bed1b18 WHIRLPOOL c6903de289395a89507804e65f7e3c476a57562f26c4e3f6aeac9954720f1747e3cfd7478166e147c65933267d5d3f22dbe346ecc5484ecabc39ab1f6dfe7881
+EBUILD gherkin-3.2.0-r1.ebuild 558 SHA256 f1549a8a2c5d0134345efbea93e9ef85d033aba471c480824a23c7d7092fc287 SHA512 bb271af131bb7ce5ba01eeeaf6c88160976447acb4c98a458c3053da94ff36f4f83f38cd0027dbce4dfdf88f3925104d45b00a2d792d45656d88db343ba820b1 WHIRLPOOL 0112f8109360cb7d78211973203da5b1ff5c0fc737874beeb542cfde72301e76cc22f84612b653de1867c3c8ad3bb988acafdbce72df6e350f75ed648daa1635
+EBUILD gherkin-4.1.3.ebuild 577 SHA256 e162c45585e0f865c7899b8ec7b88e0607e33b9099b835869450a02cbdc79b96 SHA512 6c4a4b13489c611408b8a94adc1dd1e3fdd7120319c32209d2f393a40e9b06c39510263a6e738d79a874501babc806d8c4fd30ea4ed243c4e577822681832757 WHIRLPOOL 88d5fe8760460ba2148a1b15056476da0a70c18552e8962eb3f7904fee9bc1f7a82b45ef1abc26f2e5569e69e55771314be1d42a6fdfd552e583d0b937bfe930
+MISC ChangeLog 4517 SHA256 7b57c7705c790527feb8211a61136f1ffc30d71c8154ca9e940d0189b04e14f2 SHA512 b5699fca6f0df2e52a38477e1c518877e0c7cf9d705f81b10e8b5aa992fbf590f8be93a180bf544916922360663f2c0134397b5e49b65dea2224c4b91f6ff052 WHIRLPOOL 9db191bbcac64ebb4b2c0b86d2d2a7217bfaf57dcd0f5b9f7a8859d050963d14226ad716ea217433611dc6a7b6c648cb333a5d58847741e64fa065e9371a1c9d
+MISC ChangeLog-2015 12213 SHA256 95d3c0d4a5e3a2126889ca815ab2861c2e59507f6f3bc945308d132ad1867951 SHA512 2b3489f57ba309a77f25d7ce3bfd5cf1a22d4f4651dc8107d77b6d377514ec82f93ec97cd8bc5bcf2b8b9292e25c00ddca25ffdd2aefc6e381f0e2df66b12511 WHIRLPOOL ccc9fc3a2e9089b69e61e7fe37312887e87c1aaca222c8f1bd5acedc66ff6a474e071e3fa37fcb10687617039967bd0fbac8915e833af1a5e2039126425d36cf
+MISC metadata.xml 342 SHA256 5fc2a7a339b3a1e20182e3619f3500780adf1d7341137c3e07154c4d515683b0 SHA512 83d54811e863b8af9f5ba53f081e140d12af0d20ba5ae7273317fd42aea5a5a0fca8f742352794dacbddcdca932dc2ea60e1201f3d6429315210da99578f844e WHIRLPOOL 4d1c3b8867ffb814bd8b88bfaf60e8e803d25966d1fe0978992bfbc0bf9bc8eeaaa4f282405727a8a29d7d5c7441273d0d99844c7241da3f550c30531acbf90e
diff --git a/dev-ruby/gherkin/files/gherkin-2.12.0-ruby21.patch b/dev-ruby/gherkin/files/gherkin-2.12.0-ruby21.patch
new file mode 100644
index 000000000000..8931c5dce8e5
--- /dev/null
+++ b/dev-ruby/gherkin/files/gherkin-2.12.0-ruby21.patch
@@ -0,0 +1,42 @@
+commit 021309d273960bb5625f8072b8366eab7d077d25
+Author: Cédric Boutillier <boutil@debian.org>
+Date: Fri Apr 25 13:34:41 2014 +0200
+
+ change regexp matchin Ruby versions to support Ruby2.1
+
+diff --git a/lib/gherkin/formatter/pretty_formatter.rb b/lib/gherkin/formatter/pretty_formatter.rb
+index 28c8b54..ff13c70 100644
+--- a/lib/gherkin/formatter/pretty_formatter.rb
++++ b/lib/gherkin/formatter/pretty_formatter.rb
+@@ -199,7 +199,7 @@ module Gherkin
+ end
+ end
+
+- if(RUBY_VERSION =~ /^1\.9|2\.0/)
++ if(RUBY_VERSION =~ /^(1\.9|2\.)/)
+ START = /#{'^'.encode('UTF-8')}/
+ TRIPLE_QUOTES = /#{'"""'.encode('UTF-8')}/
+ else
+diff --git a/ragel/lexer.rb.rl.erb b/ragel/lexer.rb.rl.erb
+index 7fd85b4..4be053e 100644
+--- a/ragel/lexer.rb.rl.erb
++++ b/ragel/lexer.rb.rl.erb
+@@ -165,7 +165,7 @@ module Gherkin
+ utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
+ end
+
+- if (RUBY_VERSION =~ /^1\.9|2\.0/)
++ if (RUBY_VERSION =~ /^(1\.9|2\.)/)
+ def utf8_pack(array)
+ array.pack("c*").force_encoding("UTF-8")
+ end
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 72333a7..0f6e3ae 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -6,4 +6,4 @@ def silence_warnings(&block)
+-if RUBY_VERSION =~ /1\.9|2\.0/
++if RUBY_VERSION =~ /^(1\.9|2\.)/
+ Encoding.default_external = Encoding::UTF_8
+ Encoding.default_internal = Encoding::UTF_8
+ end
diff --git a/dev-ruby/gherkin/files/gherkin-2.12.2-ruby21.patch b/dev-ruby/gherkin/files/gherkin-2.12.2-ruby21.patch
new file mode 100644
index 000000000000..f767b1f1a2e4
--- /dev/null
+++ b/dev-ruby/gherkin/files/gherkin-2.12.2-ruby21.patch
@@ -0,0 +1,44 @@
+commit 021309d273960bb5625f8072b8366eab7d077d25
+Author: Cédric Boutillier <boutil@debian.org>
+Date: Fri Apr 25 13:34:41 2014 +0200
+
+ change regexp matchin Ruby versions to support Ruby2.1
+
+diff --git a/lib/gherkin/formatter/pretty_formatter.rb b/lib/gherkin/formatter/pretty_formatter.rb
+index 28c8b54..ff13c70 100644
+--- a/lib/gherkin/formatter/pretty_formatter.rb
++++ b/lib/gherkin/formatter/pretty_formatter.rb
+@@ -199,7 +199,7 @@ module Gherkin
+ end
+ end
+
+- if(RUBY_VERSION =~ /^1\.9|2\.0/)
++ if(RUBY_VERSION =~ /^(1\.9|2\.)/)
+ START = /#{'^'.encode('UTF-8')}/
+ TRIPLE_QUOTES = /#{'"""'.encode('UTF-8')}/
+ else
+diff --git a/ragel/lexer.rb.rl.erb b/ragel/lexer.rb.rl.erb
+index 7fd85b4..4be053e 100644
+--- a/ragel/lexer.rb.rl.erb
++++ b/ragel/lexer.rb.rl.erb
+@@ -165,7 +165,7 @@ module Gherkin
+ utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
+ end
+
+- if (RUBY_VERSION =~ /^1\.9|2\.0/)
++ if (RUBY_VERSION =~ /^(1\.9|2\.)/)
+ def utf8_pack(array)
+ array.pack("c*").force_encoding("UTF-8")
+ end
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 72333a7..0f6e3ae 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -6,6 +6,6 @@ def silence_warnings(&block)
+-if RUBY_VERSION =~ /1\.9|2\.0/
++if RUBY_VERSION =~ /^(1\.9|2\.)/
+ silence_warnings do
+ Encoding.default_external = Encoding::UTF_8
+ Encoding.default_internal = Encoding::UTF_8
+ end
+ end
diff --git a/dev-ruby/gherkin/gherkin-2.12.0-r3.ebuild b/dev-ruby/gherkin/gherkin-2.12.0-r3.ebuild
new file mode 100644
index 000000000000..baecbaa0cd1b
--- /dev/null
+++ b/dev-ruby/gherkin/gherkin-2.12.0-r3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Fast Gherkin lexer and parser based on Ragel"
+HOMEPAGE="https://github.com/cucumber/gherkin"
+LICENSE="MIT"
+SRC_URI="https://github.com/cucumber/gherkin/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86"
+SLOT="0"
+IUSE="doc test"
+
+DEPEND="${DEPEND} =dev-util/ragel-6*"
+RDEPEND="${RDEPEND}"
+
+ruby_add_bdepend "
+ dev-ruby/rake-compiler
+ test? (
+ >=dev-ruby/builder-2.1.2
+ >=dev-util/cucumber-1.1.3
+ >=dev-ruby/rspec-2.6.0:2
+ >=dev-ruby/term-ansicolor-1.0.5
+ )
+ doc? ( >=dev-ruby/yard-0.8.3 )"
+
+ruby_add_rdepend ">=dev-ruby/multi_json-1.3"
+
+RUBY_PATCHES=( ${P}-ruby21.patch )
+
+all_ruby_prepare() {
+ # Remove Bundler-related things.
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
+ rm Gemfile || die
+
+ # Don't use compile dependencies to avoid building again for specs.
+ sed -i -e '/:compile/d' Rakefile
+
+ # Keep this hardcoded -O0 optimization level since
+ # https://github.com/cucumber/gherkin/issues/182#issuecomment-6945009
+ # hints at the fact that removing it might cause the mysterious
+ # Lexer errors that hapen intermittently.
+ # sed -ie -e 's/-O0//' tasks/compile.rake || die
+
+ # Remove feature that depends on direct access to the cucumber
+ # source. We could probably set this up by downloading the source
+ # and unpacking it, but skipping this now in the interest of time.
+ rm features/pretty_formatter.feature || die
+
+ # We need to remove these tasks during bootstrapping since it tries
+ # to load cucumber already but we can be sure it isn't installed
+ # yet. Also remove other rake tasks for which we may not yet have
+ # dependencies.
+ if ! use test ; then
+ rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
+ fi
+
+ # Avoid dependency on yard if USE=-doc
+ if ! use doc ; then
+ rm tasks/apidoc.rake || die
+ fi
+
+ # Avoid implicit dependency on git
+ sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die
+
+ # Fix deprecated code removed in ruby22
+ sed -i -e 's/Config/RbConfig/' tasks/ragel_task.rb || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ yard || die
+ fi
+}
+
+each_ruby_compile() {
+ ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
+}
+
+each_ruby_test() {
+ ${RUBY} -I lib -S rspec-2 spec || die "Specs failed"
+ CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
+}
diff --git a/dev-ruby/gherkin/gherkin-2.12.2.ebuild b/dev-ruby/gherkin/gherkin-2.12.2.ebuild
new file mode 100644
index 000000000000..54a7826ad4e8
--- /dev/null
+++ b/dev-ruby/gherkin/gherkin-2.12.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Fast Gherkin lexer and parser based on Ragel"
+HOMEPAGE="https://github.com/cucumber/gherkin"
+LICENSE="MIT"
+SRC_URI="https://github.com/cucumber/gherkin/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~sparc x86"
+SLOT="0"
+IUSE="doc test"
+
+DEPEND="${DEPEND} =dev-util/ragel-6*"
+RDEPEND="${RDEPEND}"
+
+ruby_add_bdepend "
+ dev-ruby/rake-compiler
+ dev-ruby/ruby-beautify
+ test? (
+ >=dev-ruby/builder-2.1.2
+ >=dev-util/cucumber-1.1.3
+ >=dev-ruby/rspec-2.6.0
+ >=dev-ruby/term-ansicolor-1.0.5
+ )
+ doc? ( >=dev-ruby/yard-0.8.3 )"
+
+ruby_add_rdepend ">=dev-ruby/multi_json-1.3"
+
+RUBY_PATCHES=( ${P}-ruby21.patch )
+
+all_ruby_prepare() {
+ # Remove Bundler-related things.
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
+ rm Gemfile || die
+
+ # Don't use compile dependencies to avoid building again for specs.
+ sed -i -e '/:compile/d' Rakefile
+
+ # Keep this hardcoded -O0 optimization level since
+ # https://github.com/cucumber/gherkin/issues/182#issuecomment-6945009
+ # hints at the fact that removing it might cause the mysterious
+ # Lexer errors that hapen intermittently.
+ # sed -ie -e 's/-O0//' tasks/compile.rake || die
+
+ # Remove feature that depends on direct access to the cucumber
+ # source. We could probably set this up by downloading the source
+ # and unpacking it, but skipping this now in the interest of time.
+ rm features/pretty_formatter.feature || die
+
+ # We need to remove these tasks during bootstrapping since it tries
+ # to load cucumber already but we can be sure it isn't installed
+ # yet. Also remove other rake tasks for which we may not yet have
+ # dependencies.
+ if ! use test ; then
+ rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
+ fi
+
+ # Avoid dependency on yard if USE=-doc
+ if ! use doc ; then
+ rm tasks/apidoc.rake || die
+ fi
+
+ # Avoid implicit dependency on git
+ sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ yard || die
+ fi
+}
+
+each_ruby_compile() {
+ ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
+}
+
+each_ruby_test() {
+ ${RUBY} -I lib -S rspec-2 spec || die "Specs failed"
+ CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
+}
diff --git a/dev-ruby/gherkin/gherkin-3.2.0-r1.ebuild b/dev-ruby/gherkin/gherkin-3.2.0-r1.ebuild
new file mode 100644
index 000000000000..77f5fa8ddef9
--- /dev/null
+++ b/dev-ruby/gherkin/gherkin-3.2.0-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+# Don't install support scripts to avoid slot collisions.
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Fast Gherkin lexer and parser"
+HOMEPAGE="https://github.com/cucumber/gherkin"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
+SLOT="3"
+IUSE=""
diff --git a/dev-ruby/gherkin/gherkin-4.1.3.ebuild b/dev-ruby/gherkin/gherkin-4.1.3.ebuild
new file mode 100644
index 000000000000..853529f3b1d9
--- /dev/null
+++ b/dev-ruby/gherkin/gherkin-4.1.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+# Don't install support scripts to avoid slot collisions.
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Fast Gherkin lexer and parser"
+HOMEPAGE="https://github.com/cucumber/gherkin"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="4"
+IUSE=""
diff --git a/dev-ruby/gherkin/metadata.xml b/dev-ruby/gherkin/metadata.xml
new file mode 100644
index 000000000000..e9c308669e88
--- /dev/null
+++ b/dev-ruby/gherkin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cucumber/gherkin</remote-id>
+ </upstream>
+</pkgmetadata>