source: trunk/dports/devel/lua-rings/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.8 KB
Line 
1# $Id: Portfile 114431 2013-12-08 09:48:42Z ryandesign@macports.org $
2PortSystem          1.0
3
4PortGroup           github 1.0
5github.setup        keplerproject rings 1.2.3 v
6github.tarball_from downloads
7
8name                lua-rings
9license             MIT
10categories          devel
11maintainers         nomaintainer
12platforms           darwin
13description         Multiple Lua States
14long_description    Rings is a library which provides a way to create new Lua states from \
15                                        within Lua. It also offers a simple way to communicate between the \
16                                        creator (master) and the created (slave) states.
17
18depends_lib         port:lua
19checksums           md5     cba2e8a961fa4f76ebf4972c6044e824 \
20                    sha1    788234fb446ee2415fd4be894eb4ad65ef9b2662 \
21                    rmd160  3ff0989ec77c39f3711e97af2886e548254f6af1
22
23# package configure script is not from autotools and only searches for lua binary prefix
24# we patch it and force it to ${prefix}
25patchfiles          patch-config.diff
26post-patch {
27    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/config
28    reinplace "s|%CC%|${configure.cc}|g" ${worksrcpath}/config
29}
30
31variant universal {}
32
33# it is needed to manually set flags env variable as well
34build.env-append    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
35                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] -llua -lm"
36
37post-destroot {
38    xinstall -d ${destroot}${prefix}/share/doc/${name}
39    eval file copy ${worksrcpath}/README \
40                         [glob ${worksrcpath}/doc/us/*] \
41        ${destroot}${prefix}/share/doc/${name}
42
43    xinstall -d ${destroot}${prefix}/share/examples/${name}
44    xinstall -m 644 ${worksrcpath}/tests/sample.lua \
45                    ${worksrcpath}/tests/sample_state.lua \
46        ${destroot}${prefix}/share/examples/${name}
47    xinstall -m 755 ${worksrcpath}/tests/test.lua \
48        ${destroot}${prefix}/share/examples/${name}
49}
Note: See TracBrowser for help on using the repository browser.