# $Id$ PortSystem 1.0 name lua-expat version 1.1 revision 0 categories devel platforms darwin maintainers and.damore description SAX XML parser long_description LuaExpat is a SAX XML parser based on the Expat library. \ LuaExpat is free software and uses the same license as Lua 5.1. homepage http://www.keplerproject.org/luaexpat/index.html master_sites http://luaforge.net/frs/download.php/2469/ distname luaexpat-${version} use_configure no checksums \ luaexpat-1.1.tar.gz \ md5 6ecb895ccf5cff1e7f2facd438b1f8d0 \ sha1 ea359bdbd346ee378c47179a17ac3ee410be5c9d \ rmd160 f661c0e7f22363f51862187e96306498addea9d9 patchfiles patch-luaexpat.diff patch.pre_args -p1 depends_lib port:expat build.target destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} foreach doc [glob doc/us/*] { xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name} } # Binaries xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1 foreach lib [glob src/*.so.*] { xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1 } # Lua libraries xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1/lxp foreach luadat [glob src/lxp/*.lua] { xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1/lxp } # Lua includes xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1 foreach inc [glob src/*.h] { xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1 } }