Ticket #28527: Portfile

File Portfile, 1.4 KB (added by andremm@…, 13 years ago)
Line 
1# $Id$
2
3PortSystem        1.0
4
5name              lpeg
6version           0.10.2
7categories        devel
8platforms         darwin
9maintainers       amaidl
10description       Parsing Expression Grammars for Lua
11long_description  LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).
12homepage          http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
13master_sites      http://www.inf.puc-rio.br/~roberto/lpeg/
14
15checksums         md5     1402433f02e37ddadff04a3d4118b026 \
16                  sha1    f2cd5857efb6e1bb02dfb9fbd68e74a451467462 \
17                  rmd160  77dc2f7ca88ac84e6f185cf6077aaf88a130c3af
18
19depends_lib       port:lua
20
21build.target
22
23patchfiles        patch-makefile.diff
24
25configure {}
26
27destroot {
28  xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1/
29  xinstall ${worksrcpath}/lpeg.so ${destroot}${prefix}/lib/lua/5.1/
30
31  xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1/
32  xinstall ${worksrcpath}/re.lua ${destroot}${prefix}/share/lua/5.1/
33
34  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/html/
35  xinstall ${worksrcpath}/HISTORY ${destroot}${prefix}/share/doc/${name}/
36  xinstall ${worksrcpath}/lpeg-128.gif ${destroot}${prefix}/share/doc/${name}/html/
37  xinstall ${worksrcpath}/lpeg.html ${destroot}${prefix}/share/doc/${name}/html/
38  xinstall ${worksrcpath}/re.html ${destroot}${prefix}/share/doc/${name}/html/
39}