38d2e3058c
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.
26 lines
741 B
Makefile
26 lines
741 B
Makefile
# $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
|
|
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"
|