ruby-mustache0: Import ruby-mustache-0.99.8 as wip/ruby-mustache0

Inspired by ctemplate and et, Mustache is a framework-agnostic way
to render logic-free views.
As ctemplates says, "It emphasizes separating logic from presentation:
it is impossible to embed application logic in this template language."
For a list of implementations (other than Ruby) and tips, see
http://mustache.github.io/.
This commit is contained in:
Atsushi Toyokura 2019-12-23 23:46:02 +09:00
parent b9851eaccb
commit 3eaed10c01
6 changed files with 122 additions and 0 deletions

View File

@ -4345,6 +4345,7 @@ SUBDIR+= ruby-kakasi
SUBDIR+= ruby-kramdown1
SUBDIR+= ruby-libv8
SUBDIR+= ruby-multi_xml
SUBDIR+= ruby-mustache0
SUBDIR+= ruby-neovim
SUBDIR+= ruby-net-http-pipeline
SUBDIR+= ruby-passenger

View File

@ -0,0 +1 @@
bin/mustache @PREFIX@/bin/mustache0@RUBY_SUFFIX@

6
ruby-mustache0/DESCR Normal file
View File

@ -0,0 +1,6 @@
Inspired by ctemplate and et, Mustache is a framework-agnostic way
to render logic-free views.
As ctemplates says, "It emphasizes separating logic from presentation:
it is impossible to embed application logic in this template language."
For a list of implementations (other than Ruby) and tips, see
http://mustache.github.io/.

27
ruby-mustache0/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.2 2019/02/25 14:53:05 taca Exp $
DISTNAME= mustache-0.99.8
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/mustache/mustache0/}
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://mustache.github.io/
COMMENT= Logic-less Ruby templates
LICENSE= mit
RUBYGEM_OPTIONS+= --format-executable
COMMANDS= mustache
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
for f in ${COMMANDS}; do \
${TEST} -f $${f}0${RUBY_SUFFIX} || \
${MV} $${f}${RUBY_SUFFIX} $${f}0${RUBY_SUFFIX}; \
done
${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${RUBY_PKGPREFIX}-mustache0.1
${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/mustache.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/${RUBY_PKGPREFIX}-mustache0.5
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"

81
ruby-mustache0/PLIST Normal file
View File

@ -0,0 +1,81 @@
@comment $NetBSD$
bin/mustache0${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/LICENSE
${GEM_LIBDIR}/README.md
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/bin/mustache
${GEM_LIBDIR}/lib/mustache.rb
${GEM_LIBDIR}/lib/mustache/context.rb
${GEM_LIBDIR}/lib/mustache/enumerable.rb
${GEM_LIBDIR}/lib/mustache/generator.rb
${GEM_LIBDIR}/lib/mustache/parser.rb
${GEM_LIBDIR}/lib/mustache/settings.rb
${GEM_LIBDIR}/lib/mustache/sinatra.rb
${GEM_LIBDIR}/lib/mustache/template.rb
${GEM_LIBDIR}/lib/mustache/version.rb
${GEM_LIBDIR}/lib/rack/bug/panels/mustache_panel.rb
${GEM_LIBDIR}/lib/rack/bug/panels/mustache_panel/mustache_extension.rb
${GEM_LIBDIR}/lib/rack/bug/panels/mustache_panel/view.mustache
${GEM_LIBDIR}/man/mustache.1
${GEM_LIBDIR}/man/mustache.1.html
${GEM_LIBDIR}/man/mustache.1.ron
${GEM_LIBDIR}/man/mustache.5
${GEM_LIBDIR}/man/mustache.5.html
${GEM_LIBDIR}/man/mustache.5.ron
${GEM_LIBDIR}/test/autoloading_test.rb
${GEM_LIBDIR}/test/fixtures/comments.mustache
${GEM_LIBDIR}/test/fixtures/comments.rb
${GEM_LIBDIR}/test/fixtures/complex_view.mustache
${GEM_LIBDIR}/test/fixtures/complex_view.rb
${GEM_LIBDIR}/test/fixtures/crazy_recursive.mustache
${GEM_LIBDIR}/test/fixtures/crazy_recursive.rb
${GEM_LIBDIR}/test/fixtures/delimiters.mustache
${GEM_LIBDIR}/test/fixtures/delimiters.rb
${GEM_LIBDIR}/test/fixtures/dot_notation.mustache
${GEM_LIBDIR}/test/fixtures/dot_notation.rb
${GEM_LIBDIR}/test/fixtures/double_section.mustache
${GEM_LIBDIR}/test/fixtures/double_section.rb
${GEM_LIBDIR}/test/fixtures/escaped.mustache
${GEM_LIBDIR}/test/fixtures/escaped.rb
${GEM_LIBDIR}/test/fixtures/inner_partial.mustache
${GEM_LIBDIR}/test/fixtures/inner_partial.txt
${GEM_LIBDIR}/test/fixtures/inverted_section.mustache
${GEM_LIBDIR}/test/fixtures/inverted_section.rb
${GEM_LIBDIR}/test/fixtures/lambda.mustache
${GEM_LIBDIR}/test/fixtures/lambda.rb
${GEM_LIBDIR}/test/fixtures/liberal.mustache
${GEM_LIBDIR}/test/fixtures/liberal.rb
${GEM_LIBDIR}/test/fixtures/method_missing.rb
${GEM_LIBDIR}/test/fixtures/namespaced.mustache
${GEM_LIBDIR}/test/fixtures/namespaced.rb
${GEM_LIBDIR}/test/fixtures/nested_objects.mustache
${GEM_LIBDIR}/test/fixtures/nested_objects.rb
${GEM_LIBDIR}/test/fixtures/node.mustache
${GEM_LIBDIR}/test/fixtures/partial_with_module.mustache
${GEM_LIBDIR}/test/fixtures/partial_with_module.rb
${GEM_LIBDIR}/test/fixtures/passenger.conf
${GEM_LIBDIR}/test/fixtures/passenger.rb
${GEM_LIBDIR}/test/fixtures/recursive.mustache
${GEM_LIBDIR}/test/fixtures/recursive.rb
${GEM_LIBDIR}/test/fixtures/simple.mustache
${GEM_LIBDIR}/test/fixtures/simple.rb
${GEM_LIBDIR}/test/fixtures/simply_complicated.mustache
${GEM_LIBDIR}/test/fixtures/template_partial.mustache
${GEM_LIBDIR}/test/fixtures/template_partial.rb
${GEM_LIBDIR}/test/fixtures/template_partial.txt
${GEM_LIBDIR}/test/fixtures/unescaped.mustache
${GEM_LIBDIR}/test/fixtures/unescaped.rb
${GEM_LIBDIR}/test/fixtures/utf8.mustache
${GEM_LIBDIR}/test/fixtures/utf8_partial.mustache
${GEM_LIBDIR}/test/helper.rb
${GEM_LIBDIR}/test/mustache_test.rb
${GEM_LIBDIR}/test/parser_test.rb
${GEM_LIBDIR}/test/partial_test.rb
${GEM_LIBDIR}/test/spec_test.rb
${GEM_LIBDIR}/test/template_test.rb
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
man/man1/${RUBY_NAME}-mustache0.1
man/man5/${RUBY_NAME}-mustache0.5
@pkgdir lib/ruby/gems/2.6.0/extensions
@pkgdir lib/ruby/gems/2.6.0/build_info

6
ruby-mustache0/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.2 2019/02/25 14:53:05 taca Exp $
SHA1 (mustache-0.99.8.gem) = 0baaada539b2dcb5175bcdac186f407228acce7c
RMD160 (mustache-0.99.8.gem) = 2a8af1051705ec66140feb44137f77f674cf657f
SHA512 (mustache-0.99.8.gem) = c0df31005968580bf82d03aad40d9373f703a116cd3de2b0a61572e3e9808cb0c221d126cbffb7478e297814f131981122bcfa7045eca7b0d97396b190251868
Size (mustache-0.99.8.gem) = 43520 bytes