Ticket #12132: Portfile

File Portfile, 1.4 KB (added by emmett.shear@…, 17 years ago)

the portfile

Line 
1# $ld$
2
3PortSystem 1.0
4
5name                lua-luaunit
6version             1.2
7categories          devel
8maintainers         emmett.shear@gmail.com
9
10description         The luaunit library extends lua with a simple unit testing framework
11long_description    luaunit is modeled after python unit testing framework, which I have found the best testing framework so far. What I enjoy the most is the use of the reflection capabilities of the language to automatically build test suites.
12homepage            http://phil.freehackers.org/programs/luaunit/index.html
13
14master_sites        http://luaforge.net/frs/download.php/936
15checksums           md5 cb1879077a5cd86dc94b5961fceb87b9 \
16                    sha1 b7243b6e5e0dab69ed3a5069bda1c1d36f50024e
17distname            luaunit-v12
18worksrcdir          luaunit
19
20depends_lib         port:lua
21
22livecheck.check     regex
23livecheck.url       http://luaforge.net/frs/?group_id=54
24livecheck.regex     /frs/download.php/936/luaunit-(.*?).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 README.txt ${destroot}${prefix}/share/doc/${name}
32
33    xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1
34    foreach luadat [glob *.lua] {
35        xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1
36    }
37}