summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-05-08 11:15:25 +0200
committerHans de Graaff <graaff@gentoo.org>2022-05-09 06:47:08 +0200
commitac1f02384e24249e2bd2a9362f2397f031df9882 (patch)
treedf1a2c18d13e4dcb5e087284b2c207d19ed4e769 /dev-ruby/mustache
parentapp-text/ronn-ng: add ruby30 (diff)
downloadgentoo-ac1f02384e24249e2bd2a9362f2397f031df9882.tar.gz
gentoo-ac1f02384e24249e2bd2a9362f2397f031df9882.tar.bz2
gentoo-ac1f02384e24249e2bd2a9362f2397f031df9882.zip
dev-ruby/mustache: update EAPI 7 -> 8, add ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mustache')
-rw-r--r--dev-ruby/mustache/mustache-1.1.1-r1.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/mustache/mustache-1.1.1-r1.ebuild b/dev-ruby/mustache/mustache-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..af74c86d7e22
--- /dev/null
+++ b/dev-ruby/mustache/mustache-1.1.1-r1.ebuild
@@ -0,0 +1,42 @@
+# 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_TASK_TEST=""
+
+RUBY_FAKEGEM_TASK_DOC="man:build"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Mustache is a framework-agnostic way to render logic-free views"
+HOMEPAGE="https://mustache.github.com/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-test-ordering.patch" )
+
+ruby_add_bdepend "doc? ( app-text/ronn-ng )"
+
+all_ruby_prepare() {
+ # Fix for renamed .ron files
+ sed -i -e 's:\.ronn:.ron:' Rakefile || die
+
+ sed -i -e '/simplecov/,/^end/ s:^:#:' test/helper.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:. -e "Dir['test/*.rb'].each{|f| require f}" || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ doman man/mustache.1 man/mustache.5
+}