Ticket #12133: Portfile

File Portfile, 1.5 KB (added by emmett.shear@…, 17 years ago)
Line 
1# $ld$
2
3PortSystem 1.0
4
5name                lua-lunit
6version             0.3
7categories          devel
8maintainers         emmett.shear@gmail.com
9
10description         The lunit library extends lua with a simple unit testing framework
11long_description    Lunit is a unit testing framework for lua, written in lua. It provides currently 26 assert functions, 8 type checking functions and a few misc functions for usage as an easy unit testing framework.
12
13homepage            http://www.nessie.de/mroth/lunit/
14
15master_sites        http://www.nessie.de/mroth/lunit/
16checksums           md5 1510d14d3149a2d0050a220dbc797424 \
17                    sha1 b8c052bc68bb2c05ece4c406b7a7c31c61a611b9
18distname            lunit-${version}alpha
19
20depends_lib         port:lua
21
22livecheck.check     regex
23livecheck.url       http://www.nessie.de/mroth/lunit/
24livecheck.regex     /lunit-(.*?)alpha.tar.gz
25
26use_configure       no
27build               {}
28destroot            {
29    cd ${workpath}/${worksrcdir}
30    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
31    file copy ANNOUNCE DOCUMENTATION README README.alpha CHANGES LICENSE TODO ${destroot}${prefix}/share/doc/${name}
32    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
33    foreach luaexamp [glob examples/*] {
34        xinstall -m 0644 ${luaexamp} ${destroot}${prefix}/share/doc/${name}/examples
35    }
36
37    xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1
38    foreach luadat [glob *.lua] {
39        xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1
40    }
41}