commit:     f9e7ddcc32950c253f449085e5ce3c84f0d6d26f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 05:54:13 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 06:12:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e7ddcc

dev-ruby/rouge: add 4.0.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rouge/Manifest           |  1 +
 dev-ruby/rouge/rouge-4.0.0.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/dev-ruby/rouge/Manifest b/dev-ruby/rouge/Manifest
index 525bfffcfb35..94c3dd399788 100644
--- a/dev-ruby/rouge/Manifest
+++ b/dev-ruby/rouge/Manifest
@@ -1,2 +1,3 @@
 DIST rouge-3.29.0.tar.gz 1024187 BLAKE2B 
ee29f9d22211dec38ec2fdd49da4dbd28957876e2324c72e6d4d58748adc4fac8ad1b0788537e0e49fb80ca41a7e2c788ab91d435d71a85e8b42858c2a19d975
 SHA512 
632b8c5e1454981842984b42626139b2f0041449301b706d884f347ca247d40dccd9bbab9e30c1af379e1d47b8b5c29a1ba30d28c5ecd6f47d00a3ee5af8ce92
 DIST rouge-3.30.0.tar.gz 1036048 BLAKE2B 
79dde9ed8a282b22aa044bef1a17cdde705e5361aa9298789d1de155260a69a200d8039c400d22db5719039d67f0d9179c31574190684da50ea64fba92c63ec8
 SHA512 
f21ff96d2d1f248dfffb02ea2312b4c01090b2b5664588e00763d0ede0d8af701efe0cdabb551a2debff26a301dfaffa7a07aa579d73806c6635f03dd15dcfe1
+DIST rouge-4.0.0.tar.gz 1036030 BLAKE2B 
7f446bd6a84d8eed28faf5b873ede459aff5c7a73328b71ceb50bd939d76281daca77d60ab6ff47aee5f7e7b120f8c0ee0010364679196d7d41373b860e76920
 SHA512 
9917a9f913373371ba11abb90389273b5d97e7287fa6c265ce40dbaad040a29a900c6843cfc1688315a489c2e32d188840d23052190783eb353f5ffd098b895b

diff --git a/dev-ruby/rouge/rouge-4.0.0.ebuild 
b/dev-ruby/rouge/rouge-4.0.0.ebuild
new file mode 100644
index 000000000000..8a8603696fdb
--- /dev/null
+++ b/dev-ruby/rouge/rouge-4.0.0.ebuild
@@ -0,0 +1,36 @@
+# 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_TASK_TEST="spec"
+RUBY_FAKEGEM_RECIPE_DOC="yard"
+
+RUBY_FAKEGEM_GEMSPEC="rouge.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Yet-another-markdown-parser using a strict syntax definition in 
pure Ruby"
+HOMEPAGE="https://github.com/jneen/rouge";
+SRC_URI="https://github.com/jneen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE=""
+
+ruby_add_bdepend "doc? ( dev-ruby/redcarpet )
+       test? ( dev-ruby/minitest-power_assert )
+       dev-ruby/yard
+"
+
+ruby_add_rdepend "dev-ruby/redcarpet"
+
+all_ruby_prepare() {
+       rm -f tasks/{check/style,update/changelog}.rake || die
+
+       sed -i -e '/bundler/I s:^:#: ; 5irequire "minitest-power_assert"' 
spec/spec_helper.rb || die
+       sed -i -e '/\(changelog\|bundler\|rubocop\)/ s:^:#: ; 1irequire 
"pathname"' Rakefile || die
+}

Reply via email to