diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/ronn/ronn-0.7.3-r3.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/ronn/ronn-0.7.3-r3.ebuild')
-rw-r--r-- | app-text/ronn/ronn-0.7.3-r3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-text/ronn/ronn-0.7.3-r3.ebuild b/app-text/ronn/ronn-0.7.3-r3.ebuild new file mode 100644 index 000000000000..abeb36ab502b --- /dev/null +++ b/app-text/ronn/ronn-0.7.3-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby23 ruby24 ruby25" + +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="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~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 +} |