diff options
author | joerg <joerg@pkgsrc.org> | 2020-08-06 22:31:15 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-08-06 22:31:15 +0000 |
commit | 0a3d023bd47bd1251f2e53795358e244a8d1d629 (patch) | |
tree | 0c395b4fe823302931e02fe01c28703504baafd7 /textproc | |
parent | 25e3b17d9b062070fa627e8de8d4af63c348ecc1 (diff) | |
download | pkgsrc-0a3d023bd47bd1251f2e53795358e244a8d1d629.tar.gz |
Add lua-cosmoso-16.06.04:
Cosmo is a "safe templates" engine. It allows you to fill nested
templates, providing many of the advantages of Turing-complete template
engines, without without the downside of allowing arbitrary code in the
templates.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/lua-cosmo/DESCR | 4 | ||||
-rw-r--r-- | textproc/lua-cosmo/Makefile | 28 | ||||
-rw-r--r-- | textproc/lua-cosmo/PLIST | 4 | ||||
-rw-r--r-- | textproc/lua-cosmo/distinfo | 6 |
4 files changed, 42 insertions, 0 deletions
diff --git a/textproc/lua-cosmo/DESCR b/textproc/lua-cosmo/DESCR new file mode 100644 index 00000000000..3da37faa7bd --- /dev/null +++ b/textproc/lua-cosmo/DESCR @@ -0,0 +1,4 @@ +Cosmo is a "safe templates" engine. It allows you to fill nested +templates, providing many of the advantages of Turing-complete template +engines, without without the downside of allowing arbitrary code in the +templates. diff --git a/textproc/lua-cosmo/Makefile b/textproc/lua-cosmo/Makefile new file mode 100644 index 00000000000..002835d7225 --- /dev/null +++ b/textproc/lua-cosmo/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2020/08/06 22:31:15 joerg Exp $ + +DISTNAME= lua-cosmoso-16.06.04 +PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1} +CATEGORIES= textproc lua +MASTER_SITES= ${MASTER_SITE_GITHUB:=mascarenhas/} +GITHUB_PROJECT= cosmo +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/mascarenhas/cosmo/ +COMMENT= Lua template engine +LICENSE= mit + +USE_TOOLS+= gmake + +INSTALLATION_DIRS+= ${LUA_LDIR}/cosmo + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/cosmo.lua ${DESTDIR}${PREFIX}/${LUA_LDIR} + ${INSTALL_DATA} ${WRKSRC}/src/cosmo/*.lua \ + ${DESTDIR}${PREFIX}/${LUA_LDIR}/cosmo + +do-test: + cd ${WRKSRC}/tests && ${LUA_INTERPRETER} test_cosmo.lua + +.include "../../lang/lua/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/lua-cosmo/PLIST b/textproc/lua-cosmo/PLIST new file mode 100644 index 00000000000..1d1292f6464 --- /dev/null +++ b/textproc/lua-cosmo/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2020/08/06 22:31:15 joerg Exp $ +${LUA_LDIR}/cosmo.lua +${LUA_LDIR}/cosmo/fill.lua +${LUA_LDIR}/cosmo/grammar.lua diff --git a/textproc/lua-cosmo/distinfo b/textproc/lua-cosmo/distinfo new file mode 100644 index 00000000000..aadadaf4320 --- /dev/null +++ b/textproc/lua-cosmo/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/08/06 22:31:15 joerg Exp $ + +SHA1 (lua-cosmoso-16.06.04.tar.gz) = eb00692ae22542eccfb608f69a9d9fb6c1f1c51c +RMD160 (lua-cosmoso-16.06.04.tar.gz) = 0ca12a5faa1ea22a074a2e380f25c1ec132a205a +SHA512 (lua-cosmoso-16.06.04.tar.gz) = 3bd67d48693c46038f2e644b0ae380a169b8811ca72b03d99847bef7911812f6e447c2edec3440dc93f9ac505397938a57af4a683a7745e48692625398bbe585 +Size (lua-cosmoso-16.06.04.tar.gz) = 25798 bytes |