github.setup keplerproject cgilua 5.1.4 v
github.tarball_from downloads
name lua-${github.project}
description Building Web Scripts with Lua
long_description CGILua is a tool for creating dynamic Web pages and manipulating input \
data from Web forms. CGILua allows the separation of logic and data \
handling from the generation of pages, making it easy to develop web \
checksums md5 6c120f3bb235e1edd9baad762eb303c1 \
sha1 573da0ffbaed5c60eb6b2f1c5587d32f9cdc5a49 \
rmd160 e094af41d5162a0793b68f46597983a8d4d220e5
patchfiles patch-Makefile.diff
destroot.args PREFIX="${prefix}"
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
xinstall -m 755 -W ${worksrcpath}/src/launchers cgilua.cgi cgilua.fcgi \
file copy ${worksrcpath}/README \
{*}[glob ${worksrcpath}/doc/us/*] \
${destroot}${prefix}/share/doc/${name}
file copy {*}[glob ${worksrcpath}/examples/*] \
${destroot}${prefix}/share/examples/${name}
# set module files non-executable
file attributes ${destroot}${prefix}/share/lua/5.1/cgilua.lua -permissions -x
foreach a_file [glob ${destroot}${prefix}/share/lua/5.1/cgilua/*.lua] {
file attributes ${a_file} -permissions -x