diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 10:31:21 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 10:31:32 +0100 |
commit | 1424be3187c6e09f75936d7e1aaff58c7fe1f4c7 (patch) | |
tree | 91e759b43730a25a70b86327d3fbf4d3f5092f13 /app-text/ronn | |
parent | dev-ruby/mustache: add ruby27 (diff) | |
download | gentoo-1424be3187c6e09f75936d7e1aaff58c7fe1f4c7.tar.gz gentoo-1424be3187c6e09f75936d7e1aaff58c7fe1f4c7.tar.bz2 gentoo-1424be3187c6e09f75936d7e1aaff58c7fe1f4c7.zip |
app-text/ronn: add ruby27; EAPI=7
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-text/ronn')
-rw-r--r-- | app-text/ronn/ronn-0.7.3-r4.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-text/ronn/ronn-0.7.3-r4.ebuild b/app-text/ronn/ronn-0.7.3-r4.ebuild new file mode 100644 index 000000000000..ae854cc60751 --- /dev/null +++ b/app-text/ronn/ronn-0.7.3-r4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="AUTHORS CHANGES README.md" + +inherit ruby-fakegem + +DESCRIPTION="Converts simple, human readable textfiles to roff for terminal display, and HTML" +HOMEPAGE="https://github.com/rtomayko/ronn/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" + +IUSE="" + +DEPS=" + >=dev-ruby/hpricot-0.8.2 + >=dev-ruby/mustache-0.7.0 + >=dev-ruby/rdiscount-1.5.8" + +ruby_add_rdepend "${DEPS}" + +ruby_add_bdepend "${DEPS}" + +all_ruby_prepare() { + # Avoid test failing due to changes in hash handling in ruby 1.8.7: + # https://github.com/rtomayko/ronn/issues/56 + sed -i -e '81 s:^:#:' test/test_ronn.rb || 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 +} + +all_ruby_compile() { + PATH="${S}/bin:${PATH}" rake man || die +} + +all_ruby_install() { + all_fakegem_install + + doman man/ronn.1 man/ronn-format.7 +} |