commit: 0cbabfd3d129db6581bd2a5ef6ac2a18bc9c69cd Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Wed Jan 11 06:37:54 2017 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Wed Jan 11 06:37:54 2017 +0000 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=0cbabfd3
luadbi, luaposix: fixes dev-lua/luadbi/luadbi-9999.ebuild | 9 +++++++-- dev-lua/luaposix/luaposix-9999.ebuild | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-lua/luadbi/luadbi-9999.ebuild b/dev-lua/luadbi/luadbi-9999.ebuild index 3138211..2b54a2e 100644 --- a/dev-lua/luadbi/luadbi-9999.ebuild +++ b/dev-lua/luadbi/luadbi-9999.ebuild @@ -48,7 +48,7 @@ each_lua_compile() { for driver in "${drivers[@]}"; do local buildme; - if [[ ${driver} = "psql" && ${ABI} = "x86" ]]; then + if [[ ${driver} = "psql" && ${ABI} = "x86" ]] && use amd64; then # FIXME: when postgres and perl (as postgres dep) will have multilib support buildme=no fi @@ -65,5 +65,10 @@ each_lua_compile() { } each_lua_install() { - dolua *.so DBI.lua + local libs=(); + for lib in $(find . -name '*.so'); do + libs+=(${lib}) + done + [[ -z "${libs[@]}" ]] || dolua ${libs[@]} + dolua DBI.lua } diff --git a/dev-lua/luaposix/luaposix-9999.ebuild b/dev-lua/luaposix/luaposix-9999.ebuild index c1ea90a..f46b196 100644 --- a/dev-lua/luaposix/luaposix-9999.ebuild +++ b/dev-lua/luaposix/luaposix-9999.ebuild @@ -33,7 +33,7 @@ DEPEND=" # dev-lua/lyaml DOCS=(README.md NEWS.md) -EXAMPLES=(examples/.) +EXAMPLES=(doc/examples/.) HTML_DOCS=(html/.) all_lua_prepare() { @@ -48,6 +48,8 @@ all_lua_prepare() { sed -r \ -e "s/@PACKAGE_STRING@/${P}/" \ -i build-aux/config.ld lib/posix/init.lua + + lua_default } all_lua_compile() {