pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc Add textproc/lua-lustache.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e37540e2f26e
branches:  trunk
changeset: 401456:e37540e2f26e
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Sep 17 23:36:54 2019 +0000

description:
Add textproc/lua-lustache.

lustache allows you to use the Mustache templating standard in Lua by
passing in a string, data, and partial templates. It precompiles and
caches templates for speed, and allows you to build complex strings such
as html pages by iterating through a table and inserting values. Find out
more about Mustache at https://mustache.github.io.

diffstat:

 textproc/Makefile              |   3 ++-
 textproc/lua-lustache/DESCR    |   5 +++++
 textproc/lua-lustache/Makefile |  26 ++++++++++++++++++++++++++
 textproc/lua-lustache/PLIST    |   5 +++++
 textproc/lua-lustache/distinfo |   6 ++++++
 5 files changed, 44 insertions(+), 1 deletions(-)

diffs (75 lines):

diff -r 7f8c22bf0ff3 -r e37540e2f26e textproc/Makefile
--- a/textproc/Makefile Tue Sep 17 23:09:42 2019 +0000
+++ b/textproc/Makefile Tue Sep 17 23:36:54 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1049 2019/09/10 21:21:20 schmonz Exp $
+# $NetBSD: Makefile,v 1.1050 2019/09/17 23:36:54 nia Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -408,6 +408,7 @@
 SUBDIR+=       lq-sp
 SUBDIR+=       lua-cjson
 SUBDIR+=       lua-expat
+SUBDIR+=       lua-lustache
 SUBDIR+=       lua-slnunicode
 SUBDIR+=       lua-xapian
 SUBDIR+=       lucene++
diff -r 7f8c22bf0ff3 -r e37540e2f26e textproc/lua-lustache/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lustache/DESCR       Tue Sep 17 23:36:54 2019 +0000
@@ -0,0 +1,5 @@
+lustache allows you to use the Mustache templating standard in Lua by
+passing in a string, data, and partial templates. It precompiles and
+caches templates for speed, and allows you to build complex strings such
+as html pages by iterating through a table and inserting values. Find out
+more about Mustache at https://mustache.github.io.
diff -r 7f8c22bf0ff3 -r e37540e2f26e textproc/lua-lustache/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lustache/Makefile    Tue Sep 17 23:36:54 2019 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2019/09/17 23:36:54 nia Exp $
+
+DISTNAME=      lustache-1.3.1
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=Olivine-Labs/}
+GITHUB_PROJECT=        lustache
+GITHUB_TAG=    v${PKGVERSION_NOREV}-0
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://olivinelabs.com/lustache/
+COMMENT=       Logic-less mustache templates with Lua
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+INSTALLATION_DIRS+=    ${LUA_LDIR}/lustache
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/src/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
+       ${INSTALL_DATA} ${WRKSRC}/src/lustache/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/lustache
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7f8c22bf0ff3 -r e37540e2f26e textproc/lua-lustache/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lustache/PLIST       Tue Sep 17 23:36:54 2019 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/17 23:36:54 nia Exp $
+${LUA_LDIR}/lustache.lua
+${LUA_LDIR}/lustache/context.lua
+${LUA_LDIR}/lustache/renderer.lua
+${LUA_LDIR}/lustache/scanner.lua
diff -r 7f8c22bf0ff3 -r e37540e2f26e textproc/lua-lustache/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-lustache/distinfo    Tue Sep 17 23:36:54 2019 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/09/17 23:36:54 nia Exp $
+
+SHA1 (lustache-1.3.1.tar.gz) = 36d9ed5769cbb6cc61307eb8158163a5e36e600f
+RMD160 (lustache-1.3.1.tar.gz) = 472eb181bea8f52276f6cdb5292dd70c13b14be2
+SHA512 (lustache-1.3.1.tar.gz) = f1ba0bdd38e60957df1995f32a73a16d1b430072af4e14cce530345c74d542021223c0ef41b0f997f88d762bb194fff7119701cd289e16e3e38dfe3f10d0d9d8
+Size (lustache-1.3.1.tar.gz) = 11414 bytes



Home | Main Index | Thread Index | Old Index