source: trunk/dports/devel/lua-cgilua/Portfile

Last change on this file was 114431, checked in by and.damore@…, 4 years ago

Drop maintenance, leave openmaintainer in ports with shared maintenance

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 114431 2013-12-08 09:48:42Z ryandesign@macports.org $
2PortSystem          1.0
3PortGroup   github  1.0
4
5github.setup        keplerproject cgilua 5.1.4 v
6github.tarball_from downloads
7
8name                lua-${github.project}
9license             MIT
10categories          devel
11platforms           darwin
12maintainers         nomaintainer
13description         Building Web Scripts with Lua
14long_description    CGILua is a tool for creating dynamic Web pages and manipulating input \
15                                        data from Web forms. CGILua allows the separation of logic and data \
16                                        handling from the generation of pages, making it easy to develop web \
17                                        applications with Lua.
18
19checksums           md5     6c120f3bb235e1edd9baad762eb303c1 \
20                    sha1    573da0ffbaed5c60eb6b2f1c5587d32f9cdc5a49 \
21                    rmd160  e094af41d5162a0793b68f46597983a8d4d220e5
22
23depends_lib         port:lua \
24                    port:lua-luafilesystem
25
26patchfiles          patch-Makefile.diff
27use_configure       no
28supported_archs     noarch
29build {}
30destroot.args        PREFIX="${prefix}"
31
32post-destroot {
33    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
34    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
35
36    # binaries
37    xinstall -m 755 -W ${worksrcpath}/src/launchers cgilua.cgi cgilua.fcgi \
38        ${destroot}${prefix}/bin
39
40    # documentation
41    eval file copy  ${worksrcpath}/README \
42                    ${worksrcpath}/doc/br \
43                    [glob ${worksrcpath}/doc/us/*] \
44        ${destroot}${prefix}/share/doc/${name}
45
46    # examples
47    eval file copy  [glob ${worksrcpath}/examples/*] \
48                    ${worksrcpath}/tests \
49        ${destroot}${prefix}/share/examples/${name}
50
51    # set module files non-executable
52    file attributes       ${destroot}${prefix}/share/lua/5.1/cgilua.lua    -permissions -x
53    foreach a_file [glob ${destroot}${prefix}/share/lua/5.1/cgilua/*.lua] {
54        file attributes ${a_file} -permissions -x
55    }
56}
57
Note: See TracBrowser for help on using the repository browser.