# -*- 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
github.setup LuaDist luaexpat 1.3.0
description SAX XML parser
long_description LuaExpat is a SAX XML parser based on the Expat library.
checksums rmd160 0e03db5f71862cf3ebe06b211c5f11341553b3ec \
sha256 948b9b87d432cfc980fae4f1a135b16230bec5dbab99ec16503aca20e4e4e4bd
patchfiles patch-makefile.diff
CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] -llua" \
COMMON_LDFLAGS="-bundle -undefined dynamic_lookup"
destroot.pre_args-prepend \
destroot.args LUA_LDIR=${prefix}/share/lua/${lua_version} \
LUA_CDIR=${prefix}/lib/lua/${lua_version}
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 -W ${worksrcpath} README \
${destroot}${prefix}/share/doc/${name}
foreach f [glob ${worksrcpath}/doc/us/*] {
xinstall -m 0644 $f ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 0755 ${destroot}${prefix}/share/examples
copy ${worksrcpath}/tests ${destroot}${prefix}/share/examples/${name}