Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/kramdown/
Date: Mon, 10 Dec 2018 07:33:11
Message-Id: 1544426624.7375b3c73ebc43278dd1ef5f90fbec15ee60cc9c.graaff@gentoo
1 commit: 7375b3c73ebc43278dd1ef5f90fbec15ee60cc9c
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 10 07:23:44 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 10 07:23:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7375b3c7
7
8 dev-ruby/kramdown: add 1.17.0
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-ruby/kramdown/Manifest | 1 +
14 dev-ruby/kramdown/kramdown-1.17.0.ebuild | 55 ++++++++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest
18 index 885ea2af430..68bab58c821 100644
19 --- a/dev-ruby/kramdown/Manifest
20 +++ b/dev-ruby/kramdown/Manifest
21 @@ -1,2 +1,3 @@
22 DIST kramdown-1.14.0.gem 250368 BLAKE2B 78d3638ec58a5c237a9350cad1edabf2d4fa0307013a0ced18f6835c4a8cdd623e4825b06670d5c588147013b191912f93e51e74ab1fe007761c117334f378aa SHA512 bd6295db2fe0d3a7dca936d47f0aaf7f939a86361dfdd3203a52683a9eb11a68075cad7d068cc56a315db3c14e73cf5aebb87531ba3086301a7521c5a86f9905
23 DIST kramdown-1.16.2.gem 258048 BLAKE2B a9b35b9e3882cafa32721d0555fa10d806973d4f6e7b617395c00acd3aee43552d74be2442411dc04fec48f7878a7459621ee7848365c165b51959e03a9451da SHA512 da6981969aca283c50b5a34650833c1364afcf74ecc64daba1eed20b198490bf1fdda91096f37574281b50f36713326c367307137446b1fd84a049358a13e4d7
24 +DIST kramdown-1.17.0.gem 260608 BLAKE2B 56f0abb2c94ab2de31bcd71940c22610efc8143c434295627513735b5983a369b0d9b36a88477a4e0b14bb23a3d314280702655c854cb7134e29bebc1f276966 SHA512 0f98f4234dec41b53d7f116be1075176c7fcbf21621c6f52a9e5b4055a777b01f1a0a912be81a651e85df022e7bab3ac183ee66cd87abeae092cd1920aceff04
25
26 diff --git a/dev-ruby/kramdown/kramdown-1.17.0.ebuild b/dev-ruby/kramdown/kramdown-1.17.0.ebuild
27 new file mode 100644
28 index 00000000000..375d01b07f8
29 --- /dev/null
30 +++ b/dev-ruby/kramdown/kramdown-1.17.0.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +USE_RUBY="ruby23 ruby24"
37 +
38 +RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS"
39 +
40 +RUBY_FAKEGEM_EXTRAINSTALL="data"
41 +
42 +inherit ruby-fakegem
43 +
44 +DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition"
45 +HOMEPAGE="https://kramdown.gettalong.org/"
46 +
47 +LICENSE="MIT"
48 +
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64"
51 +IUSE="latex"
52 +
53 +LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )"
54 +RDEPEND+=" ${LATEX_DEPS}"
55 +DEPEND+=" test? ( ${LATEX_DEPS} app-text/htmltidy )"
56 +
57 +ruby_add_rdepend "dev-ruby/prawn:2
58 + >=dev-ruby/prawn-table-0.2.2 =dev-ruby/prawn-table-0.2*
59 + >=dev-ruby/rouge-1.8:*
60 + >=dev-ruby/itextomml-1.5
61 + >=dev-ruby/coderay-1.0.0
62 + >=dev-ruby/ritex-1.0
63 + >=dev-ruby/stringex-1.5.1"
64 +
65 +ruby_add_bdepend "doc? ( dev-ruby/rdoc )
66 + test? ( >=dev-ruby/minitest-5.0 )"
67 +
68 +all_ruby_prepare() {
69 + if ! use latex; then
70 + # Remove latex tests. They will fail gracefully when latex isn't
71 + # present at all, but not when components are missing (most
72 + # notable ucs.sty).
73 + sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die
74 + fi
75 +
76 + # Avoid tests requiring node to be installed with mathjaxnode or
77 + # unpackaged katex.
78 + rm -f test/testcases/span/math/{katex,mathjaxnode}* \
79 + test/testcases/block/15_math/{katex,mathjaxnode}* || die
80 +}
81 +
82 +all_ruby_install() {
83 + all_fakegem_install
84 +
85 + doman man/man1/kramdown.1
86 +}