commit:     0cb02ba655c0c415dd05ca5b0c93ee13174e709d
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  4 20:58:25 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Nov  4 20:58:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb02ba6

dev-lua/luadbi: fix runtime

Closes: https://bugs.gentoo.org/820431
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../{luadbi-0.7.2-r102.ebuild => luadbi-0.7.2-r103.ebuild}   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dev-lua/luadbi/luadbi-0.7.2-r102.ebuild 
b/dev-lua/luadbi/luadbi-0.7.2-r103.ebuild
similarity index 93%
rename from dev-lua/luadbi/luadbi-0.7.2-r102.ebuild
rename to dev-lua/luadbi/luadbi-0.7.2-r103.ebuild
index a10d25b72e0..0f05380ff39 100644
--- a/dev-lua/luadbi/luadbi-0.7.2-r102.ebuild
+++ b/dev-lua/luadbi/luadbi-0.7.2-r103.ebuild
@@ -45,9 +45,13 @@ src_prepare() {
 
        # Respect users CFLAGS
        sed -e 's/-g //' -e 's/-O2 //g' -i Makefile || die
+
+       lua_copy_sources
 }
 
 lua_src_compile() {
+       pushd "${BUILD_DIR}" || die
+
        tc-export AR CC
 
        local myemakeargs=(
@@ -57,6 +61,8 @@ lua_src_compile() {
        use mysql && emake ${myemakeargs} MYSQL_INC="-I$(mariadb_config 
--libs)" mysql
        use postgres && emake ${myemakeargs} PSQL_INC="-I$(pg_config --libdir)" 
psql
        use sqlite emake ${myemakeargs} SQLITE3_INC="-I/usr/include" sqlite
+
+       die
 }
 
 src_compile() {
@@ -64,7 +70,9 @@ src_compile() {
 }
 
 lua_src_test() {
+       pushd "${BUILD_DIR}" || die
        cd "${S}"/tests && ${ELUA} run_tests.lua || die
+       die
 }
 
 src_test() {
@@ -72,6 +80,8 @@ src_test() {
 }
 
 lua_src_install() {
+       pushd "${BUILD_DIR}" || die
+
        local myemakeargs=(
                DESTDIR="${ED}"
                LUA_CDIR="$(lua_get_cmod_dir)"
@@ -82,6 +92,8 @@ lua_src_install() {
        use mysql && emake ${myemakeargs[@]} install_mysql
        use postgres && emake ${myemakeargs[@]} install_psql
        use sqlite && emake ${myemakeargs[@]} install_sqlite3
+
+       die
 }
 
 src_install() {

Reply via email to