1 | # $ld$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name lua-lunit |
---|
6 | version 0.3 |
---|
7 | categories devel |
---|
8 | maintainers emmett.shear@gmail.com |
---|
9 | |
---|
10 | description The lunit library extends lua with a simple unit testing framework |
---|
11 | long_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 | |
---|
13 | homepage http://www.nessie.de/mroth/lunit/ |
---|
14 | |
---|
15 | master_sites http://www.nessie.de/mroth/lunit/ |
---|
16 | checksums md5 1510d14d3149a2d0050a220dbc797424 \ |
---|
17 | sha1 b8c052bc68bb2c05ece4c406b7a7c31c61a611b9 |
---|
18 | distname lunit-${version}alpha |
---|
19 | |
---|
20 | depends_lib port:lua |
---|
21 | |
---|
22 | livecheck.check regex |
---|
23 | livecheck.url http://www.nessie.de/mroth/lunit/ |
---|
24 | livecheck.regex /lunit-(.*?)alpha.tar.gz |
---|
25 | |
---|
26 | use_configure no |
---|
27 | build {} |
---|
28 | destroot { |
---|
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 | } |
---|