source: trunk/dports/devel/lua-luajson/Portfile

Last change on this file was 140258, checked in by devans@…, 23 months ago

lua-luajson: increment revision to use lua 5.3 compatible installation paths.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 140258 2015-09-14 21:18:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        harningt luajson 1.3.3
8name                lua-luajson
9revision            1
10license             MIT
11categories          devel
12platforms           darwin
13maintainers         nomaintainer
14description         JSON Parser/Constructor for Lua
15long_description    JSON Parser/Constructor for Lua
16
17homepage            https://github.com/harningt/luajson
18
19supported_archs     noarch
20
21checksums           rmd160  b8567ce0cc93bc58651e1bd23a26f4419e729dc7 \
22                    sha256  4e382e137d629eace24febb7e2871df777ab32f020a5fbc7303e9c5de954d67d
23
24depends_build       port:pkgconfig
25depends_lib         port:lua port:lua-lpeg
26
27use_configure       no
28
29build {}
30
31variant universal {}
32
33destroot {
34    set lua_lmod [exec ${prefix}/bin/pkg-config lua --variable INSTALL_LMOD]
35    set lua_docdir ${prefix}/share/doc/${name}
36    xinstall -m 755 -d \
37        ${destroot}${lua_lmod} \
38        ${destroot}${lua_docdir} \
39        ${destroot}${lua_lmod}/json \
40        ${destroot}${lua_lmod}/json/decode \
41        ${destroot}${lua_lmod}/json/encode
42
43    eval xinstall -m 644 [glob ${worksrcpath}/lua/*.lua] ${destroot}${lua_lmod}
44    eval xinstall -m 644 [glob ${worksrcpath}/lua/json/*.lua] ${destroot}${lua_lmod}/json
45    eval xinstall -m 644 [glob ${worksrcpath}/lua/json/encode/*.lua] ${destroot}${lua_lmod}/json/encode
46    eval xinstall -m 644 [glob ${worksrcpath}/lua/json/decode/*.lua] ${destroot}${lua_lmod}/json/decode
47}
Note: See TracBrowser for help on using the repository browser.