# -*- 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 # $Id: Portfile 153358 2016-09-29 13:05:48Z devans@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup LuaDist luaexpat 1.3.0 name lua-luaexpat revision 1 categories devel license MIT platforms darwin maintainers nomaintainer description SAX XML parser long_description LuaExpat is a SAX XML parser based on the Expat library. checksums rmd160 0e03db5f71862cf3ebe06b211c5f11341553b3ec \ sha256 948b9b87d432cfc980fae4f1a135b16230bec5dbab99ec16503aca20e4e4e4bd depends_lib port:lua \ port:expat patchfiles patch-makefile.diff use_configure no set lua_version 5.3 build.target build.args -f makefile \ CC=${configure.cc} \ CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] -llua" \ LUA_INC="" \ EXPAT_INC="" \ COMMON_LDFLAGS="-bundle -undefined dynamic_lookup" destroot.pre_args-prepend \ -f makefile destroot.args LUA_LDIR=${prefix}/share/lua/${lua_version} \ LUA_CDIR=${prefix}/lib/lua/${lua_version} post-destroot { # install docs 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} } # install tests xinstall -d -m 0755 ${destroot}${prefix}/share/examples copy ${worksrcpath}/tests ${destroot}${prefix}/share/examples/${name} }