source: trunk/dports/devel/lua-luafilesystem/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
3
4name                lua-luafilesystem
5version             1.5.0
6revision            5
7license             MIT
8categories          devel
9platforms           darwin
10maintainers         nomaintainer
11description         File System Library for the Lua Programming Language
12long_description    LuaFileSystem is a Lua library developed to complement the set of functions \
13                    related to file systems offered by the standard Lua distribution.
14
15homepage            http://keplerproject.github.com/luafilesystem/
16master_sites        http://github.com/downloads/keplerproject/luafilesystem
17
18checksums           md5     3cf4882bbce956e7a0b010f148f194a3 \
19                    sha1    1ee2ca3b5dbc3cf7c21c7168a0873b2983b7e241 \
20                    rmd160  db1e597046d47ab12df202e7c65fb3b815c9f922
21
22distname            luafilesystem-${version}
23depends_lib         port:lua
24patchfiles          patch-config.diff
25
26post-patch {
27   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/config
28   reinplace "s|luaL_reg |luaL_Reg |g" ${worksrcpath}/src/lfs.c
29   reinplace "/^LUA_LIBDIR=/s,lib/lua/5.1,lib/lua/5.2," ${worksrcpath}/config
30}
31
32use_configure       no
33
34variant universal {}
35
36build.args          CC="${configure.cc}" \
37                    CFLAGS="${configure.cflags} -I${prefix}/include [get_canonical_archflags cc] -DLUA_COMPAT_MODULE" \
38                    LDFLAGS="${configure.ldflags} -llua -lm [get_canonical_archflags ld]"
39
40build.target        lib
41
42post-destroot {
43    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
44    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
45   
46    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
47    eval xinstall -m 644 [glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name}
48    eval xinstall -m 644 [glob ${worksrcpath}/tests/*] ${destroot}${prefix}/share/examples/${name}
49}
50
Note: See TracBrowser for help on using the repository browser.