Ticket #41846: lua-luaexpat.diff
File lua-luaexpat.diff, 2.4 KB (added by nerdling (Jeremy Lavergne), 11 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name lua-luaexpat 7 version 1. 18 revision 0 7 version 1.2.0 8 set buildhash 30c2491fe44a 9 9 categories devel 10 10 license MIT 11 11 platforms darwin … … 14 14 long_description LuaExpat is a SAX XML parser based on the Expat library. \ 15 15 LuaExpat is free software and uses the same license as Lua 5.1. 16 16 homepage http://www.keplerproject.org/luaexpat/index.html 17 master_sites http:// luaforge.net/frs/download.php/2469/18 distname luaexpat-${version}17 master_sites http://code.matthewwild.co.uk/lua-expat/archive 18 distname ${buildhash} 19 19 use_configure no 20 checksums md5 6ecb895ccf5cff1e7f2facd438b1f8d0\21 sha1 ea359bdbd346ee378c47179a17ac3ee410be5c9d \22 rmd160 f661c0e7f22363f51862187e96306498addea9d9 20 checksums sha1 c8de19c12f9d0899c3ecf5bf3c679910ea5d1c32 \ 21 rmd160 d1b6c8de59cfe1de814fb28f753ff850298ac735 22 worksrcdir lua-expat-${buildhash} 23 23 patchfiles config-patch.diff \ 24 24 makefile-patch.diff 25 25 post-patch { 26 26 reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/config 27 27 } 28 depends_lib port:expat 28 depends_lib port:expat port:lua 29 29 build.target -
files/config-patch.diff
4 4 # Installation directories 5 5 # System's libraries directory (where binary libraries are installed) 6 6 -LUA_LIBDIR= /usr/local/lib/lua/5.0 7 +LUA_LIBDIR= %PREFIX%/lib/lua/5. 17 +LUA_LIBDIR= %PREFIX%/lib/lua/5.2 8 8 # System's lua directory (where Lua libraries are installed) 9 9 -LUA_DIR= /usr/local/share/lua/5.0 10 +LUA_DIR= %PREFIX%/share/lua/5. 110 +LUA_DIR= %PREFIX%/share/lua/5.2 11 11 # Lua includes directory 12 12 -LUA_INC= /usr/local/include 13 13 +LUA_INC= %PREFIX%/include … … 27 27 # first version digit * 100 + second version digit 28 28 # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501) 29 29 -LUA_VERSION_NUM= 500 30 +LUA_VERSION_NUM= 50 130 +LUA_VERSION_NUM= 502 31 31 COMPAT_DIR= ../compat/src 32 32 33 33 # Compilation parameters