blob: c1e9136fe5eaa8f55ca2444952c057d8936c4826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="AUTHORS CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="ronn-ng.gemspec"
inherit ruby-fakegem
DESCRIPTION="Builds manuals in HTML and Unix man page format from Markdown"
HOMEPAGE="https://github.com/apjanke/ronn-ng"
SRC_URI="https://github.com/apjanke/ronn-ng/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
RDEPEND+="!app-text/ronn"
DEPS="
>=dev-ruby/kramdown-2.1:2
>=dev-ruby/kramdown-parser-gfm-1.0.1:1
>=dev-ruby/nokogiri-1.14.3:0
"
ruby_add_rdepend "
=dev-ruby/mustache-1*
${DEPS}
"
ruby_add_bdepend "${DEPS}"
all_ruby_prepare() {
# Avoid tests with code blocks that are fragile for e.g. presence /
# absence of a source highlighter.
rm -f test/code_blocks*.ro{ff,nn} || die
}
each_ruby_prepare() {
# Make sure that we always use the right interpreter during tests
sed -i -e "/output/ s:ronn:${RUBY} bin/ronn:" test/test_ronn.rb || die
# ... and during the man page build.
sed -i -e "/sh 'ronn/s:ronn:${RUBY} bin/ronn:" Rakefile || die
}
all_ruby_install() {
all_fakegem_install
doman man/ronn.1 man/ronn-format.7
}
|