diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-03-22 09:23:29 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-03-22 09:24:42 +0100 |
commit | a403329b8785a91f8ff929902ec2eb64a66e52fd (patch) | |
tree | 9f02523d2d1d396d3086834c691ecd6aaf623cdf /dev-ruby/kramdown-parser-gfm | |
parent | app-office/calcurse: add 4.8.0 (diff) | |
download | gentoo-a403329b8785a91f8ff929902ec2eb64a66e52fd.tar.gz gentoo-a403329b8785a91f8ff929902ec2eb64a66e52fd.tar.bz2 gentoo-a403329b8785a91f8ff929902ec2eb64a66e52fd.zip |
dev-ruby/kramdown-parser-gfm: update EAPI 7 -> 8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/kramdown-parser-gfm')
-rw-r--r-- | dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0-r1.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0-r1.ebuild b/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0-r1.ebuild new file mode 100644 index 000000000000..cd1f019b9207 --- /dev/null +++ b/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +inherit edo ruby-fakegem + +DESCRIPTION="A kramdown parser for the GFM dialect of Markdown" +HOMEPAGE="https://github.com/kramdown/parser-gfm" +LICENSE="MIT" + +KEYWORDS="~amd64 ~arm64" +SLOT="$(ver_cut 1)" +IUSE="doc" + +ruby_add_rdepend "dev-ruby/kramdown:2" +ruby_add_bdepend "test? ( dev-ruby/kramdown[latex] )" + +all_ruby_prepare() { + # Avoid testcase which is no longer compatible with newer rouge + rm -f test/testcases/codeblock_fenced.text || die + + # Avoid test broken with current kramdown versions + rm -r test/testcases/header_ids.text || die +} + +each_ruby_test() { + edo ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die +} |