1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby22 ruby23 ruby24"
7 RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS"
9 RUBY_FAKEGEM_EXTRAINSTALL="data"
13 DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition"
14 HOMEPAGE="https://kramdown.gettalong.org/"
19 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64"
22 LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )"
23 RDEPEND+=" ${LATEX_DEPS}"
24 DEPEND+=" test? ( ${LATEX_DEPS} app-text/htmltidy )"
26 ruby_add_rdepend "dev-ruby/prawn:2
27 >=dev-ruby/prawn-table-0.2.2 =dev-ruby/prawn-table-0.2*
28 >=dev-ruby/rouge-1.8:0
29 >=dev-ruby/itextomml-1.5
30 >=dev-ruby/coderay-1.0.0
32 >=dev-ruby/stringex-1.5.1"
34 ruby_add_bdepend "doc? ( dev-ruby/rdoc )
35 test? ( >=dev-ruby/minitest-5.0 )"
39 # Remove latex tests. They will fail gracefully when latex isn't
40 # present at all, but not when components are missing (most
42 sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die
45 # Avoid tests requiring node to be installed with mathjaxnode.
46 rm -f test/testcases/span/math/mathjaxnode* \
47 test/testcases/block/15_math/mathjaxnode* || die
53 doman man/man1/kramdown.1