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, 29 Jun 2020 17:26:39
Message-Id: 1593451565.2d67d8dd4e32b990971d3c58b28a61c897ac7fcc.graaff@gentoo
1 commit: 2d67d8dd4e32b990971d3c58b28a61c897ac7fcc
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 29 16:15:27 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 29 17:26:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d67d8dd
7
8 dev-ruby/kramdown: add 2.3.0
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.23
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/kramdown/Manifest | 1 +
14 dev-ruby/kramdown/kramdown-2.3.0.ebuild | 52 +++++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest
18 index 8839ea91c17..20409eedcb5 100644
19 --- a/dev-ruby/kramdown/Manifest
20 +++ b/dev-ruby/kramdown/Manifest
21 @@ -1,3 +1,4 @@
22 DIST kramdown-1.17.0.gem 260608 BLAKE2B 56f0abb2c94ab2de31bcd71940c22610efc8143c434295627513735b5983a369b0d9b36a88477a4e0b14bb23a3d314280702655c854cb7134e29bebc1f276966 SHA512 0f98f4234dec41b53d7f116be1075176c7fcbf21621c6f52a9e5b4055a777b01f1a0a912be81a651e85df022e7bab3ac183ee66cd87abeae092cd1920aceff04
23 DIST kramdown-2.1.0.gem 119808 BLAKE2B a5beac52349fb49d315d83391d52574013bd76e084edb25a0b3bc0d813fc5b0dae0799a03bdd20fb500560effc94ad8f262fab9bbb8eef275aaead3405d3a64c SHA512 86a2934218365c71ff4f99591cba3b49ddc5ee60a78fcd7bf1f72e86281cda7bbea3c67b1b7caca6c4b8ca6e5b62d4df25e85089db659c93bd4da4b1c8eada69
24 DIST kramdown-2.2.1.gem 121344 BLAKE2B e1da7e1289b64cc3d4db253330405b03b1a430a690e2f5b32970dc8c1d52bbf1f418e8aa1c597a3333141c3974893e1532e870a131fc297b9080b66bc6918882 SHA512 7c322010a8a418706c48d5a1011354aba215d50be94354fff93a636ff3453906bb381cf5669560a6bd10ecaf3bab7b04f446efa0a4b85322865b879f74de4c43
25 +DIST kramdown-2.3.0.gem 121344 BLAKE2B 0494afe84123503cb1e2f31c512c1b8cace1a81a3f32488e9719d47f1614a20fb86aa007187f2802e9b5c041031e8b6258da9909cbb1bbad0aa94d519821fb14 SHA512 a3ed8360de9208d5ce658d198763737826db943d23dda7ca9cfd507a4656c39f2b19ece78af87981b1177fe01690d6647c854092b230cf3a8a7d2823dc83d276
26
27 diff --git a/dev-ruby/kramdown/kramdown-2.3.0.ebuild b/dev-ruby/kramdown/kramdown-2.3.0.ebuild
28 new file mode 100644
29 index 00000000000..a9419576883
30 --- /dev/null
31 +++ b/dev-ruby/kramdown/kramdown-2.3.0.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +USE_RUBY="ruby25 ruby26"
38 +
39 +RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS"
40 +
41 +RUBY_FAKEGEM_EXTRAINSTALL="data"
42 +
43 +inherit ruby-fakegem
44 +
45 +DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition"
46 +HOMEPAGE="https://kramdown.gettalong.org/"
47 +
48 +LICENSE="MIT"
49 +
50 +SLOT="$(ver_cut 1)"
51 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64"
52 +IUSE="latex"
53 +
54 +LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )"
55 +RDEPEND+=" ${LATEX_DEPS}"
56 +DEPEND+=" test? ( ${LATEX_DEPS} app-text/tidy-html5 )"
57 +
58 +ruby_add_rdepend "
59 + dev-ruby/rexml
60 + >=dev-ruby/rouge-1.8
61 + >=dev-ruby/stringex-1.5.1
62 + !!<dev-ruby/kramdown-1.17.0-r2:0"
63 +
64 +ruby_add_bdepend "doc? ( dev-ruby/rdoc )
65 + test? ( >=dev-ruby/minitest-5.0 )"
66 +
67 +all_ruby_prepare() {
68 + if ! use latex; then
69 + # Remove latex tests. They will fail gracefully when latex isn't
70 + # present at all, but not when components are missing (most
71 + # notable ucs.sty).
72 + sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die
73 + fi
74 +}
75 +
76 +each_ruby_test() {
77 + ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
78 +}
79 +
80 +all_ruby_install() {
81 + all_fakegem_install
82 +
83 + doman man/man1/kramdown.1
84 +}