diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 17:30:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 17:30:28 +0100 |
commit | debb2c431b40a6b4750a39956cc5fcfa5a4a6476 (patch) | |
tree | 5c5fceb399f1dddaf02d4d8da8f674106cede374 /app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild | |
parent | a17b25a10359070f9527893d861369d378021aa9 (diff) |
gentoo auto-resync : 07:04:2023 - 17:30:27
Diffstat (limited to 'app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild')
-rw-r--r-- | app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild b/app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild new file mode 100644 index 000000000000..6aa2714d5808 --- /dev/null +++ b/app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +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 ~hppa ~ppc ~ppc64 ~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}" + +PATCHES=( + "${FILESDIR}"/${P}-psych-4-tests.patch +) + +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 + # ... and during the man page build. + sed -i -e "/sh 'ronn/s:ronn:${RUBY} bin/ronn:" Rakefile || die +} + +each_ruby_compile() { + #if ! [[ -f man/ronn.1 ]] ; then + # einfo "Building man pages using ${RUBY}" + # PATH="${S}/bin:${PATH}" ${RUBY} -S rake man || die + #fi + :; +} + +all_ruby_install() { + all_fakegem_install + + doman man/ronn.1 man/ronn-format.7 +} |