summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-05-08 11:15:05 +0200
committerHans de Graaff <graaff@gentoo.org>2022-05-09 06:47:08 +0200
commitb4770df38543c118a1bf199f86b941300f14504a (patch)
tree47da1126945392a8ce3f5474b8a3da63c25d9459 /app-text/ronn-ng
parentdev-libs/wayland: forward ~loong (diff)
downloadgentoo-b4770df38543c118a1bf199f86b941300f14504a.tar.gz
gentoo-b4770df38543c118a1bf199f86b941300f14504a.tar.bz2
gentoo-b4770df38543c118a1bf199f86b941300f14504a.zip
app-text/ronn-ng: add ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-text/ronn-ng')
-rw-r--r--app-text/ronn-ng/ronn-ng-0.9.1-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/app-text/ronn-ng/ronn-ng-0.9.1-r2.ebuild b/app-text/ronn-ng/ronn-ng-0.9.1-r2.ebuild
new file mode 100644
index 000000000000..17a0b8f79daf
--- /dev/null
+++ b/app-text/ronn-ng/ronn-ng-0.9.1-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="AUTHORS CHANGES 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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86"
+
+IUSE=""
+
+RDEPEND+="!app-text/ronn"
+
+DEPS="
+ >=dev-ruby/kramdown-2.1:2
+ >=dev-ruby/nokogiri-1.9.0:0
+"
+
+ruby_add_rdepend "
+ =dev-ruby/mustache-1*
+ ${DEPS}
+"
+
+ruby_add_bdepend "${DEPS}"
+
+all_ruby_prepare() {
+ sed -i -e '/mustache/ s/0.7/1.0/' ${RUBY_FAKEGEM_GEMSPEC} || 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
+ sed -i -e "1igem 'psych', '~> 3.0'" Rakefile || die
+}
+
+all_ruby_compile() {
+ PATH="${S}/bin:${PATH}" rake man || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ doman man/ronn.1 man/ronn-format.7
+}