summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-28 08:07:59 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-28 08:07:59 +0100
commit9911d9614d9c46df09370a00c761c22478637586 (patch)
treee5f9c372584084975c845dba6744326847b70c91 /dev-ruby
parentdev-ruby/rjb: add 1.6.6 (diff)
downloadgentoo-9911d9614d9c46df09370a00c761c22478637586.tar.gz
gentoo-9911d9614d9c46df09370a00c761c22478637586.tar.bz2
gentoo-9911d9614d9c46df09370a00c761c22478637586.zip
dev-ruby/rouge: add 4.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rouge/Manifest1
-rw-r--r--dev-ruby/rouge/rouge-4.0.1.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/rouge/Manifest b/dev-ruby/rouge/Manifest
index 94c3dd399788..26aa13008b3d 100644
--- a/dev-ruby/rouge/Manifest
+++ b/dev-ruby/rouge/Manifest
@@ -1,3 +1,4 @@
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
+DIST rouge-4.0.1.tar.gz 1041393 BLAKE2B f2c26a918b0365a1b65d938e8835fbe96cdedaeaad5d06e24972f79b0dd8b27bd301ec7ccc7de603f64fbdda5ddd06fdca870a06e0365eeb6adf7f0e7a4cfb2c SHA512 1a7f564d27c2c12c060eeb29f1fdb38e01c1c4c22424b78cfb7b0b19e61e50e9266f21aa6972694a654111cdf6205e2326650ac3e5ef4d0fa182732bd3609494
diff --git a/dev-ruby/rouge/rouge-4.0.1.ebuild b/dev-ruby/rouge/rouge-4.0.1.ebuild
new file mode 100644
index 000000000000..4d36fc3162b8
--- /dev/null
+++ b/dev-ruby/rouge/rouge-4.0.1.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 !<dev-ruby/rouge-3.30.0-r1"
+
+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
+}