1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
7 RUBY_FAKEGEM_TASK_TEST="spec"
8 RUBY_FAKEGEM_RECIPE_DOC="yard"
10 RUBY_FAKEGEM_GEMSPEC="rouge.gemspec"
14 DESCRIPTION="Yet-another-markdown-parser using a strict syntax definition in pure Ruby"
15 HOMEPAGE="https://github.com/jneen/rouge"
16 SRC_URI="https://github.com/jneen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
21 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
24 ruby_add_bdepend "doc? ( dev-ruby/redcarpet )
25 test? ( dev-ruby/minitest-power_assert )
29 ruby_add_rdepend "dev-ruby/redcarpet"
32 rm -f tasks/{check/style,update/changelog}.rake || die
34 sed -i -e '/bundler/I s:^:#: ; 5irequire "minitest-power_assert"' spec/spec_helper.rb || die
35 sed -i -e '/\(changelog\|bundler\|rubocop\)/ s:^:#: ; 1irequire "pathname"' Rakefile || die